aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-14 22:50:47 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-15 00:37:17 -0700
commit22f81f78bdc14b30a266ecf470447cd5be989364 (patch)
treeb8c7f043e7e6385dc05a26df1da5cfbd7c947382
parent78ebbc6eef1d0812b1ce6c823f9021d397b79b48 (diff)
downloadpandoc-22f81f78bdc14b30a266ecf470447cd5be989364.tar.gz
Added failing test case for macros.
-rw-r--r--test/command/macros.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command/macros.md b/test/command/macros.md
index 50393543a..0c91944a1 100644
--- a/test/command/macros.md
+++ b/test/command/macros.md
@@ -105,3 +105,21 @@ x &= y\\\end{aligned}\]
\newcommand{\my}{\emph{a}}
\emph{a}
```
+
+<https://tex.stackexchange.com/questions/258/what-is-the-difference-between-let-and-def>
+
+```
+% pandoc -f latex -t plain
+\def\bar{hello}
+\let\fooi\bar
+\def\fooii{\bar}
+\fooi +\fooii
+
+\def\bar{goodbye}
+\fooi +\fooii
+^D
+hello+hello
+
+hello+goodbye
+```
+