aboutsummaryrefslogtreecommitdiff
path: root/test/markdown-reader-more.native
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-23 20:46:37 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-24 00:02:55 +0200
commitbe14e2b5013a442989a338c13baa4d16881f849e (patch)
treed16aa0966d6bc5db893e8c403f260954bf5d6cab /test/markdown-reader-more.native
parentd453b3319a14ec592438762f3946cd961d893639 (diff)
downloadpandoc-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/markdown-reader-more.native')
-rw-r--r--test/markdown-reader-more.native1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/markdown-reader-more.native b/test/markdown-reader-more.native
index 5d63a21de..a24417ffe 100644
--- a/test/markdown-reader-more.native
+++ b/test/markdown-reader-more.native
@@ -56,6 +56,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "Author",S
,OrderedList (3,Example,TwoParens)
[[Plain [Str "Third",Space,Str "example."]]]
,Header 2 ("macros",[],[]) [Str "Macros"]
+,RawBlock (Format "latex") "\\newcommand{\\tuple}[1]{\\langle #1 \\rangle}"
,Para [Math InlineMath "\\langle x,y \\rangle"]
,Header 2 ("case-insensitive-references",[],[]) [Str "Case-insensitive",Space,Str "references"]
,Para [Link ("",[],[]) [Str "Fum"] ("/fum","")]