git.iko.soy/typeable/pandoc
on master help sign in
Added a test case with a complex raw latex environment in Markdown.
commite08ffa562a36cfa3b7f3ed31dcc9c92979462d75 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 31 Oct 2016, 22:04 (10 years ago) parent5d02e47
2 files changed+10
tests/markdown-reader-more.native+2 tests/markdown-reader-more.txt+8
tests/markdown-reader-more.native+2
@@ -6,6 +6,8 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "Author",S
66,Plain [RawInline (Format "tex") "\\placeformula "]
77,RawBlock (Format "context") "\\startformula\n L_{1} = L_{2}\n \\stopformula"
88,RawBlock (Format "context") "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]"
9+,Header 2 ("raw-latex-environments",[],[]) [Str "Raw",Space,Str "LaTeX",Space,Str "environments"]
10+,RawBlock (Format "latex") "\\begin{center}\n\\begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt]\n\\Tree [.{S} [.NP John\\index{i} ] [.VP [.V likes ] [.NP himself\\index{i,*j} ]]]\n\\end{tikzpicture}\n\\end{center}"
911,Header 2 ("urls-with-spaces-and-punctuation",[],[]) [Str "URLs",Space,Str "with",Space,Str "spaces",Space,Str "and",Space,Str "punctuation"]
1012,Para [Link ("",[],[]) [Str "foo"] ("/bar%20and%20baz",""),SoftBreak,Link ("",[],[]) [Str "foo"] ("/bar%20and%20baz",""),SoftBreak,Link ("",[],[]) [Str "foo"] ("/bar%20and%20baz",""),SoftBreak,Link ("",[],[]) [Str "foo"] ("bar%20baz","title")]
1113,Para [Link ("",[],[]) [Str "baz"] ("/foo%20foo",""),Space,Link ("",[],[]) [Str "bam"] ("/foo%20fee",""),Space,Link ("",[],[]) [Str "bork"] ("/foo/zee%20zob","title")]
tests/markdown-reader-more.txt+8
@@ -28,6 +28,14 @@
2828\stop[a2]
2929\stop[a2]
3030
31+## Raw LaTeX environments
32+
33+\begin{center}
34+\begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt]
35+\Tree [.{S} [.NP John\index{i} ] [.VP [.V likes ] [.NP himself\index{i,*j} ]]]
36+\end{tikzpicture}
37+\end{center}
38+
3139## URLs with spaces and punctuation
3240
3341[foo](/bar and baz)