aboutsummaryrefslogtreecommitdiff
path: root/test/vimwiki-reader.native
diff options
context:
space:
mode:
authorYuchen Pei <ycpei@users.noreply.github.com>2017-07-12 11:19:49 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-12 17:19:49 +0200
commit8b502dd50ff842bdbbf346a67a607d1a7905bda3 (patch)
treef4fc0988f68c028ac9afa08956e333b14f3cce45 /test/vimwiki-reader.native
parentde117fbd9e32e890663eb831b47fd91fcd6419a0 (diff)
downloadpandoc-8b502dd50ff842bdbbf346a67a607d1a7905bda3.tar.gz
Fixed #3760. (#3784)
Using the same solution as in the LaTeX reader: equation -> displaymath align -> displaymath \begin{aligned} ... \end{aligned} etc..
Diffstat (limited to 'test/vimwiki-reader.native')
-rw-r--r--test/vimwiki-reader.native12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/vimwiki-reader.native b/test/vimwiki-reader.native
index 26388b71a..8c9bff3f6 100644
--- a/test/vimwiki-reader.native
+++ b/test/vimwiki-reader.native
@@ -81,7 +81,7 @@ Pandoc (Meta {unMeta = fromList [("date",MetaInlines [Str "2017-05-01"]),("title
,Header 2 ("lists",[],[]) [Str "lists"]
,OrderedList (1,DefaultStyle,DefaultDelim)
[[Plain [Str "ordered",Space,Str "list",Space,Str "item",Space,Str "1,",Space,Str "and",Space,Str "here",Space,Str "is",Space,Str "some",Space,Str "math",Space,Str "belonging",Space,Str "to",Space,Str "list",Space,Str "item",Space,Str "1"]
- ,Plain [Str "\\[\n a^2 + b^2 = c^2\n\\]"]
+ ,Para [Math DisplayMath "a^2 + b^2 = c^2"]
,Plain [Str "and",Space,Str "some",Space,Str "preformatted",Space,Str "and",Space,Str "tables",Space,Str "belonging",Space,Str "to",Space,Str "item",Space,Str "1",Space,Str "as",Space,Str "well"]
,CodeBlock ("",[],[]) "I'm part of item 1."
,Table [] [AlignDefault,AlignDefault] [0.0,0.0]
@@ -184,9 +184,13 @@ Pandoc (Meta {unMeta = fromList [("date",MetaInlines [Str "2017-05-01"]),("title
,[Plain [Str "b"]]]]]]]
,[Plain [Span ("",["done4"],[]) [],Str "task",Space,Str "2"]]]
,Header 2 ("math",[],[]) [Str "math"]
-,Para [Str "\\( \\sum_i a_i^2 = 1 \\)"]
-,Plain [Str "\\[\n\\sum_i a_i^2\n=\n1\n\\]"]
-,Plain [Str "\\begin{align}\n\\sum_i a_i^2 &= 1 + 1 \\\\\n&= 2.\n\\end{align}"]
+,Para [Math InlineMath " \\sum_i a_i^2 = 1 "]
+,Para [Math DisplayMath "\\sum_i a_i^2\n=\n1"]
+,Para [Math DisplayMath "\\begin{aligned}\n\\sum_i a_i^2 &= 1 + 1 \\\\\n&= 2.\n\\end{aligned}"]
+,Para [Str "edge",Space,Str "case",Space,Str "(the",Space,Code ("",[],[]) "c^2 + ",Space,Str "after",Space,Str "the",Space,Str "multline",Space,Str "tag",Space,Str "is",Space,Str "in",Space,Str "the",Space,Str "equation):"]
+,Para [Math DisplayMath "\\begin{gathered}\nc^2 + \na^2 + b^2\n\\end{gathered}"]
+,Para [Str "edge",Space,Str "case",Space,Str "(the",Space,Str "tag",Space,Str "is",Space,Code ("",[],[]) "hello%bye",Str ")"]
+,Para [Math DisplayMath "\\begin{hello%bye}\n\\int_a^b f(x) dx\n\\end{hello%bye}"]
,Para [Str "Just",Space,Str "two",Space,Str "dollar",Space,Str "signs:",Space,Str "$$"]
,Para [Str "[not",Space,Str "math]",Space,Str "You",Space,Str "have",Space,Str "$1",SoftBreak,Str "and",Space,Str "I",Space,Str "have",Space,Str "$1."]
,Header 2 ("tags",[],[]) [Str "tags"]