summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-24 11:16:43 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-24 11:20:59 +0200
commit329b61ff5cbad6297d1ceea5da7f045613e27ec5 (patch)
tree579db1cd43fdde967070669d46e6e4324d189f3a /test/command
parente7876d43203a4672e9d5bb10f91d1530272abc7b (diff)
LaTeX reader: support etoolbox's ifstrequal.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/ifstrequal.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/command/ifstrequal.md b/test/command/ifstrequal.md
new file mode 100644
index 000000000..4ad04d2e1
--- /dev/null
+++ b/test/command/ifstrequal.md
@@ -0,0 +1,10 @@
+```
+% pandoc -f latex -t native
+\ifstrequal{a}{b}{yes}{\emph{no}}
+\newcommand{\h}[1]{\ifstrequal{#1}{a}{\'a}{#1}}
+\h{a}
+\h{b}
+^D
+[Para [Emph [Str "no"]]
+,Para [Str "\225",SoftBreak,Str "b"]]
+```