diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-07-23 20:46:37 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-07-24 00:02:55 +0200 |
commit | be14e2b5013a442989a338c13baa4d16881f849e (patch) | |
tree | d16aa0966d6bc5db893e8c403f260954bf5d6cab /test/command | |
parent | d453b3319a14ec592438762f3946cd961d893639 (diff) | |
download | pandoc-be14e2b5013a442989a338c13baa4d16881f849e.tar.gz |
LaTeX reader: some improvements in macro parsing.
Fixed applyMacros so that it operates on the whole
string, not just the first token!
Don't remove macro definitions from the output,
even if Ext_latex_macros is set, so that macros will
be applied. Since they're only applied to math in
Markdown, removing the macros can have bad effects.
Even for math macros, keeping them should be harmless.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/macros.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/macros.md b/test/command/macros.md new file mode 100644 index 000000000..74d63ef08 --- /dev/null +++ b/test/command/macros.md @@ -0,0 +1,8 @@ +``` +% pandoc -t markdown +\newcommand{\my}{\phi} +$\my+\my$ +^D +\newcommand{\my}{\phi} +$\phi+\phi$ +``` |