aboutsummaryrefslogtreecommitdiff
path: root/test/command/macros.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/macros.md')
-rw-r--r--test/command/macros.md34
1 files changed, 33 insertions, 1 deletions
diff --git a/test/command/macros.md b/test/command/macros.md
index 46179e3c7..4bd2eb00a 100644
--- a/test/command/macros.md
+++ b/test/command/macros.md
@@ -3,7 +3,6 @@
\newcommand{\my}{\phi}
$\my+\my$
^D
-\newcommand{\my}{\phi}
$\phi+\phi$
```
@@ -66,3 +65,36 @@ x &= y\\\end{aligned}\]
\emph{hi--ok}
```
+
+```
+% pandoc -f markdown+latex_macros -t markdown
+\newcommand{\my}{\phi}
+\begin{equation}
+\my+\my
+\end{equation}
+^D
+\begin{equation}
+\phi+\phi
+\end{equation}
+```
+
+```
+% pandoc -f markdown-latex_macros -t markdown
+\newcommand{\my}{\phi}
+\begin{equation}
+\my+\my
+\end{equation}
+^D
+\newcommand{\my}{\phi}
+\begin{equation}
+\my+\my
+\end{equation}
+```
+
+```
+% pandoc -f markdown+latex_macros -t markdown
+\newcommand{\my}{\emph{a}}
+\my
+^D
+\emph{a}
+```