From e7d95cadf537909bcb1e7d17d4545932d6bb34bc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 13 Jan 2018 22:12:32 -0800 Subject: LaTeX reader: pass through macro defs in rawLaTeXBlock... even if the `latex_macros` extension is set. This reverts to earlier behavior and is probably safer on the whole, since some macros only modify things in included packages, which pandoc's macro expansion can't modify. Closes #4246. --- test/markdown-reader-more.native | 1 + 1 file changed, 1 insertion(+) (limited to 'test/markdown-reader-more.native') diff --git a/test/markdown-reader-more.native b/test/markdown-reader-more.native index 742b6187c..5f34c7927 100644 --- a/test/markdown-reader-more.native +++ b/test/markdown-reader-more.native @@ -54,6 +54,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","")] -- cgit v1.2.3