git.iko.soy/typeable/pandoc
on master help sign in
Use registerHeader in RST and LaTeX readers.
9282f63John MacFarlane
src/Text/Pandoc/Readers/LaTeX.hs+3−3
@@ -318,9 +318,9 @@ section (ident, classes, kvs) lvl = do
318 let lvl' = if hasChapters then lvl + 1 else lvl
318 let lvl' = if hasChapters then lvl + 1 else lvl
319 skipopts
319 skipopts
320 contents <- grouped inline
320 contents <- grouped inline
321− lab <- option ident $ try $ spaces >> controlSeq "label" >>
321+ lab <- option ident $ try (spaces >> controlSeq "label" >> spaces >> braced)
322− spaces >> braced
322+ attr' <- registerHeader (lab, classes, kvs) contents
323− return $ headerWith (lab, classes, kvs) lvl' contents
323+ return $ headerWith attr' lvl' contents
324
324
325inlineCommand :: LP Inlines
325inlineCommand :: LP Inlines
326inlineCommand = try $ do
326inlineCommand = try $ do
src/Text/Pandoc/Readers/RST.hs+4−2
@@ -275,7 +275,8 @@ doubleHeader = try $ do
275 Just ind -> (headerTable, ind + 1)
275 Just ind -> (headerTable, ind + 1)
276 Nothing -> (headerTable ++ [DoubleHeader c], (length headerTable) + 1)
276 Nothing -> (headerTable ++ [DoubleHeader c], (length headerTable) + 1)
277 setState (state { stateHeaderTable = headerTable' })
277 setState (state { stateHeaderTable = headerTable' })
278+ attr <- registerHeader nullAttr txt
278− return $ B.header level txt
279+ return $ B.headerWith attr level txt
279
280
280-- a header with line on the bottom only
281-- a header with line on the bottom only
281singleHeader :: RSTParser Blocks
282singleHeader :: RSTParser Blocks
@@ -295,7 +296,8 @@ singleHeader = try $ do
295 Just ind -> (headerTable, ind + 1)
296 Just ind -> (headerTable, ind + 1)
296 Nothing -> (headerTable ++ [SingleHeader c], (length headerTable) + 1)
297 Nothing -> (headerTable ++ [SingleHeader c], (length headerTable) + 1)
297 setState (state { stateHeaderTable = headerTable' })
298 setState (state { stateHeaderTable = headerTable' })
299+ attr <- registerHeader nullAttr txt
298− return $ B.header level txt
300+ return $ B.headerWith attr level txt
299
301
300--
302--
301-- hrule block
303-- hrule block
tests/Tests/Readers/LaTeX.hs+5−5
@@ -28,17 +28,17 @@ tests = [ testGroup "basic"
28
28
29 , testGroup "headers"
29 , testGroup "headers"
30 [ "level 1" =:
30 [ "level 1" =:
31− "\\section{header}" =?> header 1 "header"
31+ "\\section{header}" =?> headerWith ("header",[],[]) 1 "header"
32 , "level 2" =:
32 , "level 2" =:
33− "\\subsection{header}" =?> header 2 "header"
33+ "\\subsection{header}" =?> headerWith ("header",[],[]) 2 "header"
34 , "level 3" =:
34 , "level 3" =:
35− "\\subsubsection{header}" =?> header 3 "header"
35+ "\\subsubsection{header}" =?> headerWith ("header",[],[]) 3 "header"
36 , "emph" =:
36 , "emph" =:
37 "\\section{text \\emph{emph}}" =?>
37 "\\section{text \\emph{emph}}" =?>
38− header 1 ("text" <> space <> emph "emph")
38+ headerWith ("text-emph",[],[]) 1 ("text" <> space <> emph "emph")
39 , "link" =:
39 , "link" =:
40 "\\section{text \\href{/url}{link}}" =?>
40 "\\section{text \\href{/url}{link}}" =?>
41− header 1 ("text" <> space <> link "/url" "" "link")
41+ headerWith ("text-link",[],[]) 1 ("text" <> space <> link "/url" "" "link")
42 ]
42 ]
43
43
44 , testGroup "math"
44 , testGroup "math"
tests/latex-reader.native+30−30
@@ -2,25 +2,25 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
2[RawBlock (Format "latex") "\\maketitle"
2[RawBlock (Format "latex") "\\maketitle"
3,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
3,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
4,HorizontalRule
4,HorizontalRule
5−,Header 1 ("",[],[]) [Str "Headers"]
5+,Header 1 ("headers",[],[]) [Str "Headers"]
6−,Header 2 ("",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link [Str "embedded",Space,Str "link"] ("/url","")]
6+,Header 2 ("level-2-with-an-embedded-link",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link [Str "embedded",Space,Str "link"] ("/url","")]
7−,Header 3 ("",[],[]) [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
7+,Header 3 ("level-3-with-emphasis",[],[]) [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
8,Para [Str "Level",Space,Str "4"]
8,Para [Str "Level",Space,Str "4"]
9,Para [Str "Level",Space,Str "5"]
9,Para [Str "Level",Space,Str "5"]
10−,Header 1 ("",[],[]) [Str "Level",Space,Str "1"]
10+,Header 1 ("level-1",[],[]) [Str "Level",Space,Str "1"]
11−,Header 2 ("",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
11+,Header 2 ("level-2-with-emphasis",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
12−,Header 3 ("",[],[]) [Str "Level",Space,Str "3"]
12+,Header 3 ("level-3",[],[]) [Str "Level",Space,Str "3"]
13,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
13,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
14−,Header 2 ("",[],[]) [Str "Level",Space,Str "2"]
14+,Header 2 ("level-2",[],[]) [Str "Level",Space,Str "2"]
15,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
15,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
16,HorizontalRule
16,HorizontalRule
17−,Header 1 ("",[],[]) [Str "Paragraphs"]
17+,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
18,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
18,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
19,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
19,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
20,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
20,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
21,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."]
21,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."]
22,HorizontalRule
22,HorizontalRule
23−,Header 1 ("",[],[]) [Str "Block",Space,Str "Quotes"]
23+,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
24,Para [Str "E-mail",Space,Str "style:"]
24,Para [Str "E-mail",Space,Str "style:"]
25,BlockQuote
25,BlockQuote
26 [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
26 [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
@@ -52,15 +52,15 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
52 [Para [Str "Don\8217t",Space,Str "quote",Space,Str "me."]]]
52 [Para [Str "Don\8217t",Space,Str "quote",Space,Str "me."]]]
53,Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
53,Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
54,HorizontalRule
54,HorizontalRule
55−,Header 1 ("",[],[]) [Str "Code",Space,Str "Blocks"]
55+,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
56,Para [Str "Code:"]
56,Para [Str "Code:"]
57,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
57,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
58,Para [Str "And:"]
58,Para [Str "And:"]
59,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
59,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
60,Para [Str "this",Space,Str "has",Space,Emph [Str "two",LineBreak,Str "lines"]]
60,Para [Str "this",Space,Str "has",Space,Emph [Str "two",LineBreak,Str "lines"]]
61,HorizontalRule
61,HorizontalRule
62−,Header 1 ("",[],[]) [Str "Lists"]
62+,Header 1 ("lists",[],[]) [Str "Lists"]
63−,Header 2 ("",[],[]) [Str "Unordered"]
63+,Header 2 ("unordered",[],[]) [Str "Unordered"]
64,Para [Str "Asterisks",Space,Str "tight:"]
64,Para [Str "Asterisks",Space,Str "tight:"]
65,BulletList
65,BulletList
66 [[Para [Str "asterisk",Space,Str "1"]]
66 [[Para [Str "asterisk",Space,Str "1"]]
@@ -91,7 +91,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
91 [[Para [Str "Minus",Space,Str "1"]]
91 [[Para [Str "Minus",Space,Str "1"]]
92 ,[Para [Str "Minus",Space,Str "2"]]
92 ,[Para [Str "Minus",Space,Str "2"]]
93 ,[Para [Str "Minus",Space,Str "3"]]]
93 ,[Para [Str "Minus",Space,Str "3"]]]
94−,Header 2 ("",[],[]) [Str "Ordered"]
94+,Header 2 ("ordered",[],[]) [Str "Ordered"]
95,Para [Str "Tight:"]
95,Para [Str "Tight:"]
96,OrderedList (1,Decimal,Period)
96,OrderedList (1,Decimal,Period)
97 [[Para [Str "First"]]
97 [[Para [Str "First"]]
@@ -118,7 +118,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
118 ,Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog\8217s",Space,Str "back."]]
118 ,Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog\8217s",Space,Str "back."]]
119 ,[Para [Str "Item",Space,Str "2."]]
119 ,[Para [Str "Item",Space,Str "2."]]
120 ,[Para [Str "Item",Space,Str "3."]]]
120 ,[Para [Str "Item",Space,Str "3."]]]
121−,Header 2 ("",[],[]) [Str "Nested"]
121+,Header 2 ("nested",[],[]) [Str "Nested"]
122,BulletList
122,BulletList
123 [[Para [Str "Tab"]
123 [[Para [Str "Tab"]
124 ,BulletList
124 ,BulletList
@@ -143,14 +143,14 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
143 ,[Para [Str "Fie"]]
143 ,[Para [Str "Fie"]]
144 ,[Para [Str "Foe"]]]]
144 ,[Para [Str "Foe"]]]]
145 ,[Para [Str "Third"]]]
145 ,[Para [Str "Third"]]]
146−,Header 2 ("",[],[]) [Str "Tabs",Space,Str "and",Space,Str "spaces"]
146+,Header 2 ("tabs-and-spaces",[],[]) [Str "Tabs",Space,Str "and",Space,Str "spaces"]
147,BulletList
147,BulletList
148 [[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"]]
148 [[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"]]
149 ,[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]
149 ,[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]
150 ,BulletList
150 ,BulletList
151 [[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"]]
151 [[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"]]
152 ,[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]]]]]
152 ,[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]]]]]
153−,Header 2 ("",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
153+,Header 2 ("fancy-list-markers",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
154,OrderedList (2,Decimal,TwoParens)
154,OrderedList (2,Decimal,TwoParens)
155 [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
155 [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
156 ,[Para [Str "and",Space,Str "now",Space,Str "3"]
156 ,[Para [Str "and",Space,Str "now",Space,Str "3"]
@@ -180,7 +180,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
180,Para [Str "M.A.",Space,Str "2007"]
180,Para [Str "M.A.",Space,Str "2007"]
181,Para [Str "B.",Space,Str "Williams"]
181,Para [Str "B.",Space,Str "Williams"]
182,HorizontalRule
182,HorizontalRule
183−,Header 1 ("",[],[]) [Str "Definition",Space,Str "Lists"]
183+,Header 1 ("definition-lists",[],[]) [Str "Definition",Space,Str "Lists"]
184,Para [Str "Tight",Space,Str "using",Space,Str "spaces:"]
184,Para [Str "Tight",Space,Str "using",Space,Str "spaces:"]
185,DefinitionList
185,DefinitionList
186 [([Str "apple"],
186 [([Str "apple"],
@@ -215,7 +215,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
215 ,CodeBlock ("",[],[]) "{ orange code block }"
215 ,CodeBlock ("",[],[]) "{ orange code block }"
216 ,BlockQuote
216 ,BlockQuote
217 [Para [Str "orange",Space,Str "block",Space,Str "quote"]]]])]
217 [Para [Str "orange",Space,Str "block",Space,Str "quote"]]]])]
218−,Header 1 ("",[],[]) [Str "HTML",Space,Str "Blocks"]
218+,Header 1 ("html-blocks",[],[]) [Str "HTML",Space,Str "Blocks"]
219,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
219,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
220,Para [Str "foo",Space,Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
220,Para [Str "foo",Space,Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
221,Para [Str "foo",Space,Str "bar",Space,Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
221,Para [Str "foo",Space,Str "bar",Space,Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
@@ -234,7 +234,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
234,CodeBlock ("",[],[]) "<hr />"
234,CodeBlock ("",[],[]) "<hr />"
235,Para [Str "Hr\8217s:"]
235,Para [Str "Hr\8217s:"]
236,HorizontalRule
236,HorizontalRule
237−,Header 1 ("",[],[]) [Str "Inline",Space,Str "Markup"]
237+,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
238,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
238,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
239,Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
239,Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
240,Para [Str "An",Space,Emph [Link [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
240,Para [Str "An",Space,Emph [Link [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
@@ -248,7 +248,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
248,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many",Space,Str "of",Space,Str "them"],Str "O."]
248,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many",Space,Str "of",Space,Str "them"],Str "O."]
249,Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",Space,Str "because",Space,Str "of",Space,Str "the",Space,Str "unescaped",Space,Str "spaces:",Space,Str "a^b",Space,Str "c^d,",Space,Str "a",Math InlineMath "\\sim",Str "b",Space,Str "c",Math InlineMath "\\sim",Str "d."]
249,Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",Space,Str "because",Space,Str "of",Space,Str "the",Space,Str "unescaped",Space,Str "spaces:",Space,Str "a^b",Space,Str "c^d,",Space,Str "a",Math InlineMath "\\sim",Str "b",Space,Str "c",Math InlineMath "\\sim",Str "d."]
250,HorizontalRule
250,HorizontalRule
251−,Header 1 ("",[],[]) [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
251+,Header 1 ("smart-quotes-ellipses-dashes",[],[]) [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
252,Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Quoted DoubleQuote [Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name."]]
252,Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Quoted DoubleQuote [Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name."]]
253,Para [Quoted SingleQuote [Str "A"],Str ",",Space,Quoted SingleQuote [Str "B"],Str ",",Space,Str "and",Space,Quoted SingleQuote [Str "C"],Space,Str "are",Space,Str "letters."]
253,Para [Quoted SingleQuote [Str "A"],Str ",",Space,Quoted SingleQuote [Str "B"],Str ",",Space,Str "and",Space,Quoted SingleQuote [Str "C"],Space,Str "are",Space,Str "letters."]
254,Para [Quoted SingleQuote [Str "Oak,"],Space,Quoted SingleQuote [Str "elm,"],Space,Str "and",Space,Quoted SingleQuote [Str "beech"],Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",Space,Str "So",Space,Str "is",Space,Quoted SingleQuote [Str "pine."]]
254,Para [Quoted SingleQuote [Str "Oak,"],Space,Quoted SingleQuote [Str "elm,"],Space,Str "and",Space,Quoted SingleQuote [Str "beech"],Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",Space,Str "So",Space,Str "is",Space,Quoted SingleQuote [Str "pine."]]
@@ -258,7 +258,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
258,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
258,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
259,Para [Str "Ellipses\8230and\8230and\8230."]
259,Para [Str "Ellipses\8230and\8230and\8230."]
260,HorizontalRule
260,HorizontalRule
261−,Header 1 ("",[],[]) [Str "LaTeX"]
261+,Header 1 ("latex",[],[]) [Str "LaTeX"]
262,BulletList
262,BulletList
263 [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
263 [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
264 ,[Para [RawInline (Format "latex") "\\doublespacing"]]
264 ,[Para [RawInline (Format "latex") "\\doublespacing"]]
@@ -288,7 +288,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
288 [[[Plain [Str "Animal"]]]
288 [[[Plain [Str "Animal"]]]
289 ,[[Plain [Str "Vegetable"]]]]
289 ,[[Plain [Str "Vegetable"]]]]
290,HorizontalRule
290,HorizontalRule
291−,Header 1 ("",[],[]) [Str "Special",Space,Str "Characters"]
291+,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
292,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
292,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
293,BulletList
293,BulletList
294 [[Para [Str "I",Space,Str "hat:",Space,Str "\206"]]
294 [[Para [Str "I",Space,Str "hat:",Space,Str "\206"]]
@@ -318,8 +318,8 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
318,Para [Str "Plus:",Space,Str "+"]
318,Para [Str "Plus:",Space,Str "+"]
319,Para [Str "Minus:",Space,Str "-"]
319,Para [Str "Minus:",Space,Str "-"]
320,HorizontalRule
320,HorizontalRule
321−,Header 1 ("",[],[]) [Str "Links"]
321+,Header 1 ("links",[],[]) [Str "Links"]
322−,Header 2 ("",[],[]) [Str "Explicit"]
322+,Header 2 ("explicit",[],[]) [Str "Explicit"]
323,Para [Str "Just",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
323,Para [Str "Just",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
324,Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
324,Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
325,Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
325,Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
@@ -329,7 +329,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
329,Para [Link [Str "with_underscore"] ("/url/with_underscore","")]
329,Para [Link [Str "with_underscore"] ("/url/with_underscore","")]
330,Para [Link [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
330,Para [Link [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
331,Para [Link [Str "Empty"] ("",""),Str "."]
331,Para [Link [Str "Empty"] ("",""),Str "."]
332−,Header 2 ("",[],[]) [Str "Reference"]
332+,Header 2 ("reference",[],[]) [Str "Reference"]
333,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
333,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
334,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
334,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
335,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
335,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
@@ -342,12 +342,12 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
342,CodeBlock ("",[],[]) "[not]: /url"
342,CodeBlock ("",[],[]) "[not]: /url"
343,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
343,Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
344,Para [Str "Foo",Space,Link [Str "biz"] ("/url/",""),Str "."]
344,Para [Str "Foo",Space,Link [Str "biz"] ("/url/",""),Str "."]
345−,Header 2 ("",[],[]) [Str "With",Space,Str "ampersands"]
345+,Header 2 ("with-ampersands",[],[]) [Str "With",Space,Str "ampersands"]
346,Para [Str "Here\8217s",Space,Str "a",Space,Link [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
346,Para [Str "Here\8217s",Space,Str "a",Space,Link [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
347,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT&T"] ("http://att.com/",""),Str "."]
347,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT&T"] ("http://att.com/",""),Str "."]
348,Para [Str "Here\8217s",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
348,Para [Str "Here\8217s",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
349,Para [Str "Here\8217s",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
349,Para [Str "Here\8217s",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
350−,Header 2 ("",[],[]) [Str "Autolinks"]
350+,Header 2 ("autolinks",[],[]) [Str "Autolinks"]
351,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
351,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
352,BulletList
352,BulletList
353 [[Para [Str "In",Space,Str "a",Space,Str "list?"]]
353 [[Para [Str "In",Space,Str "a",Space,Str "list?"]]
@@ -359,17 +359,17 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
359,Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code ("",[],[]) "<http://example.com/>"]
359,Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code ("",[],[]) "<http://example.com/>"]
360,CodeBlock ("",[],[]) "or here: <http://example.com/>"
360,CodeBlock ("",[],[]) "or here: <http://example.com/>"
361,HorizontalRule
361,HorizontalRule
362−,Header 1 ("",[],[]) [Str "Images"]
362+,Header 1 ("images",[],[]) [Str "Images"]
363,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
363,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
364,Para [Image [Str "image"] ("lalune.jpg","")]
364,Para [Image [Str "image"] ("lalune.jpg","")]
365,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "image"] ("movie.jpg",""),Space,Str "icon."]
365,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "image"] ("movie.jpg",""),Space,Str "icon."]
366,HorizontalRule
366,HorizontalRule
367−,Header 1 ("",[],[]) [Str "Footnotes"]
367+,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
368,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Note [Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "after",Space,Str "the",Space,Str "footnote",Space,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],Space,Str "and",Space,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { <code> }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",Space,Str "note.",Note [Para [Str "This",Space,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",Space,Link [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
368,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Note [Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "after",Space,Str "the",Space,Str "footnote",Space,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],Space,Str "and",Space,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { <code> }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",Space,Str "note.",Note [Para [Str "This",Space,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",Space,Link [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
369,BlockQuote
369,BlockQuote
370 [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
370 [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
371,OrderedList (1,Decimal,Period)
371,OrderedList (1,Decimal,Period)
372 [[Para [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
372 [[Para [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
373,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."]
373,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."]
374−,Header 1 ("",[],[]) [Str "Escaped",Space,Str "characters"]
374+,Header 1 ("escaped-characters",[],[]) [Str "Escaped",Space,Str "characters"]
375,Para [Str "$",Space,Str "%",Space,Str "&",Space,Str "#",Space,Str "_",Space,Str "{",Space,Str "}"]]
375,Para [Str "$",Space,Str "%",Space,Str "&",Space,Str "#",Space,Str "_",Space,Str "{",Space,Str "}"]]
tests/lhs-test.html+1−1
@@ -27,7 +27,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
27 </style>
27 </style>
28</head>
28</head>
29<body>
29<body>
30−<h1>lhs test</h1>
30+<h1 id="lhs-test">lhs test</h1>
31<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
31<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
32<pre class="sourceCode literate haskell"><code class="sourceCode haskell"><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
32<pre class="sourceCode literate haskell"><code class="sourceCode haskell"><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
33unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
33unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
tests/lhs-test.html+lhs+1−1
@@ -27,7 +27,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
27 </style>
27 </style>
28</head>
28</head>
29<body>
29<body>
30−<h1>lhs test</h1>
30+<h1 id="lhs-test">lhs test</h1>
31<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
31<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
32<pre class="sourceCode literate literatehaskell"><code class="sourceCode literatehaskell"><span class="ot">&gt; unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
32<pre class="sourceCode literate literatehaskell"><code class="sourceCode literatehaskell"><span class="ot">&gt; unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
33<span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
33<span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
tests/lhs-test.latex+1−1
@@ -68,7 +68,7 @@
68
68
69\begin{document}
69\begin{document}
70
70
71−\section{lhs test}
71+\section{lhs test}\label{lhs-test}
72
72
73\texttt{unsplit} is an arrow that takes a pair of values and combines them to
73\texttt{unsplit} is an arrow that takes a pair of values and combines them to
74return a single value:
74return a single value:
tests/lhs-test.latex+lhs+1−1
@@ -49,7 +49,7 @@
49
49
50\begin{document}
50\begin{document}
51
51
52−\section{lhs test}
52+\section{lhs test}\label{lhs-test}
53
53
54\texttt{unsplit} is an arrow that takes a pair of values and combines them to
54\texttt{unsplit} is an arrow that takes a pair of values and combines them to
55return a single value:
55return a single value:
tests/lhs-test.native+1−1
@@ -1,4 +1,4 @@
1−[Header 1 ("",[],[]) [Str "lhs",Space,Str "test"]
1+[Header 1 ("lhs-test",[],[]) [Str "lhs",Space,Str "test"]
2,Para [Code ("",[],[]) "unsplit",Space,Str "is",Space,Str "an",Space,Str "arrow",Space,Str "that",Space,Str "takes",Space,Str "a",Space,Str "pair",Space,Str "of",Space,Str "values",Space,Str "and",Space,Str "combines",Space,Str "them",Space,Str "to",Space,Str "return",Space,Str "a",Space,Str "single",Space,Str "value:"]
2,Para [Code ("",[],[]) "unsplit",Space,Str "is",Space,Str "an",Space,Str "arrow",Space,Str "that",Space,Str "takes",Space,Str "a",Space,Str "pair",Space,Str "of",Space,Str "values",Space,Str "and",Space,Str "combines",Space,Str "them",Space,Str "to",Space,Str "return",Space,Str "a",Space,Str "single",Space,Str "value:"]
3,CodeBlock ("",["sourceCode","literate","haskell"],[]) "unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d\nunsplit = arr . uncurry\n -- arr (\\op (x,y) -> x `op` y)"
3,CodeBlock ("",["sourceCode","literate","haskell"],[]) "unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d\nunsplit = arr . uncurry\n -- arr (\\op (x,y) -> x `op` y)"
4,Para [Code ("",[],[]) "(***)",Space,Str "combines",Space,Str "two",Space,Str "arrows",Space,Str "into",Space,Str "a",Space,Str "new",Space,Str "arrow",Space,Str "by",Space,Str "running",Space,Str "the",Space,Str "two",Space,Str "arrows",Space,Str "on",Space,Str "a",Space,Str "pair",Space,Str "of",Space,Str "values",Space,Str "(one",Space,Str "arrow",Space,Str "on",Space,Str "the",Space,Str "first",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair",Space,Str "and",Space,Str "one",Space,Str "arrow",Space,Str "on",Space,Str "the",Space,Str "second",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair)."]
4,Para [Code ("",[],[]) "(***)",Space,Str "combines",Space,Str "two",Space,Str "arrows",Space,Str "into",Space,Str "a",Space,Str "new",Space,Str "arrow",Space,Str "by",Space,Str "running",Space,Str "the",Space,Str "two",Space,Str "arrows",Space,Str "on",Space,Str "a",Space,Str "pair",Space,Str "of",Space,Str "values",Space,Str "(one",Space,Str "arrow",Space,Str "on",Space,Str "the",Space,Str "first",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair",Space,Str "and",Space,Str "one",Space,Str "arrow",Space,Str "on",Space,Str "the",Space,Str "second",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair)."]
tests/rst-reader.native+29−29
@@ -1,11 +1,11 @@
1Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("revision",MetaBlocks [Para [Str "3"]]),("subtitle",MetaInlines [Str "Subtitle"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
1Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("revision",MetaBlocks [Para [Str "3"]]),("subtitle",MetaInlines [Str "Subtitle"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
2−[Header 1 ("",[],[]) [Str "Level",Space,Str "one",Space,Str "header"]
2+[Header 1 ("level-one-header",[],[]) [Str "Level",Space,Str "one",Space,Str "header"]
3,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
3,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
4−,Header 2 ("",[],[]) [Str "Level",Space,Str "two",Space,Str "header"]
4+,Header 2 ("level-two-header",[],[]) [Str "Level",Space,Str "two",Space,Str "header"]
5−,Header 3 ("",[],[]) [Str "Level",Space,Str "three"]
5+,Header 3 ("level-three",[],[]) [Str "Level",Space,Str "three"]
6−,Header 4 ("",[],[]) [Str "Level",Space,Str "four",Space,Str "with",Space,Emph [Str "emphasis"]]
6+,Header 4 ("level-four-with-emphasis",[],[]) [Str "Level",Space,Str "four",Space,Str "with",Space,Emph [Str "emphasis"]]
7−,Header 5 ("",[],[]) [Str "Level",Space,Str "five"]
7+,Header 5 ("level-five",[],[]) [Str "Level",Space,Str "five"]
8−,Header 1 ("",[],[]) [Str "Paragraphs"]
8+,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
9,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
9,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
10,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
10,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
11,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
11,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
@@ -13,7 +13,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
13,HorizontalRule
13,HorizontalRule
14,Para [Str "Another:"]
14,Para [Str "Another:"]
15,HorizontalRule
15,HorizontalRule
16−,Header 1 ("",[],[]) [Str "Block",Space,Str "Quotes"]
16+,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
17,Para [Str "Here\8217s",Space,Str "a",Space,Str "block",Space,Str "quote:"]
17,Para [Str "Here\8217s",Space,Str "a",Space,Str "block",Space,Str "quote:"]
18,BlockQuote
18,BlockQuote
19 [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
19 [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
@@ -31,7 +31,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
31 [Para [Str "nested"]
31 [Para [Str "nested"]
32 ,BlockQuote
32 ,BlockQuote
33 [Para [Str "nested"]]]]
33 [Para [Str "nested"]]]]
34−,Header 1 ("",[],[]) [Str "Code",Space,Str "Blocks"]
34+,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
35,Para [Str "Code:"]
35,Para [Str "Code:"]
36,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}"
36,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}"
37,CodeBlock ("",[],[]) "this code block is indented by one tab"
37,CodeBlock ("",[],[]) "this code block is indented by one tab"
@@ -39,8 +39,8 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
39,CodeBlock ("",[],[]) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
39,CodeBlock ("",[],[]) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
40,Para [Str "And:"]
40,Para [Str "And:"]
41,CodeBlock ("",["sourceCode","python"],[]) "def my_function(x):\n return x + 1"
41,CodeBlock ("",["sourceCode","python"],[]) "def my_function(x):\n return x + 1"
42−,Header 1 ("",[],[]) [Str "Lists"]
42+,Header 1 ("lists",[],[]) [Str "Lists"]
43−,Header 2 ("",[],[]) [Str "Unordered"]
43+,Header 2 ("unordered",[],[]) [Str "Unordered"]
44,Para [Str "Asterisks",Space,Str "tight:"]
44,Para [Str "Asterisks",Space,Str "tight:"]
45,BulletList
45,BulletList
46 [[Plain [Str "asterisk",Space,Str "1"]]
46 [[Plain [Str "asterisk",Space,Str "1"]]
@@ -71,7 +71,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
71 [[Plain [Str "Minus",Space,Str "1"]]
71 [[Plain [Str "Minus",Space,Str "1"]]
72 ,[Plain [Str "Minus",Space,Str "2"]]
72 ,[Plain [Str "Minus",Space,Str "2"]]
73 ,[Plain [Str "Minus",Space,Str "3"]]]
73 ,[Plain [Str "Minus",Space,Str "3"]]]
74−,Header 2 ("",[],[]) [Str "Ordered"]
74+,Header 2 ("ordered",[],[]) [Str "Ordered"]
75,Para [Str "Tight:"]
75,Para [Str "Tight:"]
76,OrderedList (1,Decimal,Period)
76,OrderedList (1,Decimal,Period)
77 [[Plain [Str "First"]]
77 [[Plain [Str "First"]]
@@ -115,7 +115,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
115 ,[Plain [Str "Fie"]]
115 ,[Plain [Str "Fie"]]
116 ,[Plain [Str "Foe"]]]]]
116 ,[Plain [Str "Foe"]]]]]
117 ,[Plain [Str "Third"]]]
117 ,[Plain [Str "Third"]]]
118−,Header 2 ("",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
118+,Header 2 ("fancy-list-markers",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
119,OrderedList (2,Decimal,TwoParens)
119,OrderedList (2,Decimal,TwoParens)
120 [[Plain [Str "begins",Space,Str "with",Space,Str "2"]]
120 [[Plain [Str "begins",Space,Str "with",Space,Str "2"]]
121 ,[Para [Str "and",Space,Str "now",Space,Str "3"]
121 ,[Para [Str "and",Space,Str "now",Space,Str "3"]
@@ -145,7 +145,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
145,OrderedList (4,LowerAlpha,TwoParens)
145,OrderedList (4,LowerAlpha,TwoParens)
146 [[Plain [Str "item",Space,Str "1"]]
146 [[Plain [Str "item",Space,Str "1"]]
147 ,[Plain [Str "item",Space,Str "2"]]]
147 ,[Plain [Str "item",Space,Str "2"]]]
148−,Header 2 ("",[],[]) [Str "Definition"]
148+,Header 2 ("definition",[],[]) [Str "Definition"]
149,DefinitionList
149,DefinitionList
150 [([Str "term",Space,Str "1"],
150 [([Str "term",Space,Str "1"],
151 [[Para [Str "Definition",Space,Str "1."]]])
151 [[Para [Str "Definition",Space,Str "1."]]])
@@ -154,7 +154,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
154 ,Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."]]])
154 ,Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."]]])
155 ,([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
155 ,([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
156 [[Para [Str "Definition",Space,Str "3."]]])]
156 [[Para [Str "Definition",Space,Str "3."]]])]
157−,Header 1 ("",[],[]) [Str "Field",Space,Str "Lists"]
157+,Header 1 ("field-lists",[],[]) [Str "Field",Space,Str "Lists"]
158,BlockQuote
158,BlockQuote
159 [DefinitionList
159 [DefinitionList
160 [([Str "address"],
160 [([Str "address"],
@@ -170,18 +170,18 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
170 [[Para [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"]]])
170 [[Para [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"]]])
171 ,([Str "phone"],
171 ,([Str "phone"],
172 [[Para [Str "123-4567"]]])]
172 [[Para [Str "123-4567"]]])]
173−,Header 1 ("",[],[]) [Str "HTML",Space,Str "Blocks"]
173+,Header 1 ("html-blocks",[],[]) [Str "HTML",Space,Str "Blocks"]
174,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
174,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
175,RawBlock (Format "html") "<div>foo</div>"
175,RawBlock (Format "html") "<div>foo</div>"
176,Para [Str "Now,",Space,Str "nested:"]
176,Para [Str "Now,",Space,Str "nested:"]
177,RawBlock (Format "html") "<div>\n <div>\n <div>\n foo\n </div>\n </div>\n</div>"
177,RawBlock (Format "html") "<div>\n <div>\n <div>\n foo\n </div>\n </div>\n</div>"
178−,Header 1 ("",[],[]) [Str "LaTeX",Space,Str "Block"]
178+,Header 1 ("latex-block",[],[]) [Str "LaTeX",Space,Str "Block"]
179,RawBlock (Format "latex") "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
179,RawBlock (Format "latex") "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
180−,Header 1 ("",[],[]) [Str "Inline",Space,Str "Markup"]
180+,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
181,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str "."]
181,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str "."]
182,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "<html>",Str "."]
182,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "<html>",Str "."]
183,Para [Str "This",Space,Str "is",Subscript [Str "subscripted"],Space,Str "and",Space,Str "this",Space,Str "is",Space,Superscript [Str "superscripted"],Str "."]
183,Para [Str "This",Space,Str "is",Subscript [Str "subscripted"],Space,Str "and",Space,Str "this",Space,Str "is",Space,Superscript [Str "superscripted"],Str "."]
184−,Header 1 ("",[],[]) [Str "Special",Space,Str "Characters"]
184+,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
185,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
185,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
186,BulletList
186,BulletList
187 [[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
187 [[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
@@ -209,7 +209,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
209,Para [Str "Bang:",Space,Str "!"]
209,Para [Str "Bang:",Space,Str "!"]
210,Para [Str "Plus:",Space,Str "+"]
210,Para [Str "Plus:",Space,Str "+"]
211,Para [Str "Minus:",Space,Str "-"]
211,Para [Str "Minus:",Space,Str "-"]
212−,Header 1 ("",[],[]) [Str "Links"]
212+,Header 1 ("links",[],[]) [Str "Links"]
213,Para [Str "Explicit:",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
213,Para [Str "Explicit:",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
214,Para [Str "Two",Space,Str "anonymous",Space,Str "links:",Space,Link [Str "the",Space,Str "first"] ("/url1/",""),Space,Str "and",Space,Link [Str "the",Space,Str "second"] ("/url2/","")]
214,Para [Str "Two",Space,Str "anonymous",Space,Str "links:",Space,Link [Str "the",Space,Str "first"] ("/url1/",""),Space,Str "and",Space,Link [Str "the",Space,Str "second"] ("/url2/","")]
215,Para [Str "Reference",Space,Str "links:",Space,Link [Str "link1"] ("/url1/",""),Space,Str "and",Space,Link [Str "link2"] ("/url2/",""),Space,Str "and",Space,Link [Str "link1"] ("/url1/",""),Space,Str "again."]
215,Para [Str "Reference",Space,Str "links:",Space,Link [Str "link1"] ("/url1/",""),Space,Str "and",Space,Link [Str "link2"] ("/url2/",""),Space,Str "and",Space,Link [Str "link1"] ("/url1/",""),Space,Str "again."]
@@ -218,20 +218,20 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
218,Para [Str "Autolinks:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2",""),Space,Str "and",Space,Link [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net",""),Str "."]
218,Para [Str "Autolinks:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2",""),Space,Str "and",Space,Link [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net",""),Str "."]
219,Para [Str "But",Space,Str "not",Space,Str "here:"]
219,Para [Str "But",Space,Str "not",Space,Str "here:"]
220,CodeBlock ("",[],[]) "http://example.com/"
220,CodeBlock ("",[],[]) "http://example.com/"
221−,Header 1 ("",[],[]) [Str "Images"]
221+,Header 1 ("images",[],[]) [Str "Images"]
222,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
222,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
223,Para [Image [Str "image"] ("lalune.jpg","")]
223,Para [Image [Str "image"] ("lalune.jpg","")]
224,Para [Image [Str "Voyage dans la Lune"] ("lalune.jpg","")]
224,Para [Image [Str "Voyage dans la Lune"] ("lalune.jpg","")]
225,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
225,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
226,Para [Str "And",Space,Str "an",Space,Link [Image [Str "A movie"] ("movie.jpg","")] ("/url",""),Str "."]
226,Para [Str "And",Space,Str "an",Space,Link [Image [Str "A movie"] ("movie.jpg","")] ("/url",""),Str "."]
227−,Header 1 ("",[],[]) [Str "Comments"]
227+,Header 1 ("comments",[],[]) [Str "Comments"]
228,Para [Str "First",Space,Str "paragraph"]
228,Para [Str "First",Space,Str "paragraph"]
229,Para [Str "Another",Space,Str "paragraph"]
229,Para [Str "Another",Space,Str "paragraph"]
230,Para [Str "A",Space,Str "third",Space,Str "paragraph"]
230,Para [Str "A",Space,Str "third",Space,Str "paragraph"]
231−,Header 1 ("",[],[]) [Str "Line",Space,Str "blocks"]
231+,Header 1 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"]
232,Para [Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be",LineBreak,Str "\160\160\160\160or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160\160\160\160\160due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
232,Para [Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be",LineBreak,Str "\160\160\160\160or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160\160\160\160\160due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
233,Para [Str "Continuation",Space,Str "line",LineBreak,Str "\160\160and",Space,Str "another"]
233,Para [Str "Continuation",Space,Str "line",LineBreak,Str "\160\160and",Space,Str "another"]
234−,Header 1 ("",[],[]) [Str "Simple",Space,Str "Tables"]
234+,Header 1 ("simple-tables",[],[]) [Str "Simple",Space,Str "Tables"]
235,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
235,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
236 [[Plain [Str "col",Space,Str "1"]]
236 [[Plain [Str "col",Space,Str "1"]]
237 ,[Plain [Str "col",Space,Str "2"]]
237 ,[Plain [Str "col",Space,Str "2"]]
@@ -253,7 +253,7 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
253 ,[[Plain [Str "r2",Space,Str "d"]]
253 ,[[Plain [Str "r2",Space,Str "d"]]
254 ,[Plain [Str "e"]]
254 ,[Plain [Str "e"]]
255 ,[Plain [Str "f"]]]]
255 ,[Plain [Str "f"]]]]
256−,Header 1 ("",[],[]) [Str "Grid",Space,Str "Tables"]
256+,Header 1 ("grid-tables",[],[]) [Str "Grid",Space,Str "Tables"]
257,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
257,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
258 [[Plain [Str "col",Space,Str "1"]]
258 [[Plain [Str "col",Space,Str "1"]]
259 ,[Plain [Str "col",Space,Str "2"]]
259 ,[Plain [Str "col",Space,Str "2"]]
@@ -298,26 +298,26 @@ Pandoc (Meta {unMeta = fromList [("authors",MetaList [MetaInlines [Str "John",Sp
298 ,[Plain [Str "b",Space,Str "2"]]
298 ,[Plain [Str "b",Space,Str "2"]]
299 ,[Plain [Str "b",Space,Str "2"]]]]
299 ,[Plain [Str "b",Space,Str "2"]]]]
300 ,[Plain [Str "c",Space,Str "c",Space,Str "2",Space,Str "c",Space,Str "2"]]]]
300 ,[Plain [Str "c",Space,Str "c",Space,Str "2",Space,Str "c",Space,Str "2"]]]]
301−,Header 1 ("",[],[]) [Str "Footnotes"]
301+,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
302,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "one",Space,Str "line."]]]
302,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "one",Space,Str "line."]]]
303,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "continuation",Space,Str "line."]]]
303,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "continuation",Space,Str "line."]]]
304,Para [Note [Para [Str "Note",Space,Str "with"],Para [Str "continuation",Space,Str "block."]]]
304,Para [Note [Para [Str "Note",Space,Str "with"],Para [Str "continuation",Space,Str "block."]]]
305,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "continuation",Space,Str "line"],Para [Str "and",Space,Str "a",Space,Str "second",Space,Str "para."]]]
305,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "continuation",Space,Str "line"],Para [Str "and",Space,Str "a",Space,Str "second",Space,Str "para."]]]
306,Para [Str "Not",Space,Str "in",Space,Str "note."]
306,Para [Str "Not",Space,Str "in",Space,Str "note."]
307−,Header 1 ("",[],[]) [Str "Math"]
307+,Header 1 ("math",[],[]) [Str "Math"]
308,Para [Str "Some",Space,Str "inline",Space,Str "math",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Now",Space,Str "some",Space,Str "display",Space,Str "math:"]
308,Para [Str "Some",Space,Str "inline",Space,Str "math",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Now",Space,Str "some",Space,Str "display",Space,Str "math:"]
309,Para [Math DisplayMath "E=mc^2"]
309,Para [Math DisplayMath "E=mc^2"]
310,Para [Math DisplayMath "E = mc^2"]
310,Para [Math DisplayMath "E = mc^2"]
311,Para [Math DisplayMath "E = mc^2",Math DisplayMath "\\alpha = \\beta"]
311,Para [Math DisplayMath "E = mc^2",Math DisplayMath "\\alpha = \\beta"]
312,Para [Math DisplayMath "E &= mc^2\\\\\nF &= \\pi E",Math DisplayMath "F &= \\gamma \\alpha^2"]
312,Para [Math DisplayMath "E &= mc^2\\\\\nF &= \\pi E",Math DisplayMath "F &= \\gamma \\alpha^2"]
313,Para [Str "All",Space,Str "done."]
313,Para [Str "All",Space,Str "done."]
314−,Header 1 ("",[],[]) [Str "Default-Role"]
314+,Header 1 ("default-role",[],[]) [Str "Default-Role"]
315,Para [Str "Try",Space,Str "changing",Space,Str "the",Space,Str "default",Space,Str "role",Space,Str "to",Space,Str "a",Space,Str "few",Space,Str "different",Space,Str "things."]
315,Para [Str "Try",Space,Str "changing",Space,Str "the",Space,Str "default",Space,Str "role",Space,Str "to",Space,Str "a",Space,Str "few",Space,Str "different",Space,Str "things."]
316−,Header 2 ("",[],[]) [Str "Doesn\8217t",Space,Str "Break",Space,Str "Title",Space,Str "Parsing"]
316+,Header 2 ("doesnt-break-title-parsing",[],[]) [Str "Doesn\8217t",Space,Str "Break",Space,Str "Title",Space,Str "Parsing"]
317,Para [Str "Inline",Space,Str "math:",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Other",Space,Str "roles:",Space,Superscript [Str "super"],Str ",",Space,Subscript [Str "sub"],Str "."]
317,Para [Str "Inline",Space,Str "math:",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Other",Space,Str "roles:",Space,Superscript [Str "super"],Str ",",Space,Subscript [Str "sub"],Str "."]
318,Para [Math DisplayMath "\\alpha = beta",Math DisplayMath "E = mc^2"]
318,Para [Math DisplayMath "\\alpha = beta",Math DisplayMath "E = mc^2"]
319,Para [Str "Some",Space,Superscript [Str "of"],Space,Str "these",Space,Superscript [Str "words"],Space,Str "are",Space,Str "in",Space,Superscript [Str "superscript"],Str "."]
319,Para [Str "Some",Space,Superscript [Str "of"],Space,Str "these",Space,Superscript [Str "words"],Space,Str "are",Space,Str "in",Space,Superscript [Str "superscript"],Str "."]
320,Para [Str "Reset",Space,Str "default-role",Space,Str "to",Space,Str "the",Space,Str "default",Space,Str "default."]
320,Para [Str "Reset",Space,Str "default-role",Space,Str "to",Space,Str "the",Space,Str "default",Space,Str "default."]
321,Para [Str "And",Space,Str "now",Space,Str "some-invalid-string-3231231",Space,Str "is",Space,Str "nonsense."]
321,Para [Str "And",Space,Str "now",Space,Str "some-invalid-string-3231231",Space,Str "is",Space,Str "nonsense."]
322−,Header 2 ("",[],[]) [Str "Literal",Space,Str "symbols"]
322+,Header 2 ("literal-symbols",[],[]) [Str "Literal",Space,Str "symbols"]
323,Para [Str "2*2",Space,Str "=",Space,Str "4*1"]]
323,Para [Str "2*2",Space,Str "=",Space,Str "4*1"]]