aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
Diffstat (limited to 'test/command')
-rw-r--r--test/command/1279.md2
-rw-r--r--test/command/1390.md8
-rw-r--r--test/command/1592.md46
-rw-r--r--test/command/1608.md184
-rw-r--r--test/command/168.md52
-rw-r--r--test/command/1718.md10
-rw-r--r--test/command/1773.md4
-rw-r--r--test/command/1881.md180
-rw-r--r--test/command/2103.md2
-rw-r--r--test/command/2118.md8
-rw-r--r--test/command/2549.md24
-rw-r--r--test/command/256.md34
-rw-r--r--test/command/262.md3
-rw-r--r--test/command/2649.md9
-rw-r--r--test/command/3113.md7
-rw-r--r--test/command/3123.md8
-rw-r--r--test/command/3236.md16
-rw-r--r--test/command/3257.md4
-rw-r--r--test/command/3324.md2
-rw-r--r--test/command/3348.md80
-rw-r--r--test/command/3401.md4
-rw-r--r--test/command/3407.md7
-rw-r--r--test/command/3475.md8
-rw-r--r--test/command/3510.md16
-rw-r--r--test/command/3511.md44
-rw-r--r--test/command/3516.md57
-rw-r--r--test/command/3518.md2
-rw-r--r--test/command/3523.md8
-rw-r--r--test/command/3530.md60
-rw-r--r--test/command/3533-rst-csv-tables.md299
-rw-r--r--test/command/3534.md55
-rw-r--r--test/command/3537.md12
-rw-r--r--test/command/3539.md220
-rw-r--r--test/command/3558.md7
-rw-r--r--test/command/3577.md9
-rw-r--r--test/command/3585.md25
-rw-r--r--test/command/3587.md96
-rw-r--r--test/command/3681.md48
-rw-r--r--test/command/3701.md3
-rw-r--r--test/command/3706.md114
-rw-r--r--test/command/3708.md65
-rw-r--r--test/command/3733.md8
-rw-r--r--test/command/3752.md18
-rw-r--r--test/command/3755.md34
-rw-r--r--test/command/3779.md39
-rw-r--r--test/command/3792.md2
-rw-r--r--test/command/3794.md3
-rw-r--r--test/command/3804.md5
-rw-r--r--test/command/3840.md3
-rw-r--r--test/command/3853.md8
-rw-r--r--test/command/3880.md4
-rw-r--r--test/command/3916.md12
-rw-r--r--test/command/3947.md6
-rw-r--r--test/command/3958.md6
-rw-r--r--test/command/3971.md2
-rw-r--r--test/command/3983.md18
-rw-r--r--test/command/3989.md19
-rw-r--r--test/command/4007.md12
-rw-r--r--test/command/4012.md5
-rw-r--r--test/command/4016.md2
-rw-r--r--test/command/4019.md2
-rw-r--r--test/command/4054.md15
-rw-r--r--test/command/4056.md60
-rw-r--r--test/command/4063.md45
-rw-r--r--test/command/4068.md30
-rw-r--r--test/command/4119.md75
-rw-r--r--test/command/4134.md7
-rw-r--r--test/command/4159.md5
-rw-r--r--test/command/4162.md5
-rw-r--r--test/command/4164.md2
-rw-r--r--test/command/4183.md12
-rw-r--r--test/command/4186.md8
-rw-r--r--test/command/4193.md6
-rw-r--r--test/command/4199.md5
-rw-r--r--test/command/4235.md10
-rw-r--r--test/command/4240.md21
-rw-r--r--test/command/4253.md2
-rw-r--r--test/command/4280.md2
-rw-r--r--test/command/4281.md15
-rw-r--r--test/command/4284.md88
-rw-r--r--test/command/4306.md16
-rw-r--r--test/command/4374.md15
-rw-r--r--test/command/4382.md4
-rw-r--r--test/command/4424.md2
-rw-r--r--test/command/4454.md6
-rw-r--r--test/command/4499.md4
-rw-r--r--test/command/4513.md42
-rw-r--r--test/command/4528.md2
-rw-r--r--test/command/4553.md16
-rw-r--r--test/command/4576.md2
-rw-r--r--test/command/4579.md66
-rw-r--r--test/command/4624.md13
-rw-r--r--test/command/4635.md12
-rw-r--r--test/command/4639.md2
-rw-r--r--test/command/4667.md2
-rw-r--r--test/command/4669.md20
-rw-r--r--test/command/4677.md3
-rw-r--r--test/command/4715.md19
-rw-r--r--test/command/4722.md44
-rw-r--r--test/command/4742.md39
-rw-r--r--test/command/4743.md28
-rw-r--r--test/command/4781.md28
-rw-r--r--test/command/4805-beamer-columns-alignment.md2
-rw-r--r--test/command/4811.md26
-rw-r--r--test/command/4817.md15
-rw-r--r--test/command/4819.md25
-rw-r--r--test/command/4832.md24
-rw-r--r--test/command/4833.md4
-rw-r--r--test/command/4842.md4
-rw-r--r--test/command/4845.md17
-rw-r--r--test/command/4848.md67
-rw-r--r--test/command/4860.md13
-rw-r--r--test/command/4877.md6
-rw-r--r--test/command/4919.md9
-rw-r--r--test/command/4928.md187
-rw-r--r--test/command/4933.md6
-rw-r--r--test/command/5014.md47
-rw-r--r--test/command/5050.md2
-rw-r--r--test/command/5079.md34
-rw-r--r--test/command/5080.md4
-rw-r--r--test/command/5099.md20
-rw-r--r--test/command/512.md3
-rw-r--r--test/command/5121.md3
-rw-r--r--test/command/5128.md2
-rw-r--r--test/command/5178.md23
-rw-r--r--test/command/5182.md7
-rw-r--r--test/command/5271.md33
-rw-r--r--test/command/5285.md22
-rw-r--r--test/command/5321.md14
-rw-r--r--test/command/5360.md19
-rw-r--r--test/command/5367.md2
-rw-r--r--test/command/5368.md31
-rw-r--r--test/command/5410.md2
-rw-r--r--test/command/5416.md4
-rw-r--r--test/command/5540.md8
-rw-r--r--test/command/5549.md3
-rw-r--r--test/command/5619.md29
-rw-r--r--test/command/5627.md12
-rw-r--r--test/command/5642.md3
-rw-r--r--test/command/5650.md6
-rw-r--r--test/command/5655.md10
-rw-r--r--test/command/5682.md2
-rw-r--r--test/command/5686.md26
-rw-r--r--test/command/5700.md37
-rw-r--r--test/command/5708.md45
-rw-r--r--test/command/5711.md34
-rw-r--r--test/command/5714.md11
-rw-r--r--test/command/5753.md8
-rw-r--r--test/command/5795.md7
-rw-r--r--test/command/5797.md2
-rw-r--r--test/command/5805.md2
-rw-r--r--test/command/5813.md3
-rw-r--r--test/command/5845.md15
-rw-r--r--test/command/5878.md10
-rw-r--r--test/command/5986.md5
-rw-r--r--test/command/6009.md13
-rw-r--r--test/command/6026.md30
-rw-r--r--test/command/6034.md5
-rw-r--r--test/command/6114.md8
-rw-r--r--test/command/6137.md168
-rw-r--r--test/command/6288.md4
-rw-r--r--test/command/6324.md13
-rw-r--r--test/command/6658.md2
-rw-r--r--test/command/6699.md6
-rw-r--r--test/command/6709.md4
-rw-r--r--test/command/6719.md4
-rw-r--r--test/command/6739.md3
-rw-r--r--test/command/6741.md8
-rw-r--r--test/command/6791.md45
-rw-r--r--test/command/6792.md2
-rw-r--r--test/command/6802.md5
-rw-r--r--test/command/6836.md36
-rw-r--r--test/command/6844.md6
-rw-r--r--test/command/6869.md15
-rw-r--r--test/command/6873.md30
-rw-r--r--test/command/6890.md116
-rw-r--r--test/command/6970.md12
-rw-r--r--test/command/6993.md18
-rw-r--r--test/command/7003.md29
-rw-r--r--test/command/7006.md9
-rw-r--r--test/command/7080.md11
-rw-r--r--test/command/7092.md4
-rw-r--r--test/command/7129.md66
-rw-r--r--test/command/7134.md45
-rw-r--r--test/command/7145.md62
-rw-r--r--test/command/7155.md22
-rw-r--r--test/command/7208.md2
-rw-r--r--test/command/7216.md2
-rw-r--r--test/command/7272.md2
-rw-r--r--test/command/7329.md67
-rw-r--r--test/command/7339.md8
-rw-r--r--test/command/7340.md2
-rw-r--r--test/command/7400.md3
-rw-r--r--test/command/7416.md6
-rw-r--r--test/command/7434.md14
-rw-r--r--test/command/7436.md23
-rw-r--r--test/command/7482.md47
-rw-r--r--test/command/7494.md62
-rw-r--r--test/command/7497.md37
-rw-r--r--test/command/7520.md22
-rw-r--r--test/command/7521.md11
-rw-r--r--test/command/7529.md7
-rw-r--r--test/command/7546.md6
-rw-r--r--test/command/7557.md20
-rw-r--r--test/command/7568.md16
-rw-r--r--test/command/7573.md11
-rw-r--r--test/command/7589.md72
-rw-r--r--test/command/7615.md6
-rw-r--r--test/command/7623.md12
-rw-r--r--test/command/7632.md66
-rw-r--r--test/command/7668.md36
-rw-r--r--test/command/7692.md13
-rw-r--r--test/command/7697.md27
-rw-r--r--test/command/7713.md29
-rw-r--r--test/command/7723.md8
-rw-r--r--test/command/7726.md22
-rw-r--r--test/command/7738.md6
-rw-r--r--test/command/7761.md35
-rw-r--r--test/command/853.md7
-rw-r--r--test/command/934.md36
-rw-r--r--test/command/982.md2
-rw-r--r--test/command/987.md2
-rw-r--r--test/command/adjacent_latex_blocks.md5
-rw-r--r--test/command/ascii.md14
-rw-r--r--test/command/bar-endinput.tex3
-rw-r--r--test/command/biblatex-article.md2
-rw-r--r--test/command/biblatex-gillies.md2
-rw-r--r--test/command/biblatex-shore.md2
-rw-r--r--test/command/biblatex-sigfridsson.md2
-rw-r--r--test/command/cite-in-inline-note.md22
-rw-r--r--test/command/citeproc-87.md55
-rw-r--r--test/command/citeproc-author-in-text-suffix.md30
-rw-r--r--test/command/csv.md132
-rw-r--r--test/command/docbook-bibliography.md33
-rw-r--r--test/command/dots.md7
-rw-r--r--test/command/empty_paragraphs.md30
-rw-r--r--test/command/gfm.md132
-rw-r--r--test/command/hspace.md24
-rw-r--r--test/command/html-read-figure.md30
-rw-r--r--test/command/html-trim-definition-list-terms.md14
-rw-r--r--test/command/hyphenat.md26
-rw-r--r--test/command/ifstrequal.md9
-rw-r--r--test/command/indented-fences.md6
-rw-r--r--test/command/input-with-endinput.md15
-rw-r--r--test/command/jats-figure-alt-text.md18
-rw-r--r--test/command/latex-center.md3
-rw-r--r--test/command/latex-color.md126
-rw-r--r--test/command/latex-command-comment.md4
-rw-r--r--test/command/latex-fontawesome.md4
-rw-r--r--test/command/latex-tabular-column-specs.md112
-rw-r--r--test/command/lettrine.md15
-rw-r--r--test/command/lstlisting.md23
-rw-r--r--test/command/macro-defs-in-preamble.md10
-rw-r--r--test/command/macros.md38
-rw-r--r--test/command/md-abbrevs.md5
-rw-r--r--test/command/multiple-metadata-blocks.md8
-rw-r--r--test/command/pandoc-citeproc-31.md5
-rw-r--r--test/command/pandoc-citeproc-312.md2
-rw-r--r--test/command/pandoc-citeproc-327.md4
-rw-r--r--test/command/pandoc-citeproc-338.md3
-rw-r--r--test/command/pandoc-citeproc-386.md4
-rw-r--r--test/command/refs.md242
-rw-r--r--test/command/setext-fenced-div.md3
-rw-r--r--test/command/shift-heading-level-by.md39
-rw-r--r--test/command/sloppypar.md214
-rw-r--r--test/command/table-with-cell-align.md65
-rw-r--r--test/command/table-with-column-span.md243
-rw-r--r--test/command/tabularx.md483
-rw-r--r--test/command/translations.md8
-rw-r--r--test/command/video-audio.md10
-rw-r--r--test/command/write18.md4
-rw-r--r--test/command/yaml-metadata-blocks.md78
-rw-r--r--test/command/yaml-with-chomp.md12
273 files changed, 6282 insertions, 1449 deletions
diff --git a/test/command/1279.md b/test/command/1279.md
index d3572f245..522e399cf 100644
--- a/test/command/1279.md
+++ b/test/command/1279.md
@@ -1,5 +1,5 @@
```
-pandoc -s -t markdown
+% pandoc -s -t markdown
---
author: 'John Doe[^1]'
date: 2014
diff --git a/test/command/1390.md b/test/command/1390.md
index ffd2cef8d..4fea32290 100644
--- a/test/command/1390.md
+++ b/test/command/1390.md
@@ -3,7 +3,13 @@
\newcommand\foo{+}
Testing: $\mu\foo\eta$.
^D
-[Para [Str "Testing:",Space,Math InlineMath "\\mu+\\eta",Str "."]]
+[ Para
+ [ Str "Testing:"
+ , Space
+ , Math InlineMath "\\mu+\\eta"
+ , Str "."
+ ]
+]
```
<!-- It would be nice to handle this case, but I don't
diff --git a/test/command/1592.md b/test/command/1592.md
index 0f6151063..c3dc933a8 100644
--- a/test/command/1592.md
+++ b/test/command/1592.md
@@ -2,35 +2,35 @@
% pandoc -t native
[hi]{.smallcaps}
^D
-[Para [SmallCaps [Str "hi"]]]
+[ Para [ SmallCaps [ Str "hi" ] ] ]
```
```
% pandoc -t native
[hi]{style="font-variant: small-caps;"}
^D
-[Para [SmallCaps [Str "hi"]]]
+[ Para [ SmallCaps [ Str "hi" ] ] ]
```
```
% pandoc -t native
<span class="smallcaps">hi</span>
^D
-[Para [SmallCaps [Str "hi"]]]
+[ Para [ SmallCaps [ Str "hi" ] ] ]
```
```
% pandoc -f html -t native
<p><span class="smallcaps">hi</span></p>
^D
-[Para [SmallCaps [Str "hi"]]]
+[ Para [ SmallCaps [ Str "hi" ] ] ]
```
```
% pandoc -f html -t native
<p><span style="font-variant:small-caps">hi</span></p>
^D
-[Para [SmallCaps [Str "hi"]]]
+[ Para [ SmallCaps [ Str "hi" ] ] ]
```
```
@@ -41,7 +41,7 @@
```
```
-pandoc -f native -t markdown
+% pandoc -f native -t markdown
[Para [SmallCaps [Str "hi"]]]
^D
[hi]{.smallcaps}
@@ -51,14 +51,24 @@ pandoc -f native -t markdown
% pandoc -f html -t native
<bdo dir="ltr">foo</bdo>
^D
-[Plain [Span ("",[],[("dir","ltr")]) [Str "foo"]]]
+[ Plain
+ [ Span ( "" , [] , [ ( "dir" , "ltr" ) ] ) [ Str "foo" ] ]
+]
```
```
% pandoc -f html -t native
<bdo dir="rtl">foo<bdo dir="ltr">bar</bdo>baz</bdo>
^D
-[Plain [Span ("",[],[("dir","rtl")]) [Str "foo",Span ("",[],[("dir","ltr")]) [Str "bar"],Str "baz"]]]
+[ Plain
+ [ Span
+ ( "" , [] , [ ( "dir" , "rtl" ) ] )
+ [ Str "foo"
+ , Span ( "" , [] , [ ( "dir" , "ltr" ) ] ) [ Str "bar" ]
+ , Str "baz"
+ ]
+ ]
+]
```
```
@@ -66,5 +76,23 @@ pandoc -f native -t markdown
<p><bdo dir="rtl">This text will go right
to left.</bdo></p>
^D
-[Para [Span ("",[],[("dir","rtl")]) [Str "This",Space,Str "text",Space,Str "will",Space,Str "go",Space,Str "right",SoftBreak,Str "to",Space,Str "left."]]]
+[ Para
+ [ Span
+ ( "" , [] , [ ( "dir" , "rtl" ) ] )
+ [ Str "This"
+ , Space
+ , Str "text"
+ , Space
+ , Str "will"
+ , Space
+ , Str "go"
+ , Space
+ , Str "right"
+ , SoftBreak
+ , Str "to"
+ , Space
+ , Str "left."
+ ]
+ ]
+]
```
diff --git a/test/command/1608.md b/test/command/1608.md
index f7ef2b839..77fdaf6d3 100644
--- a/test/command/1608.md
+++ b/test/command/1608.md
@@ -28,14 +28,178 @@ Triangles with sides of length \(a=p^2-q^2\), \(b=2pq\) and \(c=p^2+q^2\) are ri
These are all pretty interesting facts.
\end{remark}
^D
-[Div ("def:tri",["definition"],[])
- [Para [Strong [Str "Definition",Space,Str "1"],Space,Str "(right-angled",Space,Str "triangles).",Space,Space,Str "A",Space,Emph [Str "right-angled",Space,Str "triangle"],Space,Str "is",Space,Str "a",Space,Str "triangle",Space,Str "whose",Space,Str "sides",Space,Str "of",Space,Str "length\160",Math InlineMath "a",Str ",",Space,Math InlineMath "b",Space,Str "and\160",Math InlineMath "c",Str ",",Space,Str "in",Space,Str "some",Space,Str "permutation",Space,Str "of",Space,Str "order,",Space,Str "satisfies",Space,Math InlineMath "a^2+b^2=c^2",Str "."]]
-,Div ("",["lemma"],[])
- [Para [Strong [Str "Lemma",Space,Str "2"],Str ".",Space,Space,Emph [Str "The",Space,Str "triangle",Space,Str "with",Space,Str "sides",Space,Str "of",Space,Str "length\160",Math InlineMath "3",Str ",",Space,Math InlineMath "4",Space,Str "and\160",Math InlineMath "5",Space,Str "is",Space,Str "right-angled."]]]
-,Div ("",["proof"],[])
- [Para [Emph [Str "Proof."],Space,Str "This",Space,Str "lemma",Space,Str "follows",Space,Str "from",Space,Link ("",[],[("reference-type","ref"),("reference","def:tri")]) [Str "Definition\160\&1"] ("#def:tri",""),Space,Str "since",Space,Math InlineMath "3^2+4^2=9+16=25=5^2",Str ".",Str "\160\9723"]]
-,Div ("thm:py",["theorem"],[])
- [Para [Strong [Str "Theorem",Space,Str "3"],Space,Str "(Pythagorean",Space,Str "triplets).",Space,Space,Emph [Str "Triangles",Space,Str "with",Space,Str "sides",Space,Str "of",Space,Str "length",Space,Math InlineMath "a=p^2-q^2",Str ",",Space,Math InlineMath "b=2pq",Space,Str "and",Space,Math InlineMath "c=p^2+q^2",Space,Str "are",Space,Str "right-angled",Space,Str "triangles."]]]
-,Div ("",["remark"],[])
- [Para [Emph [Str "Remark",Space,Str "1"],Str ".",Space,Space,Str "These",Space,Str "are",Space,Str "all",Space,Str "pretty",Space,Str "interesting",Space,Str "facts."]]]
+[ Div
+ ( "def:tri" , [ "definition" ] , [] )
+ [ Para
+ [ Strong [ Str "Definition" , Space , Str "1" ]
+ , Space
+ , Str "(right-angled"
+ , Space
+ , Str "triangles)."
+ , Space
+ , Space
+ , Str "A"
+ , Space
+ , Emph [ Str "right-angled" , Space , Str "triangle" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "triangle"
+ , Space
+ , Str "whose"
+ , Space
+ , Str "sides"
+ , Space
+ , Str "of"
+ , Space
+ , Str "length\160"
+ , Math InlineMath "a"
+ , Str ","
+ , Space
+ , Math InlineMath "b"
+ , Space
+ , Str "and\160"
+ , Math InlineMath "c"
+ , Str ","
+ , Space
+ , Str "in"
+ , Space
+ , Str "some"
+ , Space
+ , Str "permutation"
+ , Space
+ , Str "of"
+ , Space
+ , Str "order,"
+ , Space
+ , Str "satisfies"
+ , Space
+ , Math InlineMath "a^2+b^2=c^2"
+ , Str "."
+ ]
+ ]
+, Div
+ ( "" , [ "lemma" ] , [] )
+ [ Para
+ [ Strong [ Str "Lemma" , Space , Str "2" ]
+ , Str "."
+ , Space
+ , Space
+ , Emph
+ [ Str "The"
+ , Space
+ , Str "triangle"
+ , Space
+ , Str "with"
+ , Space
+ , Str "sides"
+ , Space
+ , Str "of"
+ , Space
+ , Str "length\160"
+ , Math InlineMath "3"
+ , Str ","
+ , Space
+ , Math InlineMath "4"
+ , Space
+ , Str "and\160"
+ , Math InlineMath "5"
+ , Space
+ , Str "is"
+ , Space
+ , Str "right-angled."
+ ]
+ ]
+ ]
+, Div
+ ( "" , [ "proof" ] , [] )
+ [ Para
+ [ Emph [ Str "Proof." ]
+ , Space
+ , Str "This"
+ , Space
+ , Str "lemma"
+ , Space
+ , Str "follows"
+ , Space
+ , Str "from"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "def:tri" )
+ ]
+ )
+ [ Str "1" ]
+ ( "#def:tri" , "" )
+ , Space
+ , Str "since"
+ , Space
+ , Math InlineMath "3^2+4^2=9+16=25=5^2"
+ , Str "."
+ , Str "\160\9723"
+ ]
+ ]
+, Div
+ ( "thm:py" , [ "theorem" ] , [] )
+ [ Para
+ [ Strong [ Str "Theorem" , Space , Str "3" ]
+ , Space
+ , Str "(Pythagorean"
+ , Space
+ , Str "triplets)."
+ , Space
+ , Space
+ , Emph
+ [ Str "Triangles"
+ , Space
+ , Str "with"
+ , Space
+ , Str "sides"
+ , Space
+ , Str "of"
+ , Space
+ , Str "length"
+ , Space
+ , Math InlineMath "a=p^2-q^2"
+ , Str ","
+ , Space
+ , Math InlineMath "b=2pq"
+ , Space
+ , Str "and"
+ , Space
+ , Math InlineMath "c=p^2+q^2"
+ , Space
+ , Str "are"
+ , Space
+ , Str "right-angled"
+ , Space
+ , Str "triangles."
+ ]
+ ]
+ ]
+, Div
+ ( "" , [ "remark" ] , [] )
+ [ Para
+ [ Emph [ Str "Remark" , Space , Str "1" ]
+ , Str "."
+ , Space
+ , Space
+ , Str "These"
+ , Space
+ , Str "are"
+ , Space
+ , Str "all"
+ , Space
+ , Str "pretty"
+ , Space
+ , Str "interesting"
+ , Space
+ , Str "facts."
+ ]
+ ]
+]
```
diff --git a/test/command/168.md b/test/command/168.md
index 43c3b865a..acd42b97d 100644
--- a/test/command/168.md
+++ b/test/command/168.md
@@ -11,13 +11,25 @@ nested div
:::
:::::::::::::::::::::::::::::::
^D
-[Div ("",["warning"],[])
- [Para [Str "This",Space,Str "is",Space,Str "the",Space,Str "warning!"]
- ,OrderedList (1,Decimal,Period)
- [[Plain [Str "list"]]
- ,[Plain [Str "another"]]]
- ,Div ("myid",["class"],[("key","val")])
- [Para [Str "nested",Space,Str "div"]]]]
+[ Div
+ ( "" , [ "warning" ] , [] )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "warning!"
+ ]
+ , OrderedList
+ ( 1 , Decimal , Period )
+ [ [ Plain [ Str "list" ] ] , [ Plain [ Str "another" ] ] ]
+ , Div
+ ( "myid" , [ "class" ] , [ ( "key" , "val" ) ] )
+ [ Para [ Str "nested" , Space , Str "div" ] ]
+ ]
+]
```
```
@@ -26,7 +38,14 @@ foo
:::
bar
^D
-[Para [Str "foo",SoftBreak,Str ":::",SoftBreak,Str "bar"]]
+[ Para
+ [ Str "foo"
+ , SoftBreak
+ , Str ":::"
+ , SoftBreak
+ , Str "bar"
+ ]
+]
```
```
@@ -37,7 +56,18 @@ Here is a paragraph.
And another.
:::::
^D
-[Div ("",["Warning"],[])
- [Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "paragraph."]
- ,Para [Str "And",Space,Str "another."]]]
+[ Div
+ ( "" , [ "Warning" ] , [] )
+ [ Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para [ Str "And" , Space , Str "another." ]
+ ]
+]
```
diff --git a/test/command/1718.md b/test/command/1718.md
index 7e07bf1e9..c93067869 100644
--- a/test/command/1718.md
+++ b/test/command/1718.md
@@ -7,5 +7,13 @@ Note[^1].
[^2]: the second, unused, note.
^D
[WARNING] Note with key '2' defined at line 5 column 1 but not used.
-[Para [Str "Note",Note [Para [Str "the",Space,Str "first",Space,Str "note."]],Str "."]]
+[ Para
+ [ Str "Note"
+ , Note
+ [ Para
+ [ Str "the" , Space , Str "first" , Space , Str "note." ]
+ ]
+ , Str "."
+ ]
+]
```
diff --git a/test/command/1773.md b/test/command/1773.md
index b93267287..c529ec972 100644
--- a/test/command/1773.md
+++ b/test/command/1773.md
@@ -2,5 +2,7 @@
% pandoc -f latex+raw_tex -t native
\noindent hi
^D
-[Para [RawInline (Format "latex") "\\noindent ",Str "hi"]]
+[ Para
+ [ RawInline (Format "latex") "\\noindent " , Str "hi" ]
+]
```
diff --git a/test/command/1881.md b/test/command/1881.md
index f91c50d68..7a2468c1b 100644
--- a/test/command/1881.md
+++ b/test/command/1881.md
@@ -20,35 +20,92 @@
</tbody>
</table>
^D
-[Table ("",[],[]) (Caption Nothing
- [Plain [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."]])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",["header"],[])
- [Cell ("",[],[]) AlignRight (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignLeft (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",["odd"],[])
- [Cell ("",[],[]) AlignRight (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignLeft (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption
+ Nothing
+ [ Plain
+ [ Str "Demonstration"
+ , Space
+ , Str "of"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "syntax."
+ ]
+ ])
+ [ ( AlignRight , ColWidthDefault )
+ , ( AlignLeft , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [ "header" ] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignRight
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignLeft
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Default" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [ "odd" ] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignRight
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignLeft
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
@@ -62,26 +119,49 @@
</tr>
</table>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",["odd"],[])
- [Cell ("",[],[]) AlignRight (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignLeft (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignRight (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignRight , ColWidthDefault )
+ , ( AlignLeft , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ , ( AlignRight , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [ "odd" ] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignRight
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignLeft
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignRight
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "12" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/2103.md b/test/command/2103.md
index 14a522a5e..e5220def6 100644
--- a/test/command/2103.md
+++ b/test/command/2103.md
@@ -1,5 +1,5 @@
```
-pandoc -t latex
+% pandoc -t latex
| A happy pandoc user said "fix this bug please
| or I'll go crazy!"
^D
diff --git a/test/command/2118.md b/test/command/2118.md
index b38f48c80..8be5c4886 100644
--- a/test/command/2118.md
+++ b/test/command/2118.md
@@ -7,5 +7,11 @@
\label{fig:setminus}
\end{figure}
^D
-[Para [Image ("fig:setminus",[],[("width","80%")]) [Str "Set",Space,Str "subtraction"] ("setminus.png","fig:")]]
+[ Para
+ [ Image
+ ( "fig:setminus" , [] , [ ( "width" , "80%" ) ] )
+ [ Str "Set" , Space , Str "subtraction" ]
+ ( "setminus.png" , "fig:" )
+ ]
+]
```
diff --git a/test/command/2549.md b/test/command/2549.md
index 8f4aea852..12b21d0a1 100644
--- a/test/command/2549.md
+++ b/test/command/2549.md
@@ -4,7 +4,9 @@
\section{A section}\label{foo}
}
^D
-[Header 1 ("foo",[],[]) [Str "A",Space,Str "section"]]
+[ Header
+ 1 ( "foo" , [] , [] ) [ Str "A" , Space , Str "section" ]
+]
```
```
@@ -13,15 +15,24 @@
\section{A section}\label{foo}
}
^D
-[Div ("bar",[],[])
- [Header 1 ("foo",[],[]) [Str "A",Space,Str "section"]]]
+[ Div
+ ( "bar" , [] , [] )
+ [ Header
+ 1 ( "foo" , [] , [] ) [ Str "A" , Space , Str "section" ]
+ ]
+]
```
```
% pandoc -f latex -t native
Bar \hypertarget{foo}{Foo}
^D
-[Para [Str "Bar",Space,Span ("foo",[],[]) [Str "Foo"]]]
+[ Para
+ [ Str "Bar"
+ , Space
+ , Span ( "foo" , [] , [] ) [ Str "Foo" ]
+ ]
+]
```
```
@@ -32,7 +43,8 @@ bar
\end{verbatim}
}
^D
-[Div ("foo",[],[])
- [CodeBlock ("",[],[]) "bar"]]
+[ Div
+ ( "foo" , [] , [] ) [ CodeBlock ( "" , [] , [] ) "bar" ]
+]
```
diff --git a/test/command/256.md b/test/command/256.md
index 08e483e5c..7e3f34dbd 100644
--- a/test/command/256.md
+++ b/test/command/256.md
@@ -2,11 +2,41 @@
% pandoc --abbreviations=command/abbrevs -t native
Foo. bar baz h.k. and e.g. and Mr. Brown.
^D
-[Para [Str "Foo.\160bar",Space,Str "baz",Space,Str "h.k.\160and",Space,Str "e.g.",Space,Str "and",Space,Str "Mr.",Space,Str "Brown."]]
+[ Para
+ [ Str "Foo.\160bar"
+ , Space
+ , Str "baz"
+ , Space
+ , Str "h.k.\160and"
+ , Space
+ , Str "e.g."
+ , Space
+ , Str "and"
+ , Space
+ , Str "Mr."
+ , Space
+ , Str "Brown."
+ ]
+]
```
```
% pandoc -t native
Foo. bar baz h.k. and e.g. and Mr. Brown.
^D
-[Para [Str "Foo.",Space,Str "bar",Space,Str "baz",Space,Str "h.k.",Space,Str "and",Space,Str "e.g.\160and",Space,Str "Mr.\160Brown."]]
+[ Para
+ [ Str "Foo."
+ , Space
+ , Str "bar"
+ , Space
+ , Str "baz"
+ , Space
+ , Str "h.k."
+ , Space
+ , Str "and"
+ , Space
+ , Str "e.g.\160and"
+ , Space
+ , Str "Mr.\160Brown."
+ ]
+]
```
diff --git a/test/command/262.md b/test/command/262.md
index bda2acb35..61af20ede 100644
--- a/test/command/262.md
+++ b/test/command/262.md
@@ -5,7 +5,8 @@
.. _hello:
.. _goodbye: example.com
^D
-<p><a href="example.com">hello</a> and <a href="example.com">goodbye</a></p>
+<p><a href="example.com">hello</a> and <a
+href="example.com">goodbye</a></p>
```
```
diff --git a/test/command/2649.md b/test/command/2649.md
index 52ae16ce4..4ab059ea0 100644
--- a/test/command/2649.md
+++ b/test/command/2649.md
@@ -90,17 +90,20 @@
<tbody>
<tr class="odd">
<td><p>1</p></td>
-<td><p><a href="Sébastien_Loeb" title="wikilink">Sébastien Loeb</a></p></td>
+<td><p><a href="Sébastien_Loeb" title="wikilink">Sébastien
+Loeb</a></p></td>
<td><p>78</p></td>
</tr>
<tr class="even">
<td><p>2</p></td>
-<td><p><strong><a href="Sébastien_Ogier" title="wikilink">Sébastien Ogier</a></strong></p></td>
+<td><p><strong><a href="Sébastien_Ogier" title="wikilink">Sébastien
+Ogier</a></strong></p></td>
<td><p>38</p></td>
</tr>
<tr class="odd">
<td><p>10</p></td>
-<td><p><a href="Hannu_Mikkola" title="wikilink">Hannu Mikkola</a></p></td>
+<td><p><a href="Hannu_Mikkola" title="wikilink">Hannu
+Mikkola</a></p></td>
<td><p>18</p></td>
</tr>
</tbody>
diff --git a/test/command/3113.md b/test/command/3113.md
index 5ca171d97..7452995b5 100644
--- a/test/command/3113.md
+++ b/test/command/3113.md
@@ -8,6 +8,11 @@ C&=&D,\\
E&=&F
\end{eqnarray}
^D
-[Para [Math DisplayMath "\\begin{aligned}\nA&=&B,\\\\\nC&=&D,\\\\\n%\\end{eqnarray}\n%\\begin{eqnarray}\nE&=&F\\end{aligned}"]]
+[ Para
+ [ Math
+ DisplayMath
+ "\\begin{aligned}\nA&=&B,\\\\\nC&=&D,\\\\\n%\\end{eqnarray}\n%\\begin{eqnarray}\nE&=&F\\end{aligned}"
+ ]
+]
```
diff --git a/test/command/3123.md b/test/command/3123.md
index b71241cdf..a97165bc8 100644
--- a/test/command/3123.md
+++ b/test/command/3123.md
@@ -2,12 +2,16 @@
% pandoc -f markdown -t native
<?php echo "1" ; ?>
^D
-[RawBlock (Format "html") "<?php echo \"1\" ; ?>"]
+[ RawBlock (Format "html") "<?php echo \"1\" ; ?>" ]
```
```
% pandoc -f markdown -t native
a<?php echo "1" ; ?>
^D
-[Para [Str "a",RawInline (Format "html") "<?php echo \"1\" ; ?>"]]
+[ Para
+ [ Str "a"
+ , RawInline (Format "html") "<?php echo \"1\" ; ?>"
+ ]
+]
```
diff --git a/test/command/3236.md b/test/command/3236.md
index 1d1a9b2c3..b9a98f160 100644
--- a/test/command/3236.md
+++ b/test/command/3236.md
@@ -1,9 +1,21 @@
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\newcommand{\mycolor}{red}
\includegraphics[width=17cm]{\mycolor /header}
Magnificent \mycolor{} header.
^D
-[Para [Image ("",[],[("width","17cm")]) [Str "image"] ("red/header",""),SoftBreak,Str "Magnificent",Space,Str "red",Space,Str "header."]]
+[ Para
+ [ Image
+ ( "" , [] , [ ( "width" , "17cm" ) ] )
+ [ Str "image" ]
+ ( "red/header" , "" )
+ , SoftBreak
+ , Str "Magnificent"
+ , Space
+ , Str "red"
+ , Space
+ , Str "header."
+ ]
+]
```
diff --git a/test/command/3257.md b/test/command/3257.md
index 31d9426ee..ef2419481 100644
--- a/test/command/3257.md
+++ b/test/command/3257.md
@@ -2,12 +2,12 @@
% pandoc -t native
(i<j)
^D
-[Para [Str "(i<j)"]]
+[ Para [ Str "(i<j)" ] ]
```
```
% pandoc -t native
i<j-1, j>k
^D
-[Para [Str "i<j-1,",Space,Str "j>k"]]
+[ Para [ Str "i<j-1," , Space , Str "j>k" ] ]
```
diff --git a/test/command/3324.md b/test/command/3324.md
index 9e9228ed1..45405fee5 100644
--- a/test/command/3324.md
+++ b/test/command/3324.md
@@ -1,5 +1,5 @@
```
-pandoc -t latex
+% pandoc -t latex
Signatures
\
diff --git a/test/command/3348.md b/test/command/3348.md
index 86b1514d1..964136086 100644
--- a/test/command/3348.md
+++ b/test/command/3348.md
@@ -7,24 +7,64 @@
line of text
----- ------------------------------------------------
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidth 8.333333333333333e-2)
- ,(AlignLeft,ColWidth 0.6805555555555556)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "foo"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "bar"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "foo"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "this",Space,Str "is",Space,Str "a",Space,Str "long",SoftBreak,Str "line",Space,Str "of",Space,Str "text"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignRight , ColWidth 8.333333333333333e-2 )
+ , ( AlignLeft , ColWidth 0.6805555555555556 )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "foo" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "bar" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "foo" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "long"
+ , SoftBreak
+ , Str "line"
+ , Space
+ , Str "of"
+ , Space
+ , Str "text"
+ ]
+ ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/3401.md b/test/command/3401.md
index 99528553a..3b16e84a4 100644
--- a/test/command/3401.md
+++ b/test/command/3401.md
@@ -5,7 +5,7 @@ See #3401 and <http://orgmode.org/manual/Macro-replacement.html>
#+MACRO: HELLO /Hello, $1/
{{{HELLO(World)}}}
^D
-[Para [Emph [Str "Hello,",Space,Str "World"]]]
+[ Para [ Emph [ Str "Hello," , Space , Str "World" ] ] ]
```
Inverted argument order
@@ -15,5 +15,5 @@ Inverted argument order
#+MACRO: A $2,$1
{{{A(1,2)}}}
^D
-[Para [Str "2,1"]]
+[ Para [ Str "2,1" ] ]
```
diff --git a/test/command/3407.md b/test/command/3407.md
index aec253ff5..edc1bcb2b 100644
--- a/test/command/3407.md
+++ b/test/command/3407.md
@@ -9,5 +9,10 @@
% pandoc -f rst -t native
:foo:`text`
^D
-[Para [Code ("",["interpreted-text"],[("role","foo")]) "text"]]
+[ Para
+ [ Code
+ ( "" , [ "interpreted-text" ] , [ ( "role" , "foo" ) ] )
+ "text"
+ ]
+]
```
diff --git a/test/command/3475.md b/test/command/3475.md
index afba4ea3c..41a738f67 100644
--- a/test/command/3475.md
+++ b/test/command/3475.md
@@ -1,7 +1,7 @@
RST implicit internal links to headers:
```
-pandoc -f rst
+% pandoc -f rst
Years
-----
@@ -12,7 +12,7 @@ Years_
```
```
-pandoc -f rst
+% pandoc -f rst
Years_
Years
@@ -23,7 +23,7 @@ Years
```
```
-pandoc -f rst
+% pandoc -f rst
Years and years
---------------
@@ -34,7 +34,7 @@ Years and years
```
```
-pandoc -f rst
+% pandoc -f rst
Years and *years*
-----------------
diff --git a/test/command/3510.md b/test/command/3510.md
index 7993db848..48522f7e1 100644
--- a/test/command/3510.md
+++ b/test/command/3510.md
@@ -10,11 +10,13 @@ Text
More text
^D
-[Para [Str "Text"]
-,Header 1 ("subsection",[],[]) [Str "Subsection"]
-,Para [Str "Included",Space,Str "text"]
-,Plain [Str "Lorem",Space,Str "ipsum."]
-,CodeBlock ("",["haskell"],[]) "putStrLn outString\n"
-,RawBlock (Format "latex") "\\emph{Hello}"
-,Para [Str "More",Space,Str "text"]]
+[ Para [ Str "Text" ]
+, Header 1 ( "subsection" , [] , [] ) [ Str "Subsection" ]
+, Para [ Str "Included" , Space , Str "text" ]
+, Plain [ Str "Lorem" , Space , Str "ipsum." ]
+, CodeBlock
+ ( "" , [ "haskell" ] , [] ) "putStrLn outString\n"
+, RawBlock (Format "latex") "\\emph{Hello}"
+, Para [ Str "More" , Space , Str "text" ]
+]
```
diff --git a/test/command/3511.md b/test/command/3511.md
index b8bcedbb0..0fede7a0e 100644
--- a/test/command/3511.md
+++ b/test/command/3511.md
@@ -10,16 +10,20 @@
not continuation
^D
-[BulletList
- [[Plain [Str "a"]
- ,BulletList
- [[Plain [Str "b"]
- ,BulletList
- [[Plain [Str "c"]]]]]]
- ,[CodeBlock ("",[],[]) "code"]]
-,OrderedList (1000,Decimal,Period)
- [[Plain [Str "one"]]]
-,CodeBlock ("",[],[]) "not continuation"]
+[ BulletList
+ [ [ Plain [ Str "a" ]
+ , BulletList
+ [ [ Plain [ Str "b" ]
+ , BulletList [ [ Plain [ Str "c" ] ] ]
+ ]
+ ]
+ ]
+ , [ CodeBlock ( "" , [] , [] ) "code" ]
+ ]
+, OrderedList
+ ( 1000 , Decimal , Period ) [ [ Plain [ Str "one" ] ] ]
+, CodeBlock ( "" , [] , [] ) "not continuation"
+]
```
```
@@ -34,13 +38,15 @@
continuation
^D
-[BulletList
- [[Plain [Str "a"]]
- ,[Plain [Str "b"]
- ,BulletList
- [[Plain [Str "c"]]]]
- ,[CodeBlock ("",[],[]) "not code"]]
-,OrderedList (1000,Decimal,Period)
- [[Para [Str "one"]
- ,Para [Str "continuation"]]]]
+[ BulletList
+ [ [ Plain [ Str "a" ] ]
+ , [ Plain [ Str "b" ]
+ , BulletList [ [ Plain [ Str "c" ] ] ]
+ ]
+ , [ CodeBlock ( "" , [] , [] ) "not code" ]
+ ]
+, OrderedList
+ ( 1000 , Decimal , Period )
+ [ [ Para [ Str "one" ] , Para [ Str "continuation" ] ] ]
+]
```
diff --git a/test/command/3516.md b/test/command/3516.md
index dc8770bad..615befb3e 100644
--- a/test/command/3516.md
+++ b/test/command/3516.md
@@ -24,26 +24,43 @@ on Windows builds.
| | |
+---+---+
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 5.555555555555555e-2)
- ,(AlignDefault,ColWidth 5.555555555555555e-2)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidth 5.555555555555555e-2 )
+ , ( AlignDefault , ColWidth 5.555555555555555e-2 )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
+ , Cell
+ ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
diff --git a/test/command/3518.md b/test/command/3518.md
index ec3322192..a4ba7a3a0 100644
--- a/test/command/3518.md
+++ b/test/command/3518.md
@@ -1,5 +1,5 @@
```
-pandoc -f latex -t plain
+% pandoc -f latex -t plain
$\alpha^2 \cdot \alpha^{2+3} \equiv \alpha^7$
^D
α² ⋅ α² ⁺ ³ ≡ α⁷
diff --git a/test/command/3523.md b/test/command/3523.md
index cb0089489..c3574943c 100644
--- a/test/command/3523.md
+++ b/test/command/3523.md
@@ -19,8 +19,12 @@
\end{document}
^D
<div class="epigraph">
-<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr ist das Leben des Menschen selbst, von einer besonderen Seite angesehen.</p>
-<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr ist das Leben des Menschen selbst, von einer besonderen Seite angesehen.</p>
+<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr
+ist das Leben des Menschen selbst, von einer besonderen Seite
+angesehen.</p>
+<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr
+ist das Leben des Menschen selbst, von einer besonderen Seite
+angesehen.</p>
<ul>
<li><p>hey</p></li>
<li><p>hey</p></li>
diff --git a/test/command/3530.md b/test/command/3530.md
index 178b36ff0..168cb7067 100644
--- a/test/command/3530.md
+++ b/test/command/3530.md
@@ -3,10 +3,55 @@
\subfile{command/sub-file-chapter-1}
\subfile{command/sub-file-chapter-2}
^D
-[Header 1 ("chapter-1",[],[]) [Str "Chapter",Space,Str "1"]
-,Para [Str "This",Space,Str "is",Space,Str "Chapter",Space,Str "1,",Space,Str "provided",Space,Str "in",Space,Str "a",Space,Str "sub",Space,Str "file."]
-,Header 1 ("chapter-2",[],[]) [Str "Chapter",Space,Str "2"]
-,Para [Str "This",Space,Str "is",Space,Str "Chapter",Space,Str "2,",Space,Str "provided",Space,Str "in",Space,Str "a",Space,Str "second",Space,Str "sub",Space,Str "file."]]
+[ Header
+ 1
+ ( "chapter-1" , [] , [] )
+ [ Str "Chapter" , Space , Str "1" ]
+, Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "Chapter"
+ , Space
+ , Str "1,"
+ , Space
+ , Str "provided"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "file."
+ ]
+, Header
+ 1
+ ( "chapter-2" , [] , [] )
+ [ Str "Chapter" , Space , Str "2" ]
+, Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "Chapter"
+ , Space
+ , Str "2,"
+ , Space
+ , Str "provided"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "second"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "file."
+ ]
+]
```
```
@@ -14,6 +59,9 @@
\subfile{command/sub-file-chapter-1}
\subfile{command/sub-file-chapter-2}
^D
-[RawBlock (Format "latex") "\\subfile{command/sub-file-chapter-1}"
-,RawBlock (Format "latex") "\\subfile{command/sub-file-chapter-2}"]
+[ RawBlock
+ (Format "latex") "\\subfile{command/sub-file-chapter-1}"
+, RawBlock
+ (Format "latex") "\\subfile{command/sub-file-chapter-2}"
+]
```
diff --git a/test/command/3533-rst-csv-tables.md b/test/command/3533-rst-csv-tables.md
index 70339d95d..ed69ca860 100644
--- a/test/command/3533-rst-csv-tables.md
+++ b/test/command/3533-rst-csv-tables.md
@@ -5,37 +5,121 @@
:header: Flavor,Price,Slogan
:file: command/3533-rst-csv-tables.csv
^D
-[Table ("",[],[]) (Caption Nothing
- [Plain [Str "Test"]])
- [(AlignDefault,ColWidth 0.4)
- ,(AlignDefault,ColWidth 0.2)
- ,(AlignDefault,ColWidth 0.4)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Flavor"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Price"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Slogan"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Albatross"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2.99"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "On",Space,Str "a",Space,Str "stick!"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Crunchy",Space,Str "Frog"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1.49"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "If",Space,Str "we",Space,Str "took",Space,Str "the",Space,Str "bones",Space,Str "out,",Space,Str "it",Space,Str "wouldn't",Space,Str "be",SoftBreak,Str "crunchy,",Space,Str "now",Space,Str "would",Space,Str "it?"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [ Plain [ Str "Test" ] ])
+ [ ( AlignDefault , ColWidth 0.4 )
+ , ( AlignDefault , ColWidth 0.2 )
+ , ( AlignDefault , ColWidth 0.4 )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Flavor" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Price" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Slogan" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Albatross" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2.99" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "On"
+ , Space
+ , Str "a"
+ , Space
+ , Str "stick!"
+ ]
+ ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Crunchy" , Space , Str "Frog" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1.49" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "If"
+ , Space
+ , Str "we"
+ , Space
+ , Str "took"
+ , Space
+ , Str "the"
+ , Space
+ , Str "bones"
+ , Space
+ , Str "out,"
+ , Space
+ , Str "it"
+ , Space
+ , Str "wouldn't"
+ , Space
+ , Str "be"
+ , SoftBreak
+ , Str "crunchy,"
+ , Space
+ , Str "now"
+ , Space
+ , Str "would"
+ , Space
+ , Str "it?"
+ ]
+ ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
@@ -49,37 +133,83 @@
'cat''s' 3 4
'dog''s' 2 3
^D
-[Table ("",[],[]) (Caption Nothing
- [Plain [Str "Test"]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "cat's"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "dog's"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [ Plain [ Str "Test" ] ])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "a" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "b" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "cat's" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "4" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "dog's" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "3" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
@@ -89,20 +219,35 @@
"1","\""
^D
-[Table ("",[],[]) (Caption Nothing
- [Plain [Str "Test"]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\""]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [ Plain [ Str "Test" ] ])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\"" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/3534.md b/test/command/3534.md
index cd0915d88..42dca9207 100644
--- a/test/command/3534.md
+++ b/test/command/3534.md
@@ -2,7 +2,9 @@
% pandoc -f latex -t html
I want to explain the interface of \lstinline[language=Java]{public class MyClass}.
^D
-<p>I want to explain the interface of <code class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p>
+<p>I want to explain the interface of <code class="sourceCode
+java"><span class="kw">public</span> <span class="kw">class</span>
+MyClass</code>.</p>
```
@@ -10,7 +12,8 @@ I want to explain the interface of \lstinline[language=Java]{public class MyClas
% pandoc -f latex -t html
I want to explain the interface of \lstinline{public class MyClass}.
^D
-<p>I want to explain the interface of <code>public class MyClass</code>.</p>
+<p>I want to explain the interface of <code>public class
+MyClass</code>.</p>
```
@@ -18,14 +21,34 @@ I want to explain the interface of \lstinline{public class MyClass}.
% pandoc -f latex -t native
I want to explain the interface of \lstinline[language=Java]{public class MyClass}.
^D
-[Para [Str "I",Space,Str "want",Space,Str "to",Space,Str "explain",Space,Str "the",Space,Str "interface",Space,Str "of",Space,Code ("",["java"],[]) "public class MyClass",Str "."]]
+[ Para
+ [ Str "I"
+ , Space
+ , Str "want"
+ , Space
+ , Str "to"
+ , Space
+ , Str "explain"
+ , Space
+ , Str "the"
+ , Space
+ , Str "interface"
+ , Space
+ , Str "of"
+ , Space
+ , Code ( "" , [ "java" ] , [] ) "public class MyClass"
+ , Str "."
+ ]
+]
```
```
% pandoc -f latex -t html
I want to explain the interface of \mintinline{java}{public class MyClass}.
^D
-<p>I want to explain the interface of <code class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p>
+<p>I want to explain the interface of <code class="sourceCode
+java"><span class="kw">public</span> <span class="kw">class</span>
+MyClass</code>.</p>
```
@@ -33,7 +56,9 @@ I want to explain the interface of \mintinline{java}{public class MyClass}.
% pandoc -f latex -t html
I want to explain the interface of \mintinline{java}|public class MyClass|.
^D
-<p>I want to explain the interface of <code class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p>
+<p>I want to explain the interface of <code class="sourceCode
+java"><span class="kw">public</span> <span class="kw">class</span>
+MyClass</code>.</p>
```
@@ -41,5 +66,23 @@ I want to explain the interface of \mintinline{java}|public class MyClass|.
% pandoc -f latex -t native
I want to explain the interface of \mintinline[linenos]{java}{public class MyClass}.
^D
-[Para [Str "I",Space,Str "want",Space,Str "to",Space,Str "explain",Space,Str "the",Space,Str "interface",Space,Str "of",Space,Code ("",["java"],[]) "public class MyClass",Str "."]]
+[ Para
+ [ Str "I"
+ , Space
+ , Str "want"
+ , Space
+ , Str "to"
+ , Space
+ , Str "explain"
+ , Space
+ , Str "the"
+ , Space
+ , Str "interface"
+ , Space
+ , Str "of"
+ , Space
+ , Code ( "" , [ "java" ] , [] ) "public class MyClass"
+ , Str "."
+ ]
+]
```
diff --git a/test/command/3537.md b/test/command/3537.md
index df4eeba7d..3f4445343 100644
--- a/test/command/3537.md
+++ b/test/command/3537.md
@@ -7,14 +7,20 @@ Generalized raw attributes.
foo bar
```
^D
-[RawBlock (Format "ms") ".MACRO\nfoo bar"]
+[ RawBlock (Format "ms") ".MACRO\nfoo bar" ]
````
````
% pandoc -t native
Hi `there`{=ms}.
^D
-[Para [Str "Hi",Space,RawInline (Format "ms") "there",Str "."]]
+[ Para
+ [ Str "Hi"
+ , Space
+ , RawInline (Format "ms") "there"
+ , Str "."
+ ]
+]
````
````
@@ -24,5 +30,5 @@ Hi `there`{=ms}.
foo bar
~~~
^D
-[RawBlock (Format "ms") ".MACRO\nfoo bar"]
+[ RawBlock (Format "ms") ".MACRO\nfoo bar" ]
````
diff --git a/test/command/3539.md b/test/command/3539.md
index 6ef9ffac7..b2ce5455f 100644
--- a/test/command/3539.md
+++ b/test/command/3539.md
@@ -4,35 +4,205 @@
% pandoc -f latex -t native
Many programming languages provide \glspl{API}. Each \gls{API} should provide a documentation.
^D
-[Para [Str "Many",Space,Str "programming",Space,Str "languages",Space,Str "provide",Space,Span ("",[],[("acronym-label","API"),("acronym-form","plural+short")]) [Str "APIs"],Str ".",Space,Str "Each",Space,Span ("",[],[("acronym-label","API"),("acronym-form","singular+short")]) [Str "API"],Space,Str "should",Space,Str "provide",Space,Str "a",Space,Str "documentation."]]
+[ Para
+ [ Str "Many"
+ , Space
+ , Str "programming"
+ , Space
+ , Str "languages"
+ , Space
+ , Str "provide"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "plural+short" )
+ ]
+ )
+ [ Str "APIs" ]
+ , Str "."
+ , Space
+ , Str "Each"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+short" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "should"
+ , Space
+ , Str "provide"
+ , Space
+ , Str "a"
+ , Space
+ , Str "documentation."
+ ]
+]
```
```
% pandoc -f latex -t native
\Glsdesc{API} XYZ ist not as performant as \glsdesc{API} ZXY.
^D
-[Para [Span ("",[],[("acronym-label","API"),("acronym-form","singular+long")]) [Str "API"],Space,Str "XYZ",Space,Str "ist",Space,Str "not",Space,Str "as",Space,Str "performant",Space,Str "as",Space,Span ("",[],[("acronym-label","API"),("acronym-form","singular+long")]) [Str "API"],Space,Str "ZXY."]]
+[ Para
+ [ Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+long" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "XYZ"
+ , Space
+ , Str "ist"
+ , Space
+ , Str "not"
+ , Space
+ , Str "as"
+ , Space
+ , Str "performant"
+ , Space
+ , Str "as"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+long" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "ZXY."
+ ]
+]
```
```
% pandoc -f latex -t native
\Acrlong{API} XYZ ist not as performant as \acrlong{API} ZXY.
^D
-[Para [Span ("",[],[("acronym-label","API"),("acronym-form","singular+long")]) [Str "API"],Space,Str "XYZ",Space,Str "ist",Space,Str "not",Space,Str "as",Space,Str "performant",Space,Str "as",Space,Span ("",[],[("acronym-label","API"),("acronym-form","singular+long")]) [Str "API"],Space,Str "ZXY."]]
+[ Para
+ [ Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+long" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "XYZ"
+ , Space
+ , Str "ist"
+ , Space
+ , Str "not"
+ , Space
+ , Str "as"
+ , Space
+ , Str "performant"
+ , Space
+ , Str "as"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+long" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "ZXY."
+ ]
+]
```
```
% pandoc -f latex -t native
\Acrfull{API} XYZ ist not as performant as \acrfull{API} ZXY.
^D
-[Para [Span ("",[],[("acronym-label","API"),("acronym-form","singular+full")]) [Str "API"],Space,Str "XYZ",Space,Str "ist",Space,Str "not",Space,Str "as",Space,Str "performant",Space,Str "as",Space,Span ("",[],[("acronym-label","API"),("acronym-form","singular+full")]) [Str "API"],Space,Str "ZXY."]]
+[ Para
+ [ Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+full" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "XYZ"
+ , Space
+ , Str "ist"
+ , Space
+ , Str "not"
+ , Space
+ , Str "as"
+ , Space
+ , Str "performant"
+ , Space
+ , Str "as"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+full" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "ZXY."
+ ]
+]
```
```
% pandoc -f latex -t native
\Acrshort{API} XYZ ist not as performant as \acrshort{API} ZXY.
^D
-[Para [Span ("",[],[("acronym-label","API"),("acronym-form","singular+abbrv")]) [Str "API"],Space,Str "XYZ",Space,Str "ist",Space,Str "not",Space,Str "as",Space,Str "performant",Space,Str "as",Space,Span ("",[],[("acronym-label","API"),("acronym-form","singular+abbrv")]) [Str "API"],Space,Str "ZXY."]]
+[ Para
+ [ Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+abbrv" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "XYZ"
+ , Space
+ , Str "ist"
+ , Space
+ , Str "not"
+ , Space
+ , Str "as"
+ , Space
+ , Str "performant"
+ , Space
+ , Str "as"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+abbrv" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "ZXY."
+ ]
+]
```
# Commands of [acronym package](ftp://ftp.mpi-sb.mpg.de/pub/tex/mirror/ftp.dante.de/pub/tex/macros/latex/contrib/acronym/acronym.pdf)
@@ -41,5 +211,43 @@ Many programming languages provide \glspl{API}. Each \gls{API} should provide a
% pandoc -f latex -t native
Many programming languages provide \acp{API}. Each \ac{API} should provide a documentation.
^D
-[Para [Str "Many",Space,Str "programming",Space,Str "languages",Space,Str "provide",Space,Span ("",[],[("acronym-label","API"),("acronym-form","plural+short")]) [Str "APIs"],Str ".",Space,Str "Each",Space,Span ("",[],[("acronym-label","API"),("acronym-form","singular+short")]) [Str "API"],Space,Str "should",Space,Str "provide",Space,Str "a",Space,Str "documentation."]]
+[ Para
+ [ Str "Many"
+ , Space
+ , Str "programming"
+ , Space
+ , Str "languages"
+ , Space
+ , Str "provide"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "plural+short" )
+ ]
+ )
+ [ Str "APIs" ]
+ , Str "."
+ , Space
+ , Str "Each"
+ , Space
+ , Span
+ ( ""
+ , []
+ , [ ( "acronym-label" , "API" )
+ , ( "acronym-form" , "singular+short" )
+ ]
+ )
+ [ Str "API" ]
+ , Space
+ , Str "should"
+ , Space
+ , Str "provide"
+ , Space
+ , Str "a"
+ , Space
+ , Str "documentation."
+ ]
+]
```
diff --git a/test/command/3558.md b/test/command/3558.md
index 956b09e57..c9c782c16 100644
--- a/test/command/3558.md
+++ b/test/command/3558.md
@@ -6,7 +6,8 @@ hello
\endmulti
^D
-[RawBlock (Format "tex") "\\multi"
-,Para [Str "hello"]
-,RawBlock (Format "tex") "\\endmulti"]
+[ RawBlock (Format "tex") "\\multi"
+, Para [ Str "hello" ]
+, RawBlock (Format "tex") "\\endmulti"
+]
```
diff --git a/test/command/3577.md b/test/command/3577.md
index 2f415146d..2caeb7c11 100644
--- a/test/command/3577.md
+++ b/test/command/3577.md
@@ -16,10 +16,12 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="Caption 1" /><figcaption aria-hidden="true">Caption 1</figcaption>
+<img src="img1.jpg" alt="Caption 1" />
+<figcaption aria-hidden="true">Caption 1</figcaption>
</figure>
<figure>
-<img src="img2.jpg" alt="Caption 2" /><figcaption aria-hidden="true">Caption 2</figcaption>
+<img src="img2.jpg" alt="Caption 2" />
+<figcaption aria-hidden="true">Caption 2</figcaption>
</figure>
```
```
@@ -30,6 +32,7 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="Caption 3" /><figcaption aria-hidden="true">Caption 3</figcaption>
+<img src="img1.jpg" alt="Caption 3" />
+<figcaption aria-hidden="true">Caption 3</figcaption>
</figure>
```
diff --git a/test/command/3585.md b/test/command/3585.md
index 739ddeea4..3f014db94 100644
--- a/test/command/3585.md
+++ b/test/command/3585.md
@@ -4,13 +4,32 @@
Same but bzip2 it and nice it <tt>zfs send tank/storage/data/svn@daily-2014-03-20_00.00.00--2w | nice -15 bzip2 | ssh user@hyper.somewhere.org "> /storage/c-3po/tank-storage-data-svn.dmp.bz2"</tt>
^D
-[Para [Quoted DoubleQuote [Str "Hello"]]
-,Para [Str "Same",Space,Str "but",Space,Str "bzip2",Space,Str "it",Space,Str "and",Space,Str "nice",Space,Str "it",Space,Code ("",[],[]) "zfs send tank/storage/data/svn@daily-2014-03-20_00.00.00--2w | nice -15 bzip2 | ssh user@hyper.somewhere.org \"> /storage/c-3po/tank-storage-data-svn.dmp.bz2\""]]
+[ Para [ Quoted DoubleQuote [ Str "Hello" ] ]
+, Para
+ [ Str "Same"
+ , Space
+ , Str "but"
+ , Space
+ , Str "bzip2"
+ , Space
+ , Str "it"
+ , Space
+ , Str "and"
+ , Space
+ , Str "nice"
+ , Space
+ , Str "it"
+ , Space
+ , Code
+ ( "" , [] , [] )
+ "zfs send tank/storage/data/svn@daily-2014-03-20_00.00.00--2w | nice -15 bzip2 | ssh user@hyper.somewhere.org \"> /storage/c-3po/tank-storage-data-svn.dmp.bz2\""
+ ]
+]
```
```
% pandoc -f mediawiki -t native
"Hello"
^D
-[Para [Str "\"Hello\""]]
+[ Para [ Str "\"Hello\"" ] ]
```
diff --git a/test/command/3587.md b/test/command/3587.md
index 3016afa5a..0a3c389b9 100644
--- a/test/command/3587.md
+++ b/test/command/3587.md
@@ -2,14 +2,36 @@
% pandoc -f latex -t native
\SI[round-precision=2]{1}{m} is equal to \SI{1000}{mm}
^D
-[Para [Str "1\160m",Space,Str "is",Space,Str "equal",Space,Str "to",Space,Str "1000\160mm"]]
+[ Para
+ [ Str "1\160m"
+ , Space
+ , Str "is"
+ , Space
+ , Str "equal"
+ , Space
+ , Str "to"
+ , Space
+ , Str "1000\160mm"
+ ]
+]
```
```
% pandoc -f latex -t native
\SI[round-precision=2]{1}[\$]{} is equal to \SI{0.938094}{\euro}
^D
-[Para [Str "$\160\&1",Space,Str "is",Space,Str "equal",Space,Str "to",Space,Str "0.938094\160\8364"]]
+[ Para
+ [ Str "$\160\&1"
+ , Space
+ , Str "is"
+ , Space
+ , Str "equal"
+ , Space
+ , Str "to"
+ , Space
+ , Str "0.938094\160\8364"
+ ]
+]
```
@@ -17,35 +39,35 @@
% pandoc -f latex -t native
\SI{30}{\milli\meter}
^D
-[Para [Str "30\160mm"]]
+[ Para [ Str "30\160mm" ] ]
```
```
% pandoc -f latex -t native
\SI{6}{\gram}
^D
-[Para [Str "6\160g"]]
+[ Para [ Str "6\160g" ] ]
```
```
% pandoc -f latex -t native
\SI{25}{\square\meter}
^D
-[Para [Str "25\160m",Superscript [Str "2"]]]
+[ Para [ Str "25\160m" , Superscript [ Str "2" ] ] ]
```
```
% pandoc -f latex -t native
\SI{18.2}{\degreeCelsius}
^D
-[Para [Str "18.2\160\176C"]]
+[ Para [ Str "18.2\160\176C" ] ]
```
```
% pandoc -f latex -t native
\SI{18.2}{\celsius}
^D
-[Para [Str "18.2\160\176C"]]
+[ Para [ Str "18.2\160\176C" ] ]
```
# SIrange tests
@@ -56,19 +78,19 @@
% pandoc -f latex -t native
\SIrange{10}{20}{\gram}
^D
-[Para [Str "10\160g\8211\&20\160g"]]
+[ Para [ Str "10\160g\8211\&20\160g" ] ]
```
```
% pandoc -f latex -t native
\SIrange{35}{9}{\milli\meter}
^D
-[Para [Str "35\160mm\8211\&9\160mm"]]
+[ Para [ Str "35\160mm\8211\&9\160mm" ] ]
```
```
% pandoc -f latex -t native
\SIrange{4}{97367265}{\celsius}
^D
-[Para [Str "4\160\176C\8211\&97367265\160\176C"]]
+[ Para [ Str "4\160\176C\8211\&97367265\160\176C" ] ]
```
## Decimal range with simple units
@@ -77,7 +99,7 @@
% pandoc -f latex -t native
\SIrange{4.5}{97367265.5}{\celsius}
^D
-[Para [Str "4.5\160\176C\8211\&97367265.5\160\176C"]]
+[ Para [ Str "4.5\160\176C\8211\&97367265.5\160\176C" ] ]
```
## Squared, cubed etc. units
@@ -86,21 +108,39 @@
% pandoc -f latex -t native
\SIrange{10}{20}{\square\meter}
^D
-[Para [Str "10\160m",Superscript [Str "2"],Str "\8211\&20\160m",Superscript [Str "2"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "2" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "2" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\SIrange{10}{20}{\cubic\meter}
^D
-[Para [Str "10\160m",Superscript [Str "3"],Str "\8211\&20\160m",Superscript [Str "3"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "3" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "3" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\SIrange{10}{20}{\raisetothe{4}\meter}
^D
-[Para [Str "10\160m",Superscript [Str "4"],Str "\8211\&20\160m",Superscript [Str "4"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "4" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "4" ]
+ ]
+]
```
@@ -108,21 +148,39 @@
% pandoc -f latex -t native
\SIrange{10}{20}{\meter\squared}
^D
-[Para [Str "10\160m",Superscript [Str "2"],Str "\8211\&20\160m",Superscript [Str "2"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "2" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "2" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\SIrange{10}{20}{\meter\cubed}
^D
-[Para [Str "10\160m",Superscript [Str "3"],Str "\8211\&20\160m",Superscript [Str "3"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "3" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "3" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\SIrange{10}{20}{\meter\tothe{4}}
^D
-[Para [Str "10\160m",Superscript [Str "4"],Str "\8211\&20\160m",Superscript [Str "4"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "4" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "4" ]
+ ]
+]
```
@@ -136,12 +194,12 @@
% pandoc -f latex -t native
\SIrange[round-precision=2]{10}{20}{\gram}
^D
-[Para [Str "10\160g\8211\&20\160g"]]
+[ Para [ Str "10\160g\8211\&20\160g" ] ]
```
```
% pandoc -f latex -t native
\SIrange[round-precision=2]{10.0}{20.25}{\gram}
^D
-[Para [Str "10.0\160g\8211\&20.25\160g"]]
+[ Para [ Str "10.0\160g\8211\&20.25\160g" ] ]
```
diff --git a/test/command/3681.md b/test/command/3681.md
index d0805e820..dc6b90860 100644
--- a/test/command/3681.md
+++ b/test/command/3681.md
@@ -4,7 +4,34 @@
Software developers create \cicd pipelines to… Following issue can be resolved by \cicd:
^D
-[Para [Str "Software",Space,Str "developers",Space,Str "create",Space,Str "CI/CD",Space,Str "pipelines",Space,Str "to\8230",Space,Str "Following",Space,Str "issue",Space,Str "can",Space,Str "be",Space,Str "resolved",Space,Str "by",Space,Str "CI/CD:"]]
+[ Para
+ [ Str "Software"
+ , Space
+ , Str "developers"
+ , Space
+ , Str "create"
+ , Space
+ , Str "CI/CD"
+ , Space
+ , Str "pipelines"
+ , Space
+ , Str "to\8230"
+ , Space
+ , Str "Following"
+ , Space
+ , Str "issue"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "resolved"
+ , Space
+ , Str "by"
+ , Space
+ , Str "CI/CD:"
+ ]
+]
```
```
@@ -13,7 +40,22 @@ Software developers create \cicd pipelines to… Following issue can be resolved
\cicd\footnote{\url{https://en.wikipedia.org/wiki/CI/CD}} is awesome.
^D
-[Para [Str "CI/CD",Note [Para [Link ("",[],[]) [Str "https://en.wikipedia.org/wiki/CI/CD"] ("https://en.wikipedia.org/wiki/CI/CD","")]],Space,Str "is",Space,Str "awesome."]]
+[ Para
+ [ Str "CI/CD"
+ , Note
+ [ Para
+ [ Link
+ ( "" , [ "uri" ] , [] )
+ [ Str "https://en.wikipedia.org/wiki/CI/CD" ]
+ ( "https://en.wikipedia.org/wiki/CI/CD" , "" )
+ ]
+ ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "awesome."
+ ]
+]
```
```
@@ -23,5 +65,5 @@ Software developers create \cicd pipelines to… Following issue can be resolved
\cicd\pipeline.
^D
-[Para [Str "CI/CD",Space,Str "pipeline."]]
+[ Para [ Str "CI/CD" , Space , Str "pipeline." ] ]
```
diff --git a/test/command/3701.md b/test/command/3701.md
index 01e438639..bd70fae59 100644
--- a/test/command/3701.md
+++ b/test/command/3701.md
@@ -55,6 +55,7 @@
^D
<p><a href="u">a</a></p>
<p><a href="u">a</a></p>
-<p><a href="u2">a</a> <a href="u">A</a> <a href="u" class="foo">a</a></p>
+<p><a href="u2">a</a> <a href="u">A</a> <a href="u"
+class="foo">a</a></p>
<p><a href="u3">a</a></p>
```
diff --git a/test/command/3706.md b/test/command/3706.md
index b6c2c6db1..fcd95dfdd 100644
--- a/test/command/3706.md
+++ b/test/command/3706.md
@@ -1,7 +1,7 @@
Results marker can be hidden in block attributes (#3706)
```
-pandoc -f org -t native
+% pandoc -f org -t native
#+begin_src r :exports results :colnames yes
data.frame(Id = 1:3, Desc = rep("La",3))
#+end_src
@@ -15,40 +15,90 @@ pandoc -f org -t native
| 2 | La |
| 3 | La |
^D
-[Div ("tab",[],[])
- [Table ("",[],[]) (Caption Nothing
- [Plain [Str "Lalelu."]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Id"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Desc"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "La"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "La"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "La"]]]])]
- (TableFoot ("",[],[])
- [])]]
+[ Div
+ ( "tab" , [] , [] )
+ [ Table
+ ( "" , [] , [] )
+ (Caption Nothing [ Plain [ Str "Lalelu." ] ])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Id" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Desc" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "La" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "La" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "La" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+ ]
+]
```
```
-pandoc -f org -t native
+% pandoc -f org -t native
#+begin_src R :exports none :colnames yes
data.frame(Id = 1:2, Desc = rep("La",2))
#+end_src
diff --git a/test/command/3708.md b/test/command/3708.md
index b4fc0da1b..e456617de 100644
--- a/test/command/3708.md
+++ b/test/command/3708.md
@@ -5,24 +5,49 @@
C & D
\end{tabular}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "A"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "B&1"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "C"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "D"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignCenter , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "A" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "B&1" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "C" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "D" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/3733.md b/test/command/3733.md
index b8a326938..0b24d0c1b 100644
--- a/test/command/3733.md
+++ b/test/command/3733.md
@@ -6,8 +6,8 @@
some: code
```
^D
-[BulletList
- [[Plain [Str "Item1"]]
- ,[Plain [Str "Item2"]]]
-,CodeBlock ("",["yaml"],[]) "some: code"]
+[ BulletList
+ [ [ Plain [ Str "Item1" ] ] , [ Plain [ Str "Item2" ] ] ]
+, CodeBlock ( "" , [ "yaml" ] , [] ) "some: code"
+]
````
diff --git a/test/command/3752.md b/test/command/3752.md
index 863e3f2d4..7db581cfe 100644
--- a/test/command/3752.md
+++ b/test/command/3752.md
@@ -32,11 +32,14 @@ A spider: [spider]
^D
<h1 id="chapter-one">Chapter one</h1>
<p>A spider: <img src="command/chap1/spider.png" alt="spider" /></p>
-<p>Another spider: <img src="command/chap2/spider.png" alt="another spider" /></p>
+<p>Another spider: <img src="command/chap2/spider.png" alt="another
+spider" /></p>
<p>The moon: <img src="command/chap1/../../lalune.jpg" alt="moon" /></p>
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
-<p>URL left alone: <a href="https://pandoc.org/MANUAL.html">manual</a>.</p>
-<p>Absolute path left alone: <a href="/foo/bar/baz.png">absolute</a>.</p>
+<p>URL left alone: <a
+href="https://pandoc.org/MANUAL.html">manual</a>.</p>
+<p>Absolute path left alone: <a
+href="/foo/bar/baz.png">absolute</a>.</p>
<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
<p>Empty path: <a href="">empty</a>.</p>
<h1 id="chapter-two">Chapter two</h1>
@@ -48,11 +51,14 @@ A spider: [spider]
^D
<h1>Chapter one</h1>
<p>A spider: <img src="command/chap1/spider.png" alt="spider" /></p>
-<p>Another spider: <img src="command/chap2/spider.png" alt="another spider" /></p>
+<p>Another spider: <img src="command/chap2/spider.png" alt="another
+spider" /></p>
<p>The moon: <img src="command/chap1/../../lalune.jpg" alt="moon" /></p>
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
-<p>URL left alone: <a href="https://pandoc.org/MANUAL.html">manual</a>.</p>
-<p>Absolute path left alone: <a href="/foo/bar/baz.png">absolute</a>.</p>
+<p>URL left alone: <a
+href="https://pandoc.org/MANUAL.html">manual</a>.</p>
+<p>Absolute path left alone: <a
+href="/foo/bar/baz.png">absolute</a>.</p>
<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
<p>Empty path: <a href="">empty</a>.</p>
<h1>Chapter two</h1>
diff --git a/test/command/3755.md b/test/command/3755.md
index 5e1ffc921..e89eaec35 100644
--- a/test/command/3755.md
+++ b/test/command/3755.md
@@ -5,8 +5,18 @@ title: 'Titel'
date: '22. Juni 2017'
---
^D
-Pandoc (Meta {unMeta = fromList [("date",MetaInlines [Str "22.",Space,Str "Juni",Space,Str "2017"]),("title",MetaInlines [Str "Titel"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "date"
+ , MetaInlines
+ [ Str "22." , Space , Str "Juni" , Space , Str "2017" ]
+ )
+ , ( "title" , MetaInlines [ Str "Titel" ] )
+ ]
+ }
+ []
```
```
@@ -17,7 +27,23 @@ date: |
22. Juni 2017
---
^D
-Pandoc (Meta {unMeta = fromList [("date",MetaBlocks [OrderedList (22,Decimal,Period) [[Plain [Str "Juni",Space,Str "2017"]]]]),("title",MetaBlocks [Div ("",[],[]) [Plain [Str "foo"]]])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "date"
+ , MetaBlocks
+ [ OrderedList
+ ( 22 , Decimal , Period )
+ [ [ Plain [ Str "Juni" , Space , Str "2017" ] ] ]
+ ]
+ )
+ , ( "title"
+ , MetaBlocks
+ [ Div ( "" , [] , [] ) [ Plain [ Str "foo" ] ] ]
+ )
+ ]
+ }
+ []
```
diff --git a/test/command/3779.md b/test/command/3779.md
index 1097123f0..04111c2a6 100644
--- a/test/command/3779.md
+++ b/test/command/3779.md
@@ -20,9 +20,38 @@
Pandoc is 300\% awesome.
}
^D
-[BulletList
- [[Para [Str "Pandoc",Space,Str "is",Space,Str "100%",Space,Str "awesome."]]]
-,BulletList
- [[Para [Str "Pandoc",Space,Str "is",Space,Str "200%",Space,Str "awesome."]]]
-,Para [Str "Pandoc",Space,Str "is",Space,Str "300%",Space,Str "awesome."]]
+[ BulletList
+ [ [ Para
+ [ Str "Pandoc"
+ , Space
+ , Str "is"
+ , Space
+ , Str "100%"
+ , Space
+ , Str "awesome."
+ ]
+ ]
+ ]
+, BulletList
+ [ [ Para
+ [ Str "Pandoc"
+ , Space
+ , Str "is"
+ , Space
+ , Str "200%"
+ , Space
+ , Str "awesome."
+ ]
+ ]
+ ]
+, Para
+ [ Str "Pandoc"
+ , Space
+ , Str "is"
+ , Space
+ , Str "300%"
+ , Space
+ , Str "awesome."
+ ]
+]
```
diff --git a/test/command/3792.md b/test/command/3792.md
index eff26d517..eb109b9cc 100644
--- a/test/command/3792.md
+++ b/test/command/3792.md
@@ -6,7 +6,7 @@ and properly escaped.
ok
^D
---
-title: \<this> \*that\*
+title: \<this\> \*that\*
---
ok
diff --git a/test/command/3794.md b/test/command/3794.md
index b56e7b504..974b7dbe4 100644
--- a/test/command/3794.md
+++ b/test/command/3794.md
@@ -2,6 +2,5 @@
% pandoc -f html -t native
<div><p>hello</div>
^D
-[Div ("",[],[])
- [Para [Str "hello"]]]
+[ Div ( "" , [] , [] ) [ Para [ Str "hello" ] ] ]
```
diff --git a/test/command/3804.md b/test/command/3804.md
index 520d408df..6637b23c7 100644
--- a/test/command/3804.md
+++ b/test/command/3804.md
@@ -2,5 +2,8 @@
% pandoc -t native
\titleformat{\chapter}[display]{\normalfont\large\bfseries}{第\thechapter{}章}{20pt}{\Huge}
^D
-[RawBlock (Format "tex") "\\titleformat{\\chapter}[display]{\\normalfont\\large\\bfseries}{\31532\\thechapter{}\31456}{20pt}{\\Huge}"]
+[ RawBlock
+ (Format "tex")
+ "\\titleformat{\\chapter}[display]{\\normalfont\\large\\bfseries}{\31532\\thechapter{}\31456}{20pt}{\\Huge}"
+]
```
diff --git a/test/command/3840.md b/test/command/3840.md
index ceb1d1e51..a0dd314d3 100644
--- a/test/command/3840.md
+++ b/test/command/3840.md
@@ -2,7 +2,8 @@
% pandoc
[@Alhazen1572-qk, V.9]: "competentius est"
^D
-<p><span class="citation" data-cites="Alhazen1572-qk">[@Alhazen1572-qk, V.9]</span>: “competentius est”</p>
+<p><span class="citation" data-cites="Alhazen1572-qk">[@Alhazen1572-qk,
+V.9]</span>: “competentius est”</p>
```
```
diff --git a/test/command/3853.md b/test/command/3853.md
index 19e8e2260..caf21ed54 100644
--- a/test/command/3853.md
+++ b/test/command/3853.md
@@ -20,7 +20,9 @@ more
hello \iftoggle{ebook}{ebook}{noebook}
^D
-[Para [Str "ebook",SoftBreak,Str "more"]
-,Para [Str "not",Space,Str "ebook",SoftBreak,Str "more"]
-,Para [Str "hello",Space,Str "noebook"]]
+[ Para [ Str "ebook" , SoftBreak , Str "more" ]
+, Para
+ [ Str "not" , Space , Str "ebook" , SoftBreak , Str "more" ]
+, Para [ Str "hello" , Space , Str "noebook" ]
+]
```
diff --git a/test/command/3880.md b/test/command/3880.md
index b8edaf08f..ff68c6c8a 100644
--- a/test/command/3880.md
+++ b/test/command/3880.md
@@ -1,6 +1,6 @@
```
-pandoc -f rst -t native
+% pandoc -f rst -t native
.. include:: command/3880.txt
^D
-[Para [Str "hi"]]
+[ Para [ Str "hi" ] ]
```
diff --git a/test/command/3916.md b/test/command/3916.md
index 9ac0834d7..8775ae7f6 100644
--- a/test/command/3916.md
+++ b/test/command/3916.md
@@ -4,8 +4,12 @@
<pre>blabla</pre>
# more
^D
-[OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "text",Space,Str "text"]
- ,CodeBlock ("",[],[]) "blabla"]
- ,[Plain [Str "more"]]]]
+[ OrderedList
+ ( 1 , DefaultStyle , DefaultDelim )
+ [ [ Plain [ Str "text" , Space , Str "text" ]
+ , CodeBlock ( "" , [] , [] ) "blabla"
+ ]
+ , [ Plain [ Str "more" ] ]
+ ]
+]
```
diff --git a/test/command/3947.md b/test/command/3947.md
index b1d695fbd..68118a9da 100644
--- a/test/command/3947.md
+++ b/test/command/3947.md
@@ -6,6 +6,8 @@
Another Code block
^D
-[RawBlock (Format "tex") "\\newpage"
-,CodeBlock ("",[],[]) "Code block\n\nAnother Code block"]
+[ RawBlock (Format "tex") "\\newpage"
+, CodeBlock
+ ( "" , [] , [] ) "Code block\n\nAnother Code block"
+]
```
diff --git a/test/command/3958.md b/test/command/3958.md
index 1793dd05c..eccf632c4 100644
--- a/test/command/3958.md
+++ b/test/command/3958.md
@@ -2,19 +2,19 @@
% pandoc -f latex -t native
\texttt{"hi"}
^D
-[Para [Code ("",[],[]) "\"hi\""]]
+[ Para [ Code ( "" , [] , [] ) "\"hi\"" ] ]
```
```
% pandoc -f latex -t native
\texttt{``hi''}
^D
-[Para [Code ("",[],[]) "\8220hi\8221"]]
+[ Para [ Code ( "" , [] , [] ) "\8220hi\8221" ] ]
```
```
% pandoc -f latex -t native
\texttt{`hi'}
^D
-[Para [Code ("",[],[]) "\8216hi\8217"]]
+[ Para [ Code ( "" , [] , [] ) "\8216hi\8217" ] ]
```
diff --git a/test/command/3971.md b/test/command/3971.md
index 533540743..b051caed3 100644
--- a/test/command/3971.md
+++ b/test/command/3971.md
@@ -5,5 +5,5 @@
\code{f}
\end{document}
^D
-[Para [Code ("",[],[]) "f"]]
+[ Para [ Code ( "" , [] , [] ) "f" ] ]
```
diff --git a/test/command/3983.md b/test/command/3983.md
index 5d83941e7..82c1deef0 100644
--- a/test/command/3983.md
+++ b/test/command/3983.md
@@ -1,29 +1,31 @@
```
-pandoc -f latex+raw_tex -t native
+% pandoc -f latex+raw_tex -t native
\def\filename@area{foo:bar:baz}
\makeatletter
\graphicspath\expandafter{\expandafter{\filename@area}}%
\makeatother
^D
-[RawBlock (Format "latex") "\\makeatletter"
-,RawBlock (Format "latex") "\\makeatother"]
+[ RawBlock (Format "latex") "\\makeatletter"
+, RawBlock (Format "latex") "\\makeatother"
+]
```
```
-pandoc -f latex+raw_tex -t native
+% pandoc -f latex+raw_tex -t native
\makeatletter
\newcommand\urlfootnote@[1]{\footnote{\url@{#1}}}
\DeclareRobustCommand{\urlfootnote}{\hyper@normalise\urlfootnote@}
\makeatother
^D
-[RawBlock (Format "latex") "\\makeatletter"
-,RawBlock (Format "latex") "\\makeatother"]
+[ RawBlock (Format "latex") "\\makeatletter"
+, RawBlock (Format "latex") "\\makeatother"
+]
```
```
-pandoc -f latex+raw_tex -t native
+% pandoc -f latex+raw_tex -t native
\def\foo{bar}
\expandafter\bam\foo
^D
-[RawBlock (Format "latex") "\\bambar"]
+[ RawBlock (Format "latex") "\\bambar" ]
```
diff --git a/test/command/3989.md b/test/command/3989.md
index bf078b2e4..647aa355a 100644
--- a/test/command/3989.md
+++ b/test/command/3989.md
@@ -1,7 +1,22 @@
```
-pandoc -f markdown -t native
+% pandoc -f markdown -t native
<span title="1st line of text <br> 2nd line of text">foo</span>
<span title="1st line of text <br> 2nd line of text">foo</span>
^D
-[Para [Span ("",[],[("title","1st line of text <br> 2nd line of text")]) [Str "foo"],SoftBreak,Span ("",[],[("title","1st line of text <br> 2nd line of text")]) [Str "foo"]]]
+[ Para
+ [ Span
+ ( ""
+ , []
+ , [ ( "title" , "1st line of text <br> 2nd line of text" ) ]
+ )
+ [ Str "foo" ]
+ , SoftBreak
+ , Span
+ ( ""
+ , []
+ , [ ( "title" , "1st line of text <br> 2nd line of text" ) ]
+ )
+ [ Str "foo" ]
+ ]
+]
```
diff --git a/test/command/4007.md b/test/command/4007.md
index c6064e0f2..974a88ab9 100644
--- a/test/command/4007.md
+++ b/test/command/4007.md
@@ -1,23 +1,23 @@
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\newcommand\arrow\to
$a\arrow b$
^D
-[Para [Math InlineMath "a\\to b"]]
+[ Para [ Math InlineMath "a\\to b" ] ]
```
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\newcommand\pfeil[1]{\to #1}
$a\pfeil b$
^D
-[Para [Math InlineMath "a\\to b"]]
+[ Para [ Math InlineMath "a\\to b" ] ]
```
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\newcommand\fleche{\to}
$a\fleche b$
^D
-[Para [Math InlineMath "a\\to b"]]
+[ Para [ Math InlineMath "a\\to b" ] ]
```
diff --git a/test/command/4012.md b/test/command/4012.md
index 602c23219..26e971d4e 100644
--- a/test/command/4012.md
+++ b/test/command/4012.md
@@ -1,8 +1,9 @@
```
-pandoc -f markdown-implicit_figures
+% pandoc -f markdown-implicit_figures
![image]
[image]: http://example.com/image.jpg {height=35mm}
^D
-<p><img src="http://example.com/image.jpg" style="height:35mm" alt="image" /></p>
+<p><img src="http://example.com/image.jpg" style="height:35mm"
+alt="image" /></p>
```
diff --git a/test/command/4016.md b/test/command/4016.md
index 577ac1b09..8683c0056 100644
--- a/test/command/4016.md
+++ b/test/command/4016.md
@@ -1,5 +1,5 @@
```
-pandoc -t beamer
+% pandoc -t beamer
# Level 2 blocks
<div class="columns">
diff --git a/test/command/4019.md b/test/command/4019.md
index ab13f0233..641905b54 100644
--- a/test/command/4019.md
+++ b/test/command/4019.md
@@ -1,5 +1,5 @@
```
-pandoc --wrap=preserve
+% pandoc --wrap=preserve
This <!-- x > 0 --> works!
This <!-- x > 0 --> fails?
^D
diff --git a/test/command/4054.md b/test/command/4054.md
index 3689773c4..81c6e4012 100644
--- a/test/command/4054.md
+++ b/test/command/4054.md
@@ -2,13 +2,20 @@
% pandoc -t native -s -M title=New
% Old
^D
-Pandoc (Meta {unMeta = fromList [("title",MetaString "New")]})
-[]
+Pandoc
+ Meta
+ { unMeta = fromList [ ( "title" , MetaString "New" ) ] }
+ []
```
```
% pandoc -t native -s -M foo=1 -M foo=2
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaList [MetaString "1",MetaString "2"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "foo" , MetaList [ MetaString "1" , MetaString "2" ] ) ]
+ }
+ []
```
diff --git a/test/command/4056.md b/test/command/4056.md
index 2f5111aeb..c270d25ca 100644
--- a/test/command/4056.md
+++ b/test/command/4056.md
@@ -5,7 +5,10 @@
\end{shaded}
}
^D
-[RawBlock (Format "tex") "\\parbox[t]{0.4\\textwidth}{\n\\begin{shaded}\n\\end{shaded}\n}"]
+[ RawBlock
+ (Format "tex")
+ "\\parbox[t]{0.4\\textwidth}{\n\\begin{shaded}\n\\end{shaded}\n}"
+]
```
```
@@ -14,22 +17,41 @@
Blah & Foo & Bar \\
\end{tabular}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Blah"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Foo"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bar"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignLeft , ColWidthDefault )
+ , ( AlignRight , ColWidthDefault )
+ , ( AlignRight , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Blah" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Foo" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Bar" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/4063.md b/test/command/4063.md
index 838472b46..29aeae854 100644
--- a/test/command/4063.md
+++ b/test/command/4063.md
@@ -11,19 +11,34 @@
</tr>
</table>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.3)
- ,(AlignDefault,ColWidth 0.7)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidth 0.3 )
+ , ( AlignDefault , ColWidth 0.7 )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/4068.md b/test/command/4068.md
index 7b43a7084..83527a6fd 100644
--- a/test/command/4068.md
+++ b/test/command/4068.md
@@ -1,9 +1,33 @@
```
-pandoc -f mediawiki -t native
+% pandoc -f mediawiki -t native
[https://domain.com/script.php?a=1&b=2&c=&d=4 open productname bugs]
[http://domain.com?a=. open productname bugs]
^D
-[Para [Link ("",[],[]) [Str "open",Space,Str "productname",Space,Str "bugs"] ("https://domain.com/script.php?a=1&b=2&c=&d=4","")]
-,Para [Str "[",Link ("",[],[]) [Str "http://domain.com?a="] ("http://domain.com?a=",""),Str ".",Space,Str "open",Space,Str "productname",Space,Str "bugs]"]]
+[ Para
+ [ Link
+ ( "" , [] , [] )
+ [ Str "open"
+ , Space
+ , Str "productname"
+ , Space
+ , Str "bugs"
+ ]
+ ( "https://domain.com/script.php?a=1&b=2&c=&d=4" , "" )
+ ]
+, Para
+ [ Str "["
+ , Link
+ ( "" , [] , [] )
+ [ Str "http://domain.com?a=" ]
+ ( "http://domain.com?a=" , "" )
+ , Str "."
+ , Space
+ , Str "open"
+ , Space
+ , Str "productname"
+ , Space
+ , Str "bugs]"
+ ]
+]
```
diff --git a/test/command/4119.md b/test/command/4119.md
index c4efac30f..fcbf79386 100644
--- a/test/command/4119.md
+++ b/test/command/4119.md
@@ -1,5 +1,5 @@
```
-pandoc -t native
+% pandoc -t native
| col1 | col2 |
| ---- | ---- |
| 1 | 2 |
@@ -8,25 +8,56 @@ pandoc -t native
not a caption!
::::::::::::::::
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col2"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]]])]
- (TableFoot ("",[],[])
- [])
-,Div ("",["notes"],[])
- [Para [Str "not",Space,Str "a",Space,Str "caption!"]]]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "col1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "col2" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+, Div
+ ( "" , [ "notes" ] , [] )
+ [ Para
+ [ Str "not" , Space , Str "a" , Space , Str "caption!" ]
+ ]
+]
```
diff --git a/test/command/4134.md b/test/command/4134.md
index b5473d948..195d85129 100644
--- a/test/command/4134.md
+++ b/test/command/4134.md
@@ -3,7 +3,7 @@
Hello.\
world.
^D
-[Para [Str "Hello.\160world."]]
+[ Para [ Str "Hello.\160world." ] ]
```
```
@@ -11,7 +11,7 @@ world.
Hello.\
world.
^D
-[Para [Str "Hello.\160world."]]
+[ Para [ Str "Hello.\160world." ] ]
```
```
@@ -20,6 +20,5 @@ Hello.\
World.
^D
-[Para [Str "Hello.\160"]
-,Para [Str "World."]]
+[ Para [ Str "Hello.\160" ] , Para [ Str "World." ] ]
```
diff --git a/test/command/4159.md b/test/command/4159.md
index d61959950..bea4632c9 100644
--- a/test/command/4159.md
+++ b/test/command/4159.md
@@ -3,6 +3,7 @@
\newcommand{\gen}{a\ Gen\ b}
abc
^D
-[RawBlock (Format "tex") "\\newcommand{\\gen}{a\\ Gen\\ b}"
-,Para [Str "abc"]]
+[ RawBlock (Format "tex") "\\newcommand{\\gen}{a\\ Gen\\ b}"
+, Para [ Str "abc" ]
+]
```
diff --git a/test/command/4162.md b/test/command/4162.md
index d88e1ec4e..85b48dbdf 100644
--- a/test/command/4162.md
+++ b/test/command/4162.md
@@ -3,8 +3,5 @@
<div class="line-block">hi<br /><br>
 there</div>
^D
-[LineBlock
- [[Str "hi"]
- ,[]
- ,[Str "\160there"]]]
+[ LineBlock [ [ Str "hi" ] , [] , [ Str "\160there" ] ] ]
```
diff --git a/test/command/4164.md b/test/command/4164.md
index 68cbd0584..4e7b7e285 100644
--- a/test/command/4164.md
+++ b/test/command/4164.md
@@ -26,6 +26,6 @@ Here is inline html:
Here is inline html:
-\<div> \<balise> bla bla \</div>
+\<div\> \<balise\> bla bla \</div\>
```
diff --git a/test/command/4183.md b/test/command/4183.md
index c18320882..8d6c65a01 100644
--- a/test/command/4183.md
+++ b/test/command/4183.md
@@ -4,7 +4,7 @@
<img src="foo" alt="bar">
</figure>
^D
-[Para [Image ("",[],[]) [] ("foo","fig:")]]
+[ Para [ Image ( "" , [] , [] ) [] ( "foo" , "fig:" ) ] ]
```
```
@@ -18,7 +18,9 @@
</figcaption>
</figure>
^D
-[Para [Image ("",[],[]) [Str "baz"] ("foo","fig:")]]
+[ Para
+ [ Image ( "" , [] , [] ) [ Str "baz" ] ( "foo" , "fig:" ) ]
+]
```
```
@@ -28,5 +30,9 @@
<figcaption><p><em>baz</em></p></figcaption>
</figure>
^D
-[Para [Image ("",[],[]) [Emph [Str "baz"]] ("foo","fig:")]]
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Emph [ Str "baz" ] ] ( "foo" , "fig:" )
+ ]
+]
```
diff --git a/test/command/4186.md b/test/command/4186.md
index 8c0d04a31..b2a2bd6e9 100644
--- a/test/command/4186.md
+++ b/test/command/4186.md
@@ -4,7 +4,10 @@
This should retain the four leading spaces
#+end_example
^D
-[CodeBlock ("",["example"],[]) " This should retain the four leading spaces\n"]
+[ CodeBlock
+ ( "" , [ "example" ] , [] )
+ " This should retain the four leading spaces\n"
+]
```
```
@@ -54,7 +57,8 @@ Outside all lists.
</ul>
<pre id="carrie" class="example"><code>This belongs to the outer list element, and is aligned accordingly, since the NAME attribute is not indented deeply enough. It is not enough for the BEGIN alone to be aligned deeply if the block is meant to have a NAME.
</code></pre>
-<p>Still in the shallower list element since the preceding example block forced the deeper list element to terminate.</p></li>
+<p>Still in the shallower list element since the preceding example block
+forced the deeper list element to terminate.</p></li>
</ul>
<p>Outside all lists.</p>
```
diff --git a/test/command/4193.md b/test/command/4193.md
index 44c7d70cc..67ca5a4f7 100644
--- a/test/command/4193.md
+++ b/test/command/4193.md
@@ -4,7 +4,7 @@
a
- b
^D
-[BulletList
- [[Plain [Str "a"]]
- ,[Plain [Str "b"]]]]
+[ BulletList
+ [ [ Plain [ Str "a" ] ] , [ Plain [ Str "b" ] ] ]
+]
```
diff --git a/test/command/4199.md b/test/command/4199.md
index 49d2bdbcb..36385bc2a 100644
--- a/test/command/4199.md
+++ b/test/command/4199.md
@@ -2,5 +2,8 @@
% pandoc -f latex -t native
\foreignlanguage{ngerman}{foo}
^D
-[Para [Span ("",[],[("lang","de-DE")]) [Str "foo"]]]
+[ Para
+ [ Span ( "" , [] , [ ( "lang" , "de-DE" ) ] ) [ Str "foo" ]
+ ]
+]
```
diff --git a/test/command/4235.md b/test/command/4235.md
index 8bbf43ff9..5b534b6d7 100644
--- a/test/command/4235.md
+++ b/test/command/4235.md
@@ -2,11 +2,15 @@
% pandoc --id-prefix=foo
This.^[Has a footnote.]
^D
-<p>This.<a href="#foofn1" class="footnote-ref" id="foofnref1" role="doc-noteref"><sup>1</sup></a></p>
-<section class="footnotes" role="doc-endnotes">
+<p>This.<a href="#foofn1" class="footnote-ref" id="foofnref1"
+role="doc-noteref"><sup>1</sup></a></p>
+<section class="footnotes footnotes-end-of-document"
+role="doc-endnotes">
<hr />
<ol>
-<li id="foofn1" role="doc-endnote"><p>Has a footnote.<a href="#foofnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
+<li id="foofn1" role="doc-endnote"><p>Has a footnote.<a
+href="#foofnref1" class="footnote-back"
+role="doc-backlink">↩︎</a></p></li>
</ol>
</section>
```
diff --git a/test/command/4240.md b/test/command/4240.md
index 39a7d2adf..49585438a 100644
--- a/test/command/4240.md
+++ b/test/command/4240.md
@@ -25,9 +25,20 @@ header3
header4
~~~~~~~
^D
-Pandoc (Meta {unMeta = fromList [("subtitle",MetaInlines [Str "Subtitle"]),("title",MetaInlines [Str "Title"])]})
-[Header 1 ("header1",[],[]) [Str "header1"]
-,Header 2 ("header2",[],[]) [Str "header2"]
-,Header 3 ("id",[],[]) [Str "header3"]
-,Header 3 ("id3",[],[]) [Str "header4",Span ("id2",[],[]) []]]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "subtitle" , MetaInlines [ Str "Subtitle" ] )
+ , ( "title" , MetaInlines [ Str "Title" ] )
+ ]
+ }
+ [ Header 1 ( "header1" , [] , [] ) [ Str "header1" ]
+ , Header 2 ( "header2" , [] , [] ) [ Str "header2" ]
+ , Header 3 ( "id" , [] , [] ) [ Str "header3" ]
+ , Header
+ 3
+ ( "id3" , [] , [] )
+ [ Str "header4" , Span ( "id2" , [] , [] ) [] ]
+ ]
```
diff --git a/test/command/4253.md b/test/command/4253.md
index 01f5eea86..2c994a9fc 100644
--- a/test/command/4253.md
+++ b/test/command/4253.md
@@ -4,5 +4,5 @@
\noop{\newcommand{\foo}[1]{#1}}
\foo{hi}
^D
-[Para [Str "hi"]]
+[ Para [ Str "hi" ] ]
```
diff --git a/test/command/4280.md b/test/command/4280.md
index 6a89b5e63..343a2ab07 100644
--- a/test/command/4280.md
+++ b/test/command/4280.md
@@ -3,5 +3,5 @@
Driver
------
^D
-[Header 1 ("driver",[],[]) [Str "Driver"]]
+[ Header 1 ( "driver" , [] , [] ) [ Str "Driver" ] ]
```
diff --git a/test/command/4281.md b/test/command/4281.md
index 9806e8178..53943e503 100644
--- a/test/command/4281.md
+++ b/test/command/4281.md
@@ -9,10 +9,13 @@
:::
::::
^D
-[Div ("",["a"],[])
- [BulletList
- [[Div ("",["b"],[])
- [Para [Str "text"]]
- ,Div ("",["c"],[])
- [Para [Str "text"]]]]]]
+[ Div
+ ( "" , [ "a" ] , [] )
+ [ BulletList
+ [ [ Div ( "" , [ "b" ] , [] ) [ Para [ Str "text" ] ]
+ , Div ( "" , [ "c" ] , [] ) [ Para [ Str "text" ] ]
+ ]
+ ]
+ ]
+]
```
diff --git a/test/command/4284.md b/test/command/4284.md
index eddd1b03a..0308f521f 100644
--- a/test/command/4284.md
+++ b/test/command/4284.md
@@ -8,7 +8,34 @@
** Children of headers with excluded tags should not appear :xylophone:
* This should not appear :%:
^D
-[Header 1 ("noexport-should-appear-if-not-specified-in-excludetags",[],[]) [Str "NOEXPORT",Space,Str "should",Space,Str "appear",Space,Str "if",Space,Str "not",Space,Str "specified",Space,Str "in",Space,Str "EXCLUDE",Subscript [Str "TAGS"],Space,Span ("",["tag"],[("tag-name","noexport")]) [SmallCaps [Str "noexport"]]]]
+[ Header
+ 1
+ ( "noexport-should-appear-if-not-specified-in-excludetags"
+ , []
+ , []
+ )
+ [ Str "NOEXPORT"
+ , Space
+ , Str "should"
+ , Space
+ , Str "appear"
+ , Space
+ , Str "if"
+ , Space
+ , Str "not"
+ , Space
+ , Str "specified"
+ , Space
+ , Str "in"
+ , Space
+ , Str "EXCLUDE"
+ , Subscript [ Str "TAGS" ]
+ , Space
+ , Span
+ ( "" , [ "tag" ] , [ ( "tag-name" , "noexport" ) ] )
+ [ SmallCaps [ Str "noexport" ] ]
+ ]
+]
```
```
@@ -17,7 +44,20 @@
* This should not appear :elephant:
* This should appear :fawn:
^D
-[Header 1 ("this-should-appear",[],[]) [Str "This",Space,Str "should",Space,Str "appear",Space,Span ("",["tag"],[("tag-name","fawn")]) [SmallCaps [Str "fawn"]]]]
+[ Header
+ 1
+ ( "this-should-appear" , [] , [] )
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "appear"
+ , Space
+ , Span
+ ( "" , [ "tag" ] , [ ( "tag-name" , "fawn" ) ] )
+ [ SmallCaps [ Str "fawn" ] ]
+ ]
+]
```
```
@@ -28,7 +68,20 @@
* This should not appear :hippo:
* This should appear :noexport:
^D
-[Header 1 ("this-should-appear",[],[]) [Str "This",Space,Str "should",Space,Str "appear",Space,Span ("",["tag"],[("tag-name","noexport")]) [SmallCaps [Str "noexport"]]]]
+[ Header
+ 1
+ ( "this-should-appear" , [] , [] )
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "appear"
+ , Space
+ , Span
+ ( "" , [ "tag" ] , [ ( "tag-name" , "noexport" ) ] )
+ [ SmallCaps [ Str "noexport" ] ]
+ ]
+]
```
```
@@ -36,5 +89,32 @@
#+EXCLUDE_TAGS:
* NOEXPORT should appear if not specified in EXCLUDE_TAGS :noexport:
^D
-[Header 1 ("noexport-should-appear-if-not-specified-in-excludetags",[],[]) [Str "NOEXPORT",Space,Str "should",Space,Str "appear",Space,Str "if",Space,Str "not",Space,Str "specified",Space,Str "in",Space,Str "EXCLUDE",Subscript [Str "TAGS"],Space,Span ("",["tag"],[("tag-name","noexport")]) [SmallCaps [Str "noexport"]]]]
+[ Header
+ 1
+ ( "noexport-should-appear-if-not-specified-in-excludetags"
+ , []
+ , []
+ )
+ [ Str "NOEXPORT"
+ , Space
+ , Str "should"
+ , Space
+ , Str "appear"
+ , Space
+ , Str "if"
+ , Space
+ , Str "not"
+ , Space
+ , Str "specified"
+ , Space
+ , Str "in"
+ , Space
+ , Str "EXCLUDE"
+ , Subscript [ Str "TAGS" ]
+ , Space
+ , Span
+ ( "" , [ "tag" ] , [ ( "tag-name" , "noexport" ) ] )
+ [ SmallCaps [ Str "noexport" ] ]
+ ]
+]
```
diff --git a/test/command/4306.md b/test/command/4306.md
index f1267eb9b..dcb90e312 100644
--- a/test/command/4306.md
+++ b/test/command/4306.md
@@ -1,10 +1,22 @@
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\documentclass{article}
\usepackage{hyperref}
\begin{document}
The file id is \nolinkurl{ESP_123_5235}.
\end{document}
^D
-[Para [Str "The",Space,Str "file",Space,Str "id",Space,Str "is",Space,Code ("",[],[]) "ESP_123_5235",Str "."]]
+[ Para
+ [ Str "The"
+ , Space
+ , Str "file"
+ , Space
+ , Str "id"
+ , Space
+ , Str "is"
+ , Space
+ , Code ( "" , [] , [] ) "ESP_123_5235"
+ , Str "."
+ ]
+]
```
diff --git a/test/command/4374.md b/test/command/4374.md
index 296c116a9..4a0990fff 100644
--- a/test/command/4374.md
+++ b/test/command/4374.md
@@ -3,5 +3,18 @@
\cite{a%
}
^D
-[Para [Cite [Citation {citationId = "a", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite{a%\n}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "a"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline (Format "latex") "\\cite{a%\n}" ]
+ ]
+]
```
diff --git a/test/command/4382.md b/test/command/4382.md
index 4a840489f..847f4732e 100644
--- a/test/command/4382.md
+++ b/test/command/4382.md
@@ -4,7 +4,5 @@
=====
^D
-[BulletList
- [[]]
-,HorizontalRule]
+[ BulletList [ [] ] , HorizontalRule ]
```
diff --git a/test/command/4424.md b/test/command/4424.md
index b0b95510b..a1b38544b 100644
--- a/test/command/4424.md
+++ b/test/command/4424.md
@@ -6,5 +6,5 @@
Test
\end{document}
^D
-[Para [Str "Test"]]
+[ Para [ Str "Test" ] ]
```
diff --git a/test/command/4454.md b/test/command/4454.md
index db0b0a406..aeb62aabb 100644
--- a/test/command/4454.md
+++ b/test/command/4454.md
@@ -3,7 +3,7 @@
• a
• b
^D
-[BulletList
- [[Plain [Str "a"]]
- ,[Plain [Str "b"]]]]
+[ BulletList
+ [ [ Plain [ Str "a" ] ] , [ Plain [ Str "b" ] ] ]
+]
```
diff --git a/test/command/4499.md b/test/command/4499.md
index 073f76c0e..5e86d6ee4 100644
--- a/test/command/4499.md
+++ b/test/command/4499.md
@@ -9,7 +9,7 @@
% pandoc -f latex+raw_tex -t native
\mbox{abc def}
^D
-[Para [RawInline (Format "latex") "\\mbox{abc def}"]]
+[ Para [ RawInline (Format "latex") "\\mbox{abc def}" ] ]
```
```
@@ -53,7 +53,7 @@ mno} pqr
% pandoc -f latex+raw_tex -t native
\hbox{abc def}
^D
-[Para [RawInline (Format "latex") "\\hbox{abc def}"]]
+[ Para [ RawInline (Format "latex") "\\hbox{abc def}" ] ]
```
```
diff --git a/test/command/4513.md b/test/command/4513.md
index 88b0b672a..1f36d1958 100644
--- a/test/command/4513.md
+++ b/test/command/4513.md
@@ -2,19 +2,31 @@
% pandoc -f textile -t native
|_. heading 1 |_. heading 2|
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "heading",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "heading",Space,Str "2"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "heading" , Space , Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "heading" , Space , Str "2" ] ]
+ ]
+ ])
+ [ TableBody ( "" , [] , [] ) (RowHeadColumns 0) [] [] ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/4528.md b/test/command/4528.md
index a34af33c5..80be1df2c 100644
--- a/test/command/4528.md
+++ b/test/command/4528.md
@@ -15,7 +15,6 @@ This has \textsc{small caps} in it.
^D
This has <span class="smallcaps">small caps</span> in it.
```
-```
```
% pandoc --wrap=none -f latex -t markdown_strict+raw_html
@@ -31,6 +30,7 @@ This has <span class="smallcaps">small caps</span> in it.
This has <s>strikeout</s> in it.
^D
This has strikeout in it.
+```
```
% pandoc --wrap=none -f html -t commonmark+raw_html-strikeout
diff --git a/test/command/4553.md b/test/command/4553.md
index e5122d4d9..0104a08a8 100644
--- a/test/command/4553.md
+++ b/test/command/4553.md
@@ -1,15 +1,21 @@
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
foo \include{command/bar}
^D
-[Para [Str "foo"]
-,Para [Emph [Str "hi",Space,Str "there"]]]
+[ Para [ Str "foo" ]
+, Para [ Emph [ Str "hi" , Space , Str "there" ] ]
+]
```
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
foo \input{command/bar}
^D
-[Para [Str "foo",Space,Emph [Str "hi",Space,Str "there"]]]
+[ Para
+ [ Str "foo"
+ , Space
+ , Emph [ Str "hi" , Space , Str "there" ]
+ ]
+]
```
diff --git a/test/command/4576.md b/test/command/4576.md
index 1c82b96eb..85322d463 100644
--- a/test/command/4576.md
+++ b/test/command/4576.md
@@ -2,5 +2,5 @@
% pandoc -f latex -t native
$\rho_\text{D$_2$O}=866$
^D
-[Para [Math InlineMath "\\rho_\\text{D$_2$O}=866"]]
+[ Para [ Math InlineMath "\\rho_\\text{D$_2$O}=866" ] ]
```
diff --git a/test/command/4579.md b/test/command/4579.md
index 8858f2351..353a4a514 100644
--- a/test/command/4579.md
+++ b/test/command/4579.md
@@ -8,23 +8,51 @@
* - spam
- ham
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Foo"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bar"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "spam"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "ham"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Foo" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Bar" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "spam" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "ham" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/4624.md b/test/command/4624.md
index f9aa45596..abbdf61f4 100644
--- a/test/command/4624.md
+++ b/test/command/4624.md
@@ -22,9 +22,12 @@ code4
\begin{verbatim}
code5\end{verbatim}
^D
-[CodeBlock ("",[],[("key1","value1")]) "code1\n"
-,CodeBlock ("",[],[("key2","value2")]) "code2\n "
-,CodeBlock ("",[],[]) "code3"
-,CodeBlock ("",[],[]) "code4"
-,CodeBlock ("",[],[]) "code5"]
+[ CodeBlock
+ ( "" , [] , [ ( "key1" , "value1" ) ] ) "code1\n"
+, CodeBlock
+ ( "" , [] , [ ( "key2" , "value2" ) ] ) "code2\n "
+, CodeBlock ( "" , [] , [] ) "code3"
+, CodeBlock ( "" , [] , [] ) "code4"
+, CodeBlock ( "" , [] , [] ) "code5"
+]
```
diff --git a/test/command/4635.md b/test/command/4635.md
index ad9af9c67..7acb08539 100644
--- a/test/command/4635.md
+++ b/test/command/4635.md
@@ -3,7 +3,7 @@
(cf.
foo)
^D
-[Para [Str "(cf.",SoftBreak,Str "foo)"]]
+[ Para [ Str "(cf." , SoftBreak , Str "foo)" ] ]
```
```
@@ -11,7 +11,9 @@ foo)
a (cf.
foo)
^D
-[Para [Str "a",Space,Str "(cf.",SoftBreak,Str "foo)"]]
+[ Para
+ [ Str "a" , Space , Str "(cf." , SoftBreak , Str "foo)" ]
+]
```
```
@@ -19,7 +21,7 @@ foo)
cf.
foo
^D
-[Para [Str "cf.",SoftBreak,Str "foo"]]
+[ Para [ Str "cf." , SoftBreak , Str "foo" ] ]
```
```
@@ -27,5 +29,7 @@ foo
a cf.
foo
^D
-[Para [Str "a",Space,Str "cf.",SoftBreak,Str "foo"]]
+[ Para
+ [ Str "a" , Space , Str "cf." , SoftBreak , Str "foo" ]
+]
```
diff --git a/test/command/4639.md b/test/command/4639.md
index c35df1749..31ac3a5d9 100644
--- a/test/command/4639.md
+++ b/test/command/4639.md
@@ -5,6 +5,6 @@
\end{equation}
^D
<p><span class="math display">\[\begin{equation}
- E=mc^2
+E=mc^2
\end{equation}\]</span></p>
```
diff --git a/test/command/4667.md b/test/command/4667.md
index 1fff3708d..a4ea0a5f4 100644
--- a/test/command/4667.md
+++ b/test/command/4667.md
@@ -1,5 +1,5 @@
```
-pandoc -t latex
+% pandoc -t latex
---
header-includes:
- \newcommand{\blandscape}{\begin{landscape}}
diff --git a/test/command/4669.md b/test/command/4669.md
index ade2ea0d8..41f6ae327 100644
--- a/test/command/4669.md
+++ b/test/command/4669.md
@@ -6,8 +6,10 @@
while (n > 0) {
\end{verbatim}
^D
-[Para [Span ("",[],[]) [Code ("",[],[]) "<-"]]
-,CodeBlock ("",[],[]) " while (n > 0) {"]
+[ Para
+ [ Span ( "" , [] , [] ) [ Code ( "" , [] , [] ) "<-" ] ]
+, CodeBlock ( "" , [] , [] ) " while (n > 0) {"
+]
```
```
@@ -20,10 +22,12 @@
\item<beamer:2> five
\end{itemize}
^D
-[BulletList
- [[Para [Str "one"]]
- ,[Para [Str "two"]]
- ,[Para [Str "three"]]
- ,[Para [Str "four"]]
- ,[Para [Str "five"]]]]
+[ BulletList
+ [ [ Para [ Str "one" ] ]
+ , [ Para [ Str "two" ] ]
+ , [ Para [ Str "three" ] ]
+ , [ Para [ Str "four" ] ]
+ , [ Para [ Str "five" ] ]
+ ]
+]
```
diff --git a/test/command/4677.md b/test/command/4677.md
index 2694624b9..64c436005 100644
--- a/test/command/4677.md
+++ b/test/command/4677.md
@@ -3,6 +3,7 @@
![Caption](img.png){#img:1}
^D
<figure>
-<img src="img.png" id="img:1" alt="Caption" /><figcaption aria-hidden="true">Caption</figcaption>
+<img src="img.png" id="img:1" alt="Caption" />
+<figcaption aria-hidden="true">Caption</figcaption>
</figure>
```
diff --git a/test/command/4715.md b/test/command/4715.md
index 50873c2b5..f6bf8736d 100644
--- a/test/command/4715.md
+++ b/test/command/4715.md
@@ -11,6 +11,21 @@
acquisizione-software.rst
riuso-software.rst
^D
-[Div ("tree1",["toctree","foo","bar"],[("caption","Indice dei contenuti"),("numbered",""),("maxdepth","3")])
- [Para [Str "premessa.rst",SoftBreak,Str "acquisizione-software.rst",SoftBreak,Str "riuso-software.rst"]]]
+[ Div
+ ( "tree1"
+ , [ "toctree" , "foo" , "bar" ]
+ , [ ( "caption" , "Indice dei contenuti" )
+ , ( "numbered" , "" )
+ , ( "maxdepth" , "3" )
+ ]
+ )
+ [ Para
+ [ Str "premessa.rst"
+ , SoftBreak
+ , Str "acquisizione-software.rst"
+ , SoftBreak
+ , Str "riuso-software.rst"
+ ]
+ ]
+]
```
diff --git a/test/command/4722.md b/test/command/4722.md
index 6c8c14716..2b2ceb640 100644
--- a/test/command/4722.md
+++ b/test/command/4722.md
@@ -6,14 +6,18 @@
***Level 3
*Level 1
^D
-[BulletList
- [[Plain [Str "Level",Space,Str "1"]]
- ,[Plain [Str "Level",Space,Str "1"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "2"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]]]]]]
- ,[Plain [Str "Level",Space,Str "1"]]]]
+[ BulletList
+ [ [ Plain [ Str "Level" , Space , Str "1" ] ]
+ , [ Plain [ Str "Level" , Space , Str "1" ]
+ , BulletList
+ [ [ Plain [ Str "Level" , Space , Str "2" ]
+ , BulletList [ [ Plain [ Str "Level" , Space , Str "3" ] ] ]
+ ]
+ ]
+ ]
+ , [ Plain [ Str "Level" , Space , Str "1" ] ]
+ ]
+]
```
```
% pandoc -f tikiwiki -t native
@@ -23,12 +27,20 @@
###Level 3
#Level 1
^D
-[OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Level",Space,Str "1"]]
- ,[Plain [Str "Level",Space,Str "1"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Level",Space,Str "2"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Level",Space,Str "3"]]]]]]
- ,[Plain [Str "Level",Space,Str "1"]]]]
+[ OrderedList
+ ( 1 , DefaultStyle , DefaultDelim )
+ [ [ Plain [ Str "Level" , Space , Str "1" ] ]
+ , [ Plain [ Str "Level" , Space , Str "1" ]
+ , OrderedList
+ ( 1 , DefaultStyle , DefaultDelim )
+ [ [ Plain [ Str "Level" , Space , Str "2" ]
+ , OrderedList
+ ( 1 , DefaultStyle , DefaultDelim )
+ [ [ Plain [ Str "Level" , Space , Str "3" ] ] ]
+ ]
+ ]
+ ]
+ , [ Plain [ Str "Level" , Space , Str "1" ] ]
+ ]
+]
```
diff --git a/test/command/4742.md b/test/command/4742.md
index 7be9a6077..a91dffb33 100644
--- a/test/command/4742.md
+++ b/test/command/4742.md
@@ -5,7 +5,18 @@ extension properly.
% pandoc -f commonmark+gfm_auto_identifiers+ascii_identifiers -t native
# non ascii ⚠️ räksmörgås
^D
-[Header 1 ("non-ascii--raksmorgas",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
+[ Header
+ 1
+ ( "non-ascii--raksmorgas" , [] , [] )
+ [ Str "non"
+ , Space
+ , Str "ascii"
+ , Space
+ , Str "\9888\65039"
+ , Space
+ , Str "r\228ksm\246rg\229s"
+ ]
+]
```
Note that the emoji here is actually a composite character,
@@ -16,7 +27,18 @@ so it survives...
% pandoc -f commonmark+gfm_auto_identifiers-ascii_identifiers -t native
# non ascii ⚠️ räksmörgås
^D
-[Header 1 ("non-ascii-\65039-r\228ksm\246rg\229s",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
+[ Header
+ 1
+ ( "non-ascii-\65039-r\228ksm\246rg\229s" , [] , [] )
+ [ Str "non"
+ , Space
+ , Str "ascii"
+ , Space
+ , Str "\9888\65039"
+ , Space
+ , Str "r\228ksm\246rg\229s"
+ ]
+]
```
`gfm` should have `ascii_identifiers` disabled by default.
@@ -25,5 +47,16 @@ so it survives...
% pandoc -f gfm -t native
# non ascii ⚠️ räksmörgås
^D
-[Header 1 ("non-ascii-\65039-r\228ksm\246rg\229s",[],[]) [Str "non",Space,Str "ascii",Space,Str "\9888\65039",Space,Str "r\228ksm\246rg\229s"]]
+[ Header
+ 1
+ ( "non-ascii-\65039-r\228ksm\246rg\229s" , [] , [] )
+ [ Str "non"
+ , Space
+ , Str "ascii"
+ , Space
+ , Str "\9888\65039"
+ , Space
+ , Str "r\228ksm\246rg\229s"
+ ]
+]
```
diff --git a/test/command/4743.md b/test/command/4743.md
index 49b4b6d59..a75ec1078 100644
--- a/test/command/4743.md
+++ b/test/command/4743.md
@@ -4,14 +4,34 @@ Test that emojis are wrapped in Span
% pandoc -f commonmark+emoji -t native
My:thumbsup:emoji:heart:
^D
-[Para [Str "My",Span ("",["emoji"],[("data-emoji","thumbsup")]) [Str "\128077"],Str "emoji",Span ("",["emoji"],[("data-emoji","heart")]) [Str "\10084\65039"]]]
+[ Para
+ [ Str "My"
+ , Span
+ ( "" , [ "emoji" ] , [ ( "data-emoji" , "thumbsup" ) ] )
+ [ Str "\128077" ]
+ , Str "emoji"
+ , Span
+ ( "" , [ "emoji" ] , [ ( "data-emoji" , "heart" ) ] )
+ [ Str "\10084\65039" ]
+ ]
+]
```
```
% pandoc -f markdown+emoji -t native
My:thumbsup:emoji:heart:
^D
-[Para [Str "My",Span ("",["emoji"],[("data-emoji","thumbsup")]) [Str "\128077"],Str "emoji",Span ("",["emoji"],[("data-emoji","heart")]) [Str "\10084\65039"]]]
+[ Para
+ [ Str "My"
+ , Span
+ ( "" , [ "emoji" ] , [ ( "data-emoji" , "thumbsup" ) ] )
+ [ Str "\128077" ]
+ , Str "emoji"
+ , Span
+ ( "" , [ "emoji" ] , [ ( "data-emoji" , "heart" ) ] )
+ [ Str "\10084\65039" ]
+ ]
+]
```
```
@@ -21,5 +41,7 @@ My:thumbsup:emoji:heart:
My:thumbsup:emoji:heart:x :hearts: xyz
^D
<h1><span class="emoji" data-emoji="zero">0️⃣</span> header</h1>
-<p>My<span class="emoji" data-emoji="thumbsup">👍</span>emoji<span class="emoji" data-emoji="heart">❤️</span>x <span class="emoji" data-emoji="hearts">♥️</span> xyz</p>
+<p>My<span class="emoji" data-emoji="thumbsup">👍</span>emoji<span
+class="emoji" data-emoji="heart">❤️</span>x <span class="emoji"
+data-emoji="hearts">♥️</span> xyz</p>
```
diff --git a/test/command/4781.md b/test/command/4781.md
index 8a75e09a0..e240facf3 100644
--- a/test/command/4781.md
+++ b/test/command/4781.md
@@ -6,9 +6,19 @@ Markdown parsed *here*
*But not here*
^D
-[Para [Str "Markdown",Space,Str "parsed",Space,Emph [Str "here"]]
-,RawBlock (Format "tex") "\\include{command/bar}"
-,Para [Emph [Str "But",Space,Str "not",Space,Str "here"]]]
+[ Para
+ [ Str "Markdown"
+ , Space
+ , Str "parsed"
+ , Space
+ , Emph [ Str "here" ]
+ ]
+, RawBlock (Format "tex") "\\include{command/bar}"
+, Para
+ [ Emph
+ [ Str "But" , Space , Str "not" , Space , Str "here" ]
+ ]
+]
```
```
@@ -17,6 +27,14 @@ Markdown parsed *here*
*But not here*
^D
-[Para [Emph [Str "here"],Space,RawInline (Format "tex") "\\input{command/bar}"]
-,Para [Emph [Str "But",Space,Str "not",Space,Str "here"]]]
+[ Para
+ [ Emph [ Str "here" ]
+ , Space
+ , RawInline (Format "tex") "\\input{command/bar}"
+ ]
+, Para
+ [ Emph
+ [ Str "But" , Space , Str "not" , Space , Str "here" ]
+ ]
+]
```
diff --git a/test/command/4805-beamer-columns-alignment.md b/test/command/4805-beamer-columns-alignment.md
index bd1be0f20..d890730a8 100644
--- a/test/command/4805-beamer-columns-alignment.md
+++ b/test/command/4805-beamer-columns-alignment.md
@@ -1,5 +1,5 @@
```
-pandoc -t beamer
+% pandoc -t beamer
:::: { .columns }
::: { .column align=center }
:::
diff --git a/test/command/4811.md b/test/command/4811.md
index 81a60d78d..4c0b0faa9 100644
--- a/test/command/4811.md
+++ b/test/command/4811.md
@@ -6,8 +6,7 @@ No blank lines in inline interpreted roles:
blank`:myrole:
^D
-[Para [Str "`no"]
-,Para [Str "blank`:myrole:"]]
+[ Para [ Str "`no" ] , Para [ Str "blank`:myrole:" ] ]
```
Backslash escape behaves properly in interpreted roles:
@@ -18,8 +17,9 @@ Backslash escape behaves properly in interpreted roles:
`hi\ there`:code:
^D
-[Para [Superscript [Str "hithere"]]
-,Para [Code ("",[],[]) "hi\\ there"]]
+[ Para [ Superscript [ Str "hithere" ] ]
+, Para [ Code ( "" , [] , [] ) "hi\\ there" ]
+]
```
Backtick followed by alphanumeric doesn't end the span:
@@ -27,7 +27,12 @@ Backtick followed by alphanumeric doesn't end the span:
% pandoc -f rst -t native
`hi`there`:myrole:
^D
-[Para [Code ("",["interpreted-text"],[("role","myrole")]) "hi`there"]]
+[ Para
+ [ Code
+ ( "" , [ "interpreted-text" ] , [ ( "role" , "myrole" ) ] )
+ "hi`there"
+ ]
+]
```
Newline is okay, as long as not blank:
@@ -36,7 +41,12 @@ Newline is okay, as long as not blank:
`hi
there`:myrole:
^D
-[Para [Code ("",["interpreted-text"],[("role","myrole")]) "hi\nthere"]]
+[ Para
+ [ Code
+ ( "" , [ "interpreted-text" ] , [ ( "role" , "myrole" ) ] )
+ "hi\nthere"
+ ]
+]
```
Use span for title-reference:
@@ -44,5 +54,7 @@ Use span for title-reference:
% pandoc -f rst -t native
`default`
^D
-[Para [Span ("",["title-ref"],[]) [Str "default"]]]
+[ Para
+ [ Span ( "" , [ "title-ref" ] , [] ) [ Str "default" ] ]
+]
```
diff --git a/test/command/4817.md b/test/command/4817.md
index 7718e3b3a..84db64b5f 100644
--- a/test/command/4817.md
+++ b/test/command/4817.md
@@ -5,6 +5,17 @@ foo:
- bar: bam
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaList [MetaMap (fromList [("bar",MetaInlines [Str "bam"])])])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "foo"
+ , MetaList
+ [ MetaMap
+ (fromList [ ( "bar" , MetaInlines [ Str "bam" ] ) ])
+ ]
+ )
+ ]
+ }
+ []
```
diff --git a/test/command/4819.md b/test/command/4819.md
index 548583387..5caa5c6de 100644
--- a/test/command/4819.md
+++ b/test/command/4819.md
@@ -4,8 +4,11 @@
foo: 42
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaInlines [Str "42"])]})
-[]
+Pandoc
+ Meta
+ { unMeta = fromList [ ( "foo" , MetaInlines [ Str "42" ] ) ]
+ }
+ []
```
```
@@ -14,8 +17,8 @@ Pandoc (Meta {unMeta = fromList [("foo",MetaInlines [Str "42"])]})
foo: true
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaBool True)]})
-[]
+Pandoc
+ Meta { unMeta = fromList [ ( "foo" , MetaBool True ) ] } []
```
```
@@ -24,8 +27,8 @@ Pandoc (Meta {unMeta = fromList [("foo",MetaBool True)]})
foo: True
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaBool True)]})
-[]
+Pandoc
+ Meta { unMeta = fromList [ ( "foo" , MetaBool True ) ] } []
```
```
@@ -34,8 +37,9 @@ Pandoc (Meta {unMeta = fromList [("foo",MetaBool True)]})
foo: FALSE
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaBool False)]})
-[]
+Pandoc
+ Meta { unMeta = fromList [ ( "foo" , MetaBool False ) ] }
+ []
```
```
@@ -44,7 +48,8 @@ Pandoc (Meta {unMeta = fromList [("foo",MetaBool False)]})
foo: no
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaInlines [Str "no"])]})
-[]
+Pandoc
+ Meta { unMeta = fromList [ ( "foo" , MetaBool False ) ] }
+ []
```
diff --git a/test/command/4832.md b/test/command/4832.md
index 9ba40804c..ec636b2b7 100644
--- a/test/command/4832.md
+++ b/test/command/4832.md
@@ -2,20 +2,38 @@
% pandoc -f latex -t native
\url{http://example.com/foo%20bar.htm}
^D
-[Para [Link ("",[],[]) [Str "http://example.com/foo%20bar.htm"] ("http://example.com/foo%20bar.htm","")]]
+[ Para
+ [ Link
+ ( "" , [ "uri" ] , [] )
+ [ Str "http://example.com/foo%20bar.htm" ]
+ ( "http://example.com/foo%20bar.htm" , "" )
+ ]
+]
```
```
% pandoc -f latex -t native
\url{http://example.com/foo{bar}.htm}
^D
-[Para [Link ("",[],[]) [Str "http://example.com/foo{bar}.htm"] ("http://example.com/foo{bar}.htm","")]]
+[ Para
+ [ Link
+ ( "" , [ "uri" ] , [] )
+ [ Str "http://example.com/foo{bar}.htm" ]
+ ( "http://example.com/foo{bar}.htm" , "" )
+ ]
+]
```
```
% pandoc -f latex -t native
\href{http://example.com/foo%20bar}{Foobar}
^D
-[Para [Link ("",[],[]) [Str "Foobar"] ("http://example.com/foo%20bar","")]]
+[ Para
+ [ Link
+ ( "" , [] , [] )
+ [ Str "Foobar" ]
+ ( "http://example.com/foo%20bar" , "" )
+ ]
+]
```
diff --git a/test/command/4833.md b/test/command/4833.md
index 42001ec74..838fe1463 100644
--- a/test/command/4833.md
+++ b/test/command/4833.md
@@ -1,5 +1,5 @@
```
-pandoc -f native -t rst
+% pandoc -f native -t rst
[Div ("",["warning"],[])
[Div ("",["title"],[])
[Para [Str "Warning"]]
@@ -10,7 +10,7 @@ pandoc -f native -t rst
Hi
```
```
-pandoc -f native -t rst
+% pandoc -f native -t rst
[Div ("",["unknown"],[])
[Para [Str "Hi"]]]
^D
diff --git a/test/command/4842.md b/test/command/4842.md
index a311739b7..e78d31412 100644
--- a/test/command/4842.md
+++ b/test/command/4842.md
@@ -1,6 +1,6 @@
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\l
^D
-[Para [Str "\322"]]
+[ Para [ Str "\322" ] ]
```
diff --git a/test/command/4845.md b/test/command/4845.md
index 093161ac7..10d11127b 100644
--- a/test/command/4845.md
+++ b/test/command/4845.md
@@ -2,5 +2,20 @@
% pandoc -f html -t native
x<a href="/foo"> leading trailing space </a>x
^D
-[Plain [Str "x",Space,Link ("",[],[]) [Str "leading",Space,Str "trailing",Space,Str "space"] ("/foo",""),Space,Str "x"]]
+[ Plain
+ [ Str "x"
+ , Space
+ , Link
+ ( "" , [] , [] )
+ [ Str "leading"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "space"
+ ]
+ ( "/foo" , "" )
+ , Space
+ , Str "x"
+ ]
+]
```
diff --git a/test/command/4848.md b/test/command/4848.md
index 2cd2bab34..c73699a3c 100644
--- a/test/command/4848.md
+++ b/test/command/4848.md
@@ -2,21 +2,31 @@
% pandoc -f latex -t native
\enquote*{hi}
^D
-[Para [Quoted SingleQuote [Str "hi"]]]
+[ Para [ Quoted SingleQuote [ Str "hi" ] ] ]
```
```
% pandoc -f latex -t native
\foreignquote{italian}{hi}
^D
-[Para [Quoted DoubleQuote [Span ("",[],[("lang","it")]) [Str "hi"]]]]
+[ Para
+ [ Quoted
+ DoubleQuote
+ [ Span ( "" , [] , [ ( "lang" , "it" ) ] ) [ Str "hi" ] ]
+ ]
+]
```
```
% pandoc -f latex -t native
\hyphenquote*{italian}{hi}
^D
-[Para [Quoted SingleQuote [Span ("",[],[("lang","it")]) [Str "hi"]]]]
+[ Para
+ [ Quoted
+ SingleQuote
+ [ Span ( "" , [] , [ ( "lang" , "it" ) ] ) [ Str "hi" ] ]
+ ]
+]
```
```
@@ -25,10 +35,13 @@ Lorem ipsum
\blockquote{dolor sit amet}
consectetuer.
^D
-[Para [Str "Lorem",Space,Str "ipsum"]
-,BlockQuote
- [Para [Str "dolor",Space,Str "sit",Space,Str "amet"]]
-,Para [Str "consectetuer."]]
+[ Para [ Str "Lorem" , Space , Str "ipsum" ]
+, BlockQuote
+ [ Para
+ [ Str "dolor" , Space , Str "sit" , Space , Str "amet" ]
+ ]
+, Para [ Str "consectetuer." ]
+]
```
```
@@ -37,11 +50,26 @@ Lorem ipsum
\blockcquote[198]{Knu86}{dolor sit amet}
consectetuer.
^D
-[Para [Str "Lorem",Space,Str "ipsum"]
-,BlockQuote
- [Para [Str "dolor",Space,Str "sit",Space,Str "amet"]
- ,Para [Cite [Citation {citationId = "Knu86", citationPrefix = [], citationSuffix = [Str "198"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] []]]
-,Para [Str "consectetuer."]]
+[ Para [ Str "Lorem" , Space , Str "ipsum" ]
+, BlockQuote
+ [ Para
+ [ Str "dolor" , Space , Str "sit" , Space , Str "amet" ]
+ , Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = []
+ , citationSuffix = [ Str "198" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ []
+ ]
+ ]
+, Para [ Str "consectetuer." ]
+]
```
```
@@ -50,10 +78,15 @@ Lorem ipsum
\foreignblockquote{italian}{dolor sit amet}
consectetuer.
^D
-[Para [Str "Lorem",Space,Str "ipsum"]
-,BlockQuote
- [Div ("",[],[("lang","it")])
- [Para [Str "dolor",Space,Str "sit",Space,Str "amet"]]]
-,Para [Str "consectetuer."]]
+[ Para [ Str "Lorem" , Space , Str "ipsum" ]
+, BlockQuote
+ [ Div
+ ( "" , [] , [ ( "lang" , "it" ) ] )
+ [ Para
+ [ Str "dolor" , Space , Str "sit" , Space , Str "amet" ]
+ ]
+ ]
+, Para [ Str "consectetuer." ]
+]
```
diff --git a/test/command/4860.md b/test/command/4860.md
index 9198f68d7..65b6bf65f 100644
--- a/test/command/4860.md
+++ b/test/command/4860.md
@@ -5,5 +5,16 @@ This is broken_.
.. ***** REFERENCES FOLLOW *****
.. _broken: http://google.com
^D
-[Para [Str "This",Space,Str "is",Space,Link ("",[],[]) [Str "broken"] ("http://google.com",""),Str "."]]
+[ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Link
+ ( "" , [] , [] )
+ [ Str "broken" ]
+ ( "http://google.com" , "" )
+ , Str "."
+ ]
+]
```
diff --git a/test/command/4877.md b/test/command/4877.md
index 070687345..ba8acd122 100644
--- a/test/command/4877.md
+++ b/test/command/4877.md
@@ -2,12 +2,14 @@
% pandoc -f html -t native
My <script type="math/tex">\mathcal{D}</script>
^D
-[Plain [Str "My",Space,Math InlineMath "\\mathcal{D}"]]
+[ Plain
+ [ Str "My" , Space , Math InlineMath "\\mathcal{D}" ]
+]
```
```
% pandoc -f html -t native
<script type="math/tex; mode=display">\mathcal{D}</script>
^D
-[Plain [Math DisplayMath "\\mathcal{D}"]]
+[ Plain [ Math DisplayMath "\\mathcal{D}" ] ]
```
diff --git a/test/command/4919.md b/test/command/4919.md
index 029d1beff..b8f153848 100644
--- a/test/command/4919.md
+++ b/test/command/4919.md
@@ -7,8 +7,11 @@
V = \frac{K}{r^2}
^D
-[Div ("tgtmath",[],[])
- [BlockQuote
- [Para [Math DisplayMath "V = \\frac{K}{r^2}"]]]]
+[ Div
+ ( "tgtmath" , [] , [] )
+ [ BlockQuote
+ [ Para [ Math DisplayMath "V = \\frac{K}{r^2}" ] ]
+ ]
+]
```
diff --git a/test/command/4928.md b/test/command/4928.md
index d1e2b6db7..86699aab5 100644
--- a/test/command/4928.md
+++ b/test/command/4928.md
@@ -2,47 +2,220 @@
% pandoc -f latex -t native
\cites(Multiprenote)(multipostnote)[23][42]{Knu86}[65]{Nie72}
^D
-[Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "Multiprenote",Space,Str "23"], citationSuffix = [Str "42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [Str "65",Str ",",Space,Str "multipostnote"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cites(Multiprenote)(multipostnote)[23][42]{Knu86}[65]{Nie72}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = [ Str "Multiprenote" , Space , Str "23" ]
+ , citationSuffix = [ Str "42" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "Nie72"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "65" , Str "," , Space , Str "multipostnote" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex")
+ "\\cites(Multiprenote)(multipostnote)[23][42]{Knu86}[65]{Nie72}"
+ ]
+ ]
+]
```
```
% pandoc -f latex -t native
\cites(Multiprenote)()[23][42]{Knu86}[65]{Nie72}
^D
-[Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "Multiprenote",Space,Str "23"], citationSuffix = [Str "42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [Str "65"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cites(Multiprenote)()[23][42]{Knu86}[65]{Nie72}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = [ Str "Multiprenote" , Space , Str "23" ]
+ , citationSuffix = [ Str "42" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "Nie72"
+ , citationPrefix = []
+ , citationSuffix = [ Str "65" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex")
+ "\\cites(Multiprenote)()[23][42]{Knu86}[65]{Nie72}"
+ ]
+ ]
+]
```
```
% pandoc -f latex -t native
\cites()(multipostnote)[23][42]{Knu86}[65]{Nie72}
^D
-[Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "23"], citationSuffix = [Str "42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [Str "65",Str ",",Space,Str "multipostnote"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cites()(multipostnote)[23][42]{Knu86}[65]{Nie72}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = [ Str "23" ]
+ , citationSuffix = [ Str "42" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "Nie72"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "65" , Str "," , Space , Str "multipostnote" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex")
+ "\\cites()(multipostnote)[23][42]{Knu86}[65]{Nie72}"
+ ]
+ ]
+]
```
```
% pandoc -f latex -t native
\cites()()[23][42]{Knu86}[65]{Nie72}
^D
-[Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "23"], citationSuffix = [Str "42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [Str "65"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cites()()[23][42]{Knu86}[65]{Nie72}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = [ Str "23" ]
+ , citationSuffix = [ Str "42" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "Nie72"
+ , citationPrefix = []
+ , citationSuffix = [ Str "65" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex") "\\cites()()[23][42]{Knu86}[65]{Nie72}"
+ ]
+ ]
+]
```
```
% pandoc -f latex -t native
\cites(multipostnote)[23][42]{Knu86}[65]{Nie72}
^D
-[Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "23"], citationSuffix = [Str "42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [Str "65",Str ",",Space,Str "multipostnote"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cites(multipostnote)[23][42]{Knu86}[65]{Nie72}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = [ Str "23" ]
+ , citationSuffix = [ Str "42" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "Nie72"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "65" , Str "," , Space , Str "multipostnote" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex")
+ "\\cites(multipostnote)[23][42]{Knu86}[65]{Nie72}"
+ ]
+ ]
+]
```
```
% pandoc -f latex -t native
\cites(Multiprenote)(multipostnote){Knu86}
^D
-[Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "Multiprenote"], citationSuffix = [Str ",",Space,Str "multipostnote"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cites(Multiprenote)(multipostnote){Knu86}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix = [ Str "Multiprenote" ]
+ , citationSuffix = [ Str "," , Space , Str "multipostnote" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex")
+ "\\cites(Multiprenote)(multipostnote){Knu86}"
+ ]
+ ]
+]
```
```
% pandoc -f latex -t native
\footcites(Multiprenote)(multipostnote)[23][42]{Knu86}[65]{Nie72}
^D
-[Para [Note [Para [Cite [Citation {citationId = "Knu86", citationPrefix = [Str "Multiprenote",Space,Str "23"], citationSuffix = [Str "42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [Str "65",Str ",",Space,Str "multipostnote"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\footcites(Multiprenote)(multipostnote)[23][42]{Knu86}[65]{Nie72}"],Str "."]]]]
+[ Para
+ [ Note
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "Knu86"
+ , citationPrefix =
+ [ Str "Multiprenote" , Space , Str "23" ]
+ , citationSuffix = [ Str "42" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "Nie72"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "65"
+ , Str ","
+ , Space
+ , Str "multipostnote"
+ ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline
+ (Format "latex")
+ "\\footcites(Multiprenote)(multipostnote)[23][42]{Knu86}[65]{Nie72}"
+ ]
+ , Str "."
+ ]
+ ]
+ ]
+]
```
diff --git a/test/command/4933.md b/test/command/4933.md
index 4ab41e8a5..b8dedfa20 100644
--- a/test/command/4933.md
+++ b/test/command/4933.md
@@ -2,5 +2,9 @@
% pandoc -f latex -t native
\includegraphics{lalune}
^D
-[Para [Image ("",[],[]) [Str "image"] ("lalune.jpg","")]]
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Str "image" ] ( "lalune.jpg" , "" )
+ ]
+]
```
diff --git a/test/command/5014.md b/test/command/5014.md
index a3aae4151..8acc55750 100644
--- a/test/command/5014.md
+++ b/test/command/5014.md
@@ -13,18 +13,37 @@
</tbody>
</table>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Name"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Accounts"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault ) ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Name" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Accounts" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/5050.md b/test/command/5050.md
index 9c8fa1655..735156105 100644
--- a/test/command/5050.md
+++ b/test/command/5050.md
@@ -1,5 +1,5 @@
```
-pandoc -t rst
+% pandoc -t rst
<unknown>
x
^D
diff --git a/test/command/5079.md b/test/command/5079.md
index a43c9840a..3eb0628c5 100644
--- a/test/command/5079.md
+++ b/test/command/5079.md
@@ -10,16 +10,26 @@
</tbody>
</table>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault ) ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/5080.md b/test/command/5080.md
index c9e9a2971..2dfd0683a 100644
--- a/test/command/5080.md
+++ b/test/command/5080.md
@@ -1,12 +1,12 @@
```
-pandoc -t asciidoc
+% pandoc -t asciidoc
[foo *bar*]{.small .red key=val}
^D
[.small .red]#foo _bar_#
```
```
-pandoc -f html -t asciidoc
+% pandoc -f html -t asciidoc
<small>SMALL</small>
^D
[.small]#SMALL#
diff --git a/test/command/5099.md b/test/command/5099.md
index 19b067b79..d464f9c8a 100644
--- a/test/command/5099.md
+++ b/test/command/5099.md
@@ -2,12 +2,28 @@
% pandoc -t native
(@citation
^D
-[Para [Str "(",Cite [Citation {citationId = "citation", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0}] [Str "@citation"]]]
+[ Para
+ [ Str "("
+ , Cite
+ [ Citation
+ { citationId = "citation"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "@citation" ]
+ ]
+]
```
```
% pandoc -t native
('asd')
^D
-[Para [Str "(",Quoted SingleQuote [Str "asd"],Str ")"]]
+[ Para
+ [ Str "(" , Quoted SingleQuote [ Str "asd" ] , Str ")" ]
+]
```
diff --git a/test/command/512.md b/test/command/512.md
index b95921309..21b3ea9a7 100644
--- a/test/command/512.md
+++ b/test/command/512.md
@@ -8,7 +8,8 @@
__ link1_
__ link2_
^D
-<p><a href="http://www.example.com/">click here</a> or <a href="http://johnmacfarlane.net/pandoc/">click here</a></p>
+<p><a href="http://www.example.com/">click here</a> or <a
+href="http://johnmacfarlane.net/pandoc/">click here</a></p>
```
Multiple indirection:
diff --git a/test/command/5121.md b/test/command/5121.md
index 1ee6bda77..f1b972fb4 100644
--- a/test/command/5121.md
+++ b/test/command/5121.md
@@ -5,7 +5,8 @@
## Header 2
^D
<figure>
-<img src="./my-figure.jpg" width="500" alt="My caption" /><figcaption aria-hidden="true">My caption</figcaption>
+<img src="./my-figure.jpg" width="500" alt="My caption" />
+<figcaption aria-hidden="true">My caption</figcaption>
</figure>
## Header 2
diff --git a/test/command/5128.md b/test/command/5128.md
index 35866547e..261cea507 100644
--- a/test/command/5128.md
+++ b/test/command/5128.md
@@ -1,5 +1,5 @@
```
-pandoc -f org -t rst --columns=78
+% pandoc -f org -t rst --columns=78
| Option | Meaning |
|--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| =<= | Left alignment, additional characters are added to the right (default for string). |
diff --git a/test/command/5178.md b/test/command/5178.md
index 856f86abc..1c39b5071 100644
--- a/test/command/5178.md
+++ b/test/command/5178.md
@@ -7,8 +7,8 @@
unsafePerformIO main
^D
#+begin_src haskell -n 42
- main = putStrLn "Hello World!"
- unsafePerformIO main
+main = putStrLn "Hello World!"
+unsafePerformIO main
#+end_src
```
@@ -22,8 +22,19 @@
(+ 2 2)
#+end_src
^D
-[CodeBlock ("",["commonlisp","numberLines"],[("org-language","lisp"),("startFrom","20")]) "(+ 1 1)\n"
-,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"]
+[ CodeBlock
+ ( ""
+ , [ "commonlisp" , "numberLines" ]
+ , [ ( "org-language" , "lisp" ) , ( "startFrom" , "20" ) ]
+ )
+ "(+ 1 1)\n"
+, CodeBlock
+ ( ""
+ , [ "commonlisp" , "numberLines" , "continuedSourceBlock" ]
+ , [ ( "org-language" , "lisp" ) , ( "startFrom" , "10" ) ]
+ )
+ "(+ 2 2)\n"
+]
```
```
@@ -32,10 +43,10 @@
,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"]
^D
#+begin_src lisp -n 20
- (+ 1 1)
+(+ 1 1)
#+end_src
#+begin_src lisp +n 10
- (+ 2 2)
+(+ 2 2)
#+end_src
```
diff --git a/test/command/5182.md b/test/command/5182.md
index dc30a12ce..5898f9edf 100644
--- a/test/command/5182.md
+++ b/test/command/5182.md
@@ -1,6 +1,9 @@
```
-pandoc -f rst -t native
+% pandoc -f rst -t native
.. include:: command/5182.txt
^D
-[CodeBlock ("",["python","numberLines"],[]) "def func(x):\n return y"]
+[ CodeBlock
+ ( "" , [ "python" , "numberLines" ] , [] )
+ "def func(x):\n return y"
+]
```
diff --git a/test/command/5271.md b/test/command/5271.md
index 910ea5888..5df3958ef 100644
--- a/test/command/5271.md
+++ b/test/command/5271.md
@@ -7,6 +7,35 @@ abstract: |
It consists of two paragraphs.
...
^D
-Pandoc (Meta {unMeta = fromList [("abstract",MetaBlocks [Para [Str "This",Space,Str "is",Space,Str "the",Space,Str "abstract."],Para [Str "It",Space,Str "consists",Space,Str "of",Space,Str "two",Space,Str "paragraphs."]])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "abstract"
+ , MetaBlocks
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "abstract."
+ ]
+ , Para
+ [ Str "It"
+ , Space
+ , Str "consists"
+ , Space
+ , Str "of"
+ , Space
+ , Str "two"
+ , Space
+ , Str "paragraphs."
+ ]
+ ]
+ )
+ ]
+ }
+ []
```
diff --git a/test/command/5285.md b/test/command/5285.md
index 6085ec1a9..6c5b7f987 100644
--- a/test/command/5285.md
+++ b/test/command/5285.md
@@ -7,11 +7,12 @@
- b
^D
-[BulletList
- [[Para [Str "a"]
- ,Para [Str "b"]]
- ,[Para [Str "a"]]
- ,[Para [Str "b"]]]]
+[ BulletList
+ [ [ Para [ Str "a" ] , Para [ Str "b" ] ]
+ , [ Para [ Str "a" ] ]
+ , [ Para [ Str "b" ] ]
+ ]
+]
```
```
@@ -23,10 +24,9 @@
> foo
^D
-[BulletList
- [[Para [Str "foo"]
- ,Para [Str "foo"]]
- ,[Para [Str "foo"]
- ,BlockQuote
- [Para [Str "foo"]]]]]
+[ BulletList
+ [ [ Para [ Str "foo" ] , Para [ Str "foo" ] ]
+ , [ Para [ Str "foo" ] , BlockQuote [ Para [ Str "foo" ] ] ]
+ ]
+]
```
diff --git a/test/command/5321.md b/test/command/5321.md
index 83404632a..975852482 100644
--- a/test/command/5321.md
+++ b/test/command/5321.md
@@ -7,7 +7,11 @@
<graphic xlink:href="foo.png" xlink:alt-text="baz" />
</fig>
^D
-[Para [Image ("fig-1",[],[]) [Str "bar"] ("foo.png","fig:")]]
+[ Para
+ [ Image
+ ( "fig-1" , [] , [] ) [ Str "bar" ] ( "foo.png" , "fig:" )
+ ]
+]
```
```
@@ -20,5 +24,11 @@
<graphic xlink:href="foo.png" xlink:alt-text="baz" />
</fig>
^D
-[Para [Image ("fig-1",[],[]) [Str "foo",LineBreak,Str "bar"] ("foo.png","fig:")]]
+[ Para
+ [ Image
+ ( "fig-1" , [] , [] )
+ [ Str "foo" , LineBreak , Str "bar" ]
+ ( "foo.png" , "fig:" )
+ ]
+]
```
diff --git a/test/command/5360.md b/test/command/5360.md
index 924c1ea28..2250ba9f9 100644
--- a/test/command/5360.md
+++ b/test/command/5360.md
@@ -8,12 +8,15 @@
</table>
:::
^D
-[Div ("",["foo"],[])
- [RawBlock (Format "html") "<table>"
- ,RawBlock (Format "html") "<tr>"
- ,RawBlock (Format "html") "<td>"
- ,Plain [Str "hi"]
- ,RawBlock (Format "html") "</td>"
- ,RawBlock (Format "html") "</tr>"
- ,RawBlock (Format "html") "</table>"]]
+[ Div
+ ( "" , [ "foo" ] , [] )
+ [ RawBlock (Format "html") "<table>"
+ , RawBlock (Format "html") "<tr>"
+ , RawBlock (Format "html") "<td>"
+ , Plain [ Str "hi" ]
+ , RawBlock (Format "html") "</td>"
+ , RawBlock (Format "html") "</tr>"
+ , RawBlock (Format "html") "</table>"
+ ]
+]
```
diff --git a/test/command/5367.md b/test/command/5367.md
index a67011c2f..427aab913 100644
--- a/test/command/5367.md
+++ b/test/command/5367.md
@@ -21,7 +21,7 @@ dolly[^5]
hello\footnote{doc footnote}
\begin{longtable}[]{@{}
- >{\centering\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{0.17}}@{}}
+ >{\centering\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{0.1667}}@{}}
\caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline
\toprule
\begin{minipage}[b]{\linewidth}\centering
diff --git a/test/command/5368.md b/test/command/5368.md
index c755fde48..e8b54bf7b 100644
--- a/test/command/5368.md
+++ b/test/command/5368.md
@@ -12,12 +12,27 @@
Quux.
^D
-[OrderedList (1,Decimal,Period)
- [[Para [Str "foo"]
- ,Para [Image ("",[],[]) [Str "bar"] ("bar.png","fig:")]]
- ,[Para [Str "foo2"]
- ,Para [Image ("",[],[]) [Str "bar2"] ("bar2.png","fig:")]]
- ,[Para [Str "foo3"]
- ,Para [Image ("",[],[]) [Str "foo3"] ("foo3.png","fig:")]]]
-,Para [Str "Quux."]]
+[ OrderedList
+ ( 1 , Decimal , Period )
+ [ [ Para [ Str "foo" ]
+ , Para
+ [ Image
+ ( "" , [] , [] ) [ Str "bar" ] ( "bar.png" , "fig:" )
+ ]
+ ]
+ , [ Para [ Str "foo2" ]
+ , Para
+ [ Image
+ ( "" , [] , [] ) [ Str "bar2" ] ( "bar2.png" , "fig:" )
+ ]
+ ]
+ , [ Para [ Str "foo3" ]
+ , Para
+ [ Image
+ ( "" , [] , [] ) [ Str "foo3" ] ( "foo3.png" , "fig:" )
+ ]
+ ]
+ ]
+, Para [ Str "Quux." ]
+]
```
diff --git a/test/command/5410.md b/test/command/5410.md
index fee90a1a4..752da51c5 100644
--- a/test/command/5410.md
+++ b/test/command/5410.md
@@ -3,5 +3,5 @@
.ie n \{\
'br\}
^D
-[Para [LineBreak]]
+[ Para [ LineBreak ] ]
```
diff --git a/test/command/5416.md b/test/command/5416.md
index 619f4223e..d97f9881e 100644
--- a/test/command/5416.md
+++ b/test/command/5416.md
@@ -2,12 +2,12 @@
% pandoc -f dokuwiki -t native
{
^D
-[Para [Str "{"]]
+[ Para [ Str "{" ] ]
```
```
% pandoc -f dokuwiki -t native
{{
^D
-[Para [Str "{{"]]
+[ Para [ Str "{{" ] ]
```
diff --git a/test/command/5540.md b/test/command/5540.md
index 802a88d9d..41239020e 100644
--- a/test/command/5540.md
+++ b/test/command/5540.md
@@ -4,5 +4,11 @@
Stay pure!
\end{lstlisting}
^D
-[CodeBlock ("",["myfunnylanguage"],[("language","myfunnylanguage")]) "Stay pure!"]
+[ CodeBlock
+ ( ""
+ , [ "myfunnylanguage" ]
+ , [ ( "language" , "myfunnylanguage" ) ]
+ )
+ "Stay pure!"
+]
```
diff --git a/test/command/5549.md b/test/command/5549.md
index fa030d921..49d6f168f 100644
--- a/test/command/5549.md
+++ b/test/command/5549.md
@@ -4,6 +4,5 @@
[]
^D
-[Header 2 ("section",[],[]) []
-,Para [Str "[]"]]
+[ Header 2 ( "section" , [] , [] ) [] , Para [ Str "[]" ] ]
```
diff --git a/test/command/5619.md b/test/command/5619.md
index 776d57acc..0f612ea67 100644
--- a/test/command/5619.md
+++ b/test/command/5619.md
@@ -6,5 +6,32 @@
The caption. Here's what piggybacking on caption would look like {#fig:1}
^D
-[Para [Image ("test",[],[("width","1in")]) [Str "The",Space,Str "caption.",Space,Str "Here's",Space,Str "what",Space,Str "piggybacking",Space,Str "on",Space,Str "caption",Space,Str "would",Space,Str "look",Space,Str "like",Space,Str "{#fig:1}"] ("img1.jpg","fig:")]]
+[ Para
+ [ Image
+ ( "test" , [] , [ ( "width" , "1in" ) ] )
+ [ Str "The"
+ , Space
+ , Str "caption."
+ , Space
+ , Str "Here's"
+ , Space
+ , Str "what"
+ , Space
+ , Str "piggybacking"
+ , Space
+ , Str "on"
+ , Space
+ , Str "caption"
+ , Space
+ , Str "would"
+ , Space
+ , Str "look"
+ , Space
+ , Str "like"
+ , Space
+ , Str "{#fig:1}"
+ ]
+ ( "img1.jpg" , "fig:" )
+ ]
+]
```
diff --git a/test/command/5627.md b/test/command/5627.md
index 9910e76c5..dde4c99d6 100644
--- a/test/command/5627.md
+++ b/test/command/5627.md
@@ -20,8 +20,10 @@ Something
<li>Two <code>--&gt;something&lt;!--</code></li>
<li>Three</li>
</ol>
-<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
-<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
+<div class="sourceCode" id="cb1"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
+<div class="sourceCode" id="cb2"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
```
```
@@ -46,8 +48,10 @@ Something
<li><code>--&gt;something&lt;!--</code></li>
<li>bye <code>--&gt;something else&lt;!--</code></li>
</ul>
-<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
-<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
+<div class="sourceCode" id="cb1"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
+<div class="sourceCode" id="cb2"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
```
```
diff --git a/test/command/5642.md b/test/command/5642.md
index cd60df812..120a88ada 100644
--- a/test/command/5642.md
+++ b/test/command/5642.md
@@ -3,6 +3,7 @@
![test](foo){aria-describedby="barbaz"}
^D
<figure>
-<img src="foo" aria-describedby="barbaz" alt="test" /><figcaption aria-hidden="true">test</figcaption>
+<img src="foo" aria-describedby="barbaz" alt="test" />
+<figcaption aria-hidden="true">test</figcaption>
</figure>
```
diff --git a/test/command/5650.md b/test/command/5650.md
index a2dd215bc..1e96aeaa4 100644
--- a/test/command/5650.md
+++ b/test/command/5650.md
@@ -5,7 +5,8 @@ a
b
```
^D
-<div class="sourceCode" id="foocb1"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1" aria-hidden="true" tabindex="-1"></a>a</span>
+<div class="sourceCode" id="foocb1"><pre class="sourceCode
+haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1" aria-hidden="true" tabindex="-1"></a>a</span>
<span id="foocb1-2"><a href="#foocb1-2" aria-hidden="true" tabindex="-1"></a>b</span></code></pre></div>
````
@@ -16,7 +17,8 @@ a
b
```
^D
-<div class="sourceCode" id="foobar"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1" aria-hidden="true" tabindex="-1"></a>a</span>
+<div class="sourceCode" id="foobar"><pre class="sourceCode
+haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1" aria-hidden="true" tabindex="-1"></a>a</span>
<span id="foobar-2"><a href="#foobar-2" aria-hidden="true" tabindex="-1"></a>b</span></code></pre></div>
````
diff --git a/test/command/5655.md b/test/command/5655.md
index 692009562..72ad46e5e 100644
--- a/test/command/5655.md
+++ b/test/command/5655.md
@@ -2,13 +2,19 @@
% pandoc --webtex
$T_n={n+1 \choose 2}$
^D
-<p><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?%5Ctextstyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D" alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math inline" /></p>
+<p><img style="vertical-align:middle"
+src="https://latex.codecogs.com/png.latex?%5Ctextstyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D"
+alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math
+inline" /></p>
````
````
% pandoc --webtex
$$T_n={n+1 \choose 2}$$
^D
-<p><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?%5Cdisplaystyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D" alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math display" /></p>
+<p><img style="vertical-align:middle"
+src="https://latex.codecogs.com/png.latex?%5Cdisplaystyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D"
+alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math
+display" /></p>
````
diff --git a/test/command/5682.md b/test/command/5682.md
index 6d3b9fa0c..3ce81afb8 100644
--- a/test/command/5682.md
+++ b/test/command/5682.md
@@ -3,6 +3,6 @@
\newcommand{\ittakestwo}[2][defaultone]{#2}
\ittakestwo[to]{tango}
^D
-[Para [Str "tango"]]
+[ Para [ Str "tango" ] ]
```
diff --git a/test/command/5686.md b/test/command/5686.md
index 1c18109c3..d669ae49b 100644
--- a/test/command/5686.md
+++ b/test/command/5686.md
@@ -4,6 +4,28 @@ FOO\t0BAR
This part does not make it to the html output.
^D
-[Para [Str "FOO",RawInline (Format "tex") "\\t0",Str "BAR"]
-,Para [Str "This",Space,Str "part",Space,Str "does",Space,Str "not",Space,Str "make",Space,Str "it",Space,Str "to",Space,Str "the",Space,Str "html",Space,Str "output."]]
+[ Para
+ [ Str "FOO" , RawInline (Format "tex") "\\t0" , Str "BAR" ]
+, Para
+ [ Str "This"
+ , Space
+ , Str "part"
+ , Space
+ , Str "does"
+ , Space
+ , Str "not"
+ , Space
+ , Str "make"
+ , Space
+ , Str "it"
+ , Space
+ , Str "to"
+ , Space
+ , Str "the"
+ , Space
+ , Str "html"
+ , Space
+ , Str "output."
+ ]
+]
```
diff --git a/test/command/5700.md b/test/command/5700.md
index 64f99c862..eae3663e5 100644
--- a/test/command/5700.md
+++ b/test/command/5700.md
@@ -1,6 +1,39 @@
```
% pandoc -t native -s --metadata-file command/5700-metadata-file-1.yml --metadata-file command/5700-metadata-file-2.yml
^D
-Pandoc (Meta {unMeta = fromList [("desc",MetaInlines [Str "Both",Space,Str "of",Space,Str "these",Space,Str "files",Space,Str "should",Space,Str "be",Space,Str "loaded."]),("title",MetaInlines [Str "Multiple",Space,Str "metadata",Space,Str "files",Space,Str "test"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "desc"
+ , MetaInlines
+ [ Str "Both"
+ , Space
+ , Str "of"
+ , Space
+ , Str "these"
+ , Space
+ , Str "files"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "loaded."
+ ]
+ )
+ , ( "title"
+ , MetaInlines
+ [ Str "Multiple"
+ , Space
+ , Str "metadata"
+ , Space
+ , Str "files"
+ , Space
+ , Str "test"
+ ]
+ )
+ ]
+ }
+ []
```
diff --git a/test/command/5708.md b/test/command/5708.md
index e5ba72c69..e97edcf30 100644
--- a/test/command/5708.md
+++ b/test/command/5708.md
@@ -4,19 +4,34 @@
| 123456 | :math:`a + b` |
+--------+----------------+
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.125)
- ,(AlignDefault,ColWidth 0.2361111111111111)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123456"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "a + b"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidth 0.125 )
+ , ( AlignDefault , ColWidth 0.2361111111111111 )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "123456" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "a + b" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/5711.md b/test/command/5711.md
index 5758138f9..131173079 100644
--- a/test/command/5711.md
+++ b/test/command/5711.md
@@ -7,16 +7,26 @@
\end{tabular}
\end{document}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "d",LineBreak,Str "e"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignCenter , ColWidthDefault ) ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "d" , LineBreak , Str "e" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/5714.md b/test/command/5714.md
index 48e25c1a2..c874f1af7 100644
--- a/test/command/5714.md
+++ b/test/command/5714.md
@@ -6,8 +6,11 @@ b_
# hi _c
c
^D
-[Header 1 ("hi-_a",[],[]) [Str "hi",Space,Str "_a"]
-,Para [Str "b_"]
-,Header 1 ("hi-_c",[],[]) [Str "hi",Space,Str "_c"]
-,Para [Str "c"]]
+[ Header
+ 1 ( "hi-_a" , [] , [] ) [ Str "hi" , Space , Str "_a" ]
+, Para [ Str "b_" ]
+, Header
+ 1 ( "hi-_c" , [] , [] ) [ Str "hi" , Space , Str "_c" ]
+, Para [ Str "c" ]
+]
```
diff --git a/test/command/5753.md b/test/command/5753.md
index 6e761e4f6..686c8f495 100644
--- a/test/command/5753.md
+++ b/test/command/5753.md
@@ -10,6 +10,10 @@
end
^D
-[Para [Math DisplayMath "q_3\n+ 4",Math DisplayMath "- 5 +\nq_5"]
-,Para [Str "end"]]
+[ Para
+ [ Math DisplayMath "q_3\n+ 4"
+ , Math DisplayMath "- 5 +\nq_5"
+ ]
+, Para [ Str "end" ]
+]
```
diff --git a/test/command/5795.md b/test/command/5795.md
index 0d5154b4d..8271e1232 100644
--- a/test/command/5795.md
+++ b/test/command/5795.md
@@ -9,7 +9,12 @@
% pandoc -f html -t native
<dfn class="dfn" id="foo" title="bax"><span>foo</span></dfn>
^D
-[Plain [Span ("foo",["dfn","dfn"],[("title","bax")]) [Span ("",[],[]) [Str "foo"]]]]
+[ Plain
+ [ Span
+ ( "foo" , [ "dfn" , "dfn" ] , [ ( "title" , "bax" ) ] )
+ [ Span ( "" , [] , [] ) [ Str "foo" ] ]
+ ]
+]
```
```
diff --git a/test/command/5797.md b/test/command/5797.md
index 0509a341c..4be51c629 100644
--- a/test/command/5797.md
+++ b/test/command/5797.md
@@ -9,7 +9,7 @@
% pandoc -f html -t native
<mark>Ctrl-C</mark>
^D
-[Plain [Span ("",["mark"],[]) [Str "Ctrl-C"]]]
+[ Plain [ Span ( "" , [ "mark" ] , [] ) [ Str "Ctrl-C" ] ] ]
```
```
diff --git a/test/command/5805.md b/test/command/5805.md
index 8bfc75f2d..03c72bd75 100644
--- a/test/command/5805.md
+++ b/test/command/5805.md
@@ -9,7 +9,7 @@
% pandoc -f html -t native
<kbd>Ctrl-C</kbd>
^D
-[Plain [Span ("",["kbd"],[]) [Str "Ctrl-C"]]]
+[ Plain [ Span ( "" , [ "kbd" ] , [] ) [ Str "Ctrl-C" ] ] ]
```
```
diff --git a/test/command/5813.md b/test/command/5813.md
index 927a161ed..51f774524 100644
--- a/test/command/5813.md
+++ b/test/command/5813.md
@@ -2,5 +2,6 @@
% pandoc -f gfm
### Jekyll Plugins & Gems :gem:
^D
-<h3 id="jekyll-plugins--gems-gem">Jekyll Plugins &amp; Gems <span class="emoji" data-emoji="gem">💎</span></h3>
+<h3 id="jekyll-plugins--gems-gem">Jekyll Plugins &amp; Gems <span
+class="emoji" data-emoji="gem">💎</span></h3>
```
diff --git a/test/command/5845.md b/test/command/5845.md
index aa09b08e7..aac73cf47 100644
--- a/test/command/5845.md
+++ b/test/command/5845.md
@@ -2,7 +2,7 @@
% pandoc -t native
\parbox{1em}{#1}
^D
-[Para [Str "\\parbox{1em}{#1}"]]
+[ Para [ Str "\\parbox{1em}{#1}" ] ]
```
```
@@ -11,6 +11,15 @@
Hello World
^D
-[Para [Str "\\newcommand{",RawInline (Format "tex") "\\highlight",Str "}[1]{\\colorbox{yellow}{\\parbox{",RawInline (Format "tex") "\\dimexpr",RawInline (Format "tex") "\\linewidth-2",RawInline (Format "tex") "\\fboxsep",Str "}{#1}}"]
-,Para [Str "Hello",Space,Str "World"]]
+[ Para
+ [ Str "\\newcommand{"
+ , RawInline (Format "tex") "\\highlight"
+ , Str "}[1]{\\colorbox{yellow}{\\parbox{"
+ , RawInline (Format "tex") "\\dimexpr"
+ , RawInline (Format "tex") "\\linewidth-2"
+ , RawInline (Format "tex") "\\fboxsep"
+ , Str "}{#1}}"
+ ]
+, Para [ Str "Hello" , Space , Str "World" ]
+]
```
diff --git a/test/command/5878.md b/test/command/5878.md
index 9e0f6bde3..06ff29b76 100644
--- a/test/command/5878.md
+++ b/test/command/5878.md
@@ -3,5 +3,13 @@
Zozime^[],
Synésius^[]
^D
-[Para [Str "Zozime",Note [Para []],Str ",",SoftBreak,Str "Syn\233sius",Note [Para []]]]
+[ Para
+ [ Str "Zozime"
+ , Note [ Para [] ]
+ , Str ","
+ , SoftBreak
+ , Str "Syn\233sius"
+ , Note [ Para [] ]
+ ]
+]
```
diff --git a/test/command/5986.md b/test/command/5986.md
index ed8dd30c9..aaa1e6568 100644
--- a/test/command/5986.md
+++ b/test/command/5986.md
@@ -6,8 +6,9 @@
<p><span id="nav.xhtml"></span></p>
<nav epub:type="landmarks" id="landmarks" hidden="hidden">
<ol>
-<li><a href="text/title_page.xhtml">Title Page</a></li>
-<li><a href="#nav.xhtml#toc">Table of Contents</a></li>
+<li><a href="text/title_page.xhtml" class="titlepage">Title
+Page</a></li>
+<li><a href="#nav.xhtml#toc" class="toc">Table of Contents</a></li>
</ol>
</nav>
<p><span id="ch001.xhtml"></span></p>
diff --git a/test/command/6009.md b/test/command/6009.md
index ed6b46cbb..b2785dd36 100644
--- a/test/command/6009.md
+++ b/test/command/6009.md
@@ -9,10 +9,11 @@ x
y
^D
-[RawBlock (Format "html") "<tr>"
-,RawBlock (Format "html") "<td>"
-,RawBlock (Format "html") "</td>"
-,RawBlock (Format "html") "</tr>"
-,Para [Str "x"]
-,CodeBlock ("",[],[]) "y"]
+[ RawBlock (Format "html") "<tr>"
+, RawBlock (Format "html") "<td>"
+, RawBlock (Format "html") "</td>"
+, RawBlock (Format "html") "</tr>"
+, Para [ Str "x" ]
+, CodeBlock ( "" , [] , [] ) "y"
+]
```
diff --git a/test/command/6026.md b/test/command/6026.md
index 5e18a5f42..ae3bfb45c 100644
--- a/test/command/6026.md
+++ b/test/command/6026.md
@@ -4,8 +4,34 @@
@https://openreview.net/forum?id=HkwoSDPgg
^D
-[Para [Cite [Citation {citationId = "https://openreview.net/forum?id=HkwoSDPgg", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0}] [Str "@https://openreview.net/forum?id=HkwoSDPgg"]]
-,Para [Cite [Citation {citationId = "https://openreview.net/forum?id", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 2, citationHash = 0}] [Str "@https://openreview.net/forum?id"],Str "=HkwoSDPgg"]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "https://openreview.net/forum?id=HkwoSDPgg"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "@https://openreview.net/forum?id=HkwoSDPgg" ]
+ ]
+, Para
+ [ Cite
+ [ Citation
+ { citationId = "https://openreview.net/forum?id"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 2
+ , citationHash = 0
+ }
+ ]
+ [ Str "@https://openreview.net/forum?id" ]
+ , Str "=HkwoSDPgg"
+ ]
+]
```
```
% pandoc -t markdown
diff --git a/test/command/6034.md b/test/command/6034.md
index af41f2d50..eb8999d11 100644
--- a/test/command/6034.md
+++ b/test/command/6034.md
@@ -7,5 +7,8 @@
\end{overpic}
\end{figure*}
^D
-[RawBlock (Format "latex") "\\begin{figure*}\n \\centering\n \\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}\n\\end{figure*}"]
+[ RawBlock
+ (Format "latex")
+ "\\begin{figure*}\n \\centering\n \\begin{overpic}{test_pic}\n \\put (70,80) {Caption}\n \\end{overpic}\n\\end{figure*}"
+]
```
diff --git a/test/command/6114.md b/test/command/6114.md
index e0f2d675b..83d2869bb 100644
--- a/test/command/6114.md
+++ b/test/command/6114.md
@@ -3,5 +3,11 @@
\includegraphics[width=.85\textwidth]%
{pic_M87star.pdf}
^D
-[Para [Image ("",[],[("width",".85\\textwidth")]) [Str "image"] ("pic_M87star.pdf","")]]
+[ Para
+ [ Image
+ ( "" , [] , [ ( "width" , ".85\\textwidth" ) ] )
+ [ Str "image" ]
+ ( "pic_M87star.pdf" , "" )
+ ]
+]
```
diff --git a/test/command/6137.md b/test/command/6137.md
index 9081f775f..a58b4876f 100644
--- a/test/command/6137.md
+++ b/test/command/6137.md
@@ -15,33 +15,143 @@ This reference to Figure \ref{fig:label} works fine.
\caption{A numbered caption, if I use pandoc-crossref.}\label{fig:label}
\end{figure}
^D
-[Para [Str "This",Space,Str "reference",Space,Str "to",Space,Str "Table",Space,Link ("",[],[("reference-type","ref"),("reference","tbl:label")]) [Str "1"] ("#tbl:label",""),Space,Str "doesn\8217t",Space,Str "work."]
-,Div ("tbl:label",[],[])
- [Table ("",[],[]) (Caption Nothing
- [Plain [Str "This",Space,Str "caption",Space,Str "has",Space,Str "no",Space,Str "number."]])
- [(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\8212\8212\8211"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\8212\8212\8211"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\8212\8212\8211"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\8212\8212\8211"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\8212\8212\8211"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\8212\8212\8211"]]]])]
- (TableFoot ("",[],[])
- [])]
-,Para [Str "This",Space,Str "reference",Space,Str "to",Space,Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:label")]) [Str "1"] ("#fig:label",""),Space,Str "works",Space,Str "fine."]
-,Para [Image ("fig:label",[],[("width","\\textwidth")]) [Str "A",Space,Str "numbered",Space,Str "caption,",Space,Str "if",Space,Str "I",Space,Str "use",Space,Str "pandoc-crossref."] ("example.png","fig:")]]
+[ Para
+ [ Str "This"
+ , Space
+ , Str "reference"
+ , Space
+ , Str "to"
+ , Space
+ , Str "Table"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "tbl:label" )
+ ]
+ )
+ [ Str "1" ]
+ ( "#tbl:label" , "" )
+ , Space
+ , Str "doesn\8217t"
+ , Space
+ , Str "work."
+ ]
+, Div
+ ( "tbl:label" , [] , [] )
+ [ Table
+ ( "" , [] , [] )
+ (Caption
+ Nothing
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "caption"
+ , Space
+ , Str "has"
+ , Space
+ , Str "no"
+ , Space
+ , Str "number."
+ ]
+ ])
+ [ ( AlignLeft , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ , ( AlignRight , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\8212\8212\8211" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\8212\8212\8211" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\8212\8212\8211" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\8212\8212\8211" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\8212\8212\8211" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\8212\8212\8211" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+ ]
+, Para
+ [ Str "This"
+ , Space
+ , Str "reference"
+ , Space
+ , Str "to"
+ , Space
+ , Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:label" )
+ ]
+ )
+ [ Str "1" ]
+ ( "#fig:label" , "" )
+ , Space
+ , Str "works"
+ , Space
+ , Str "fine."
+ ]
+, Para
+ [ Image
+ ( "fig:label" , [] , [ ( "width" , "\\textwidth" ) ] )
+ [ Str "A"
+ , Space
+ , Str "numbered"
+ , Space
+ , Str "caption,"
+ , Space
+ , Str "if"
+ , Space
+ , Str "I"
+ , Space
+ , Str "use"
+ , Space
+ , Str "pandoc-crossref."
+ ]
+ ( "example.png" , "fig:" )
+ ]
+]
```
diff --git a/test/command/6288.md b/test/command/6288.md
index 29aff0fb9..042e0a72e 100644
--- a/test/command/6288.md
+++ b/test/command/6288.md
@@ -4,5 +4,7 @@
<label>I</label><title>Introduction</title>
</sec>
^D
-[Header 1 ("",[],[]) [Str "I.",Space,Str "Introduction"]]
+[ Header
+ 1 ( "" , [] , [] ) [ Str "I." , Space , Str "Introduction" ]
+]
```
diff --git a/test/command/6324.md b/test/command/6324.md
index 0fe57ce65..51a22480c 100644
--- a/test/command/6324.md
+++ b/test/command/6324.md
@@ -12,6 +12,15 @@ Me
\maketitle
\end{document}
^D
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "Me"]]),("title",MetaInlines [Str "Document",Space,Str "title"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "author" , MetaList [ MetaInlines [ Str "Me" ] ] )
+ , ( "title"
+ , MetaInlines [ Str "Document" , Space , Str "title" ]
+ )
+ ]
+ }
+ []
```
diff --git a/test/command/6658.md b/test/command/6658.md
index 96700c8fe..c4e5dbf3a 100644
--- a/test/command/6658.md
+++ b/test/command/6658.md
@@ -1,5 +1,5 @@
```
-pandoc -f latex -t html
+% pandoc -f latex -t html
\num{12345,67890}
\num{1+-2i}
diff --git a/test/command/6699.md b/test/command/6699.md
index 347e04577..6dfea4ded 100644
--- a/test/command/6699.md
+++ b/test/command/6699.md
@@ -7,7 +7,9 @@ title
text
^D
-[Header 1 ("title",["allowframebreaks"],[]) [Str "title"]
-,Para [Str "text"]]
+[ Header
+ 1 ( "title" , [ "allowframebreaks" ] , [] ) [ Str "title" ]
+, Para [ Str "text" ]
+]
```
diff --git a/test/command/6709.md b/test/command/6709.md
index d6d514552..419895000 100644
--- a/test/command/6709.md
+++ b/test/command/6709.md
@@ -7,5 +7,7 @@ if true; then
fi
```
^D
-[CodeBlock ("",[],[]) "if true; then\n echo \"yup\"\nfi"]
+[ CodeBlock
+ ( "" , [] , [] ) "if true; then\n echo \"yup\"\nfi"
+]
````
diff --git a/test/command/6719.md b/test/command/6719.md
index 788e7b617..23701c066 100644
--- a/test/command/6719.md
+++ b/test/command/6719.md
@@ -4,7 +4,7 @@
<emphasis>emphasized </emphasis>text
</para>
^D
-[Para [Emph [Str "emphasized"],Space,Str "text"]]
+[ Para [ Emph [ Str "emphasized" ] , Space , Str "text" ] ]
```
```
@@ -13,6 +13,6 @@
<italic> hi </italic>there
</p>
^D
-[Para [Emph [Str "hi"],Space,Str "there"]]
+[ Para [ Emph [ Str "hi" ] , Space , Str "there" ] ]
```
diff --git a/test/command/6739.md b/test/command/6739.md
index 7c9ed24a2..ff2d4bc75 100644
--- a/test/command/6739.md
+++ b/test/command/6739.md
@@ -4,7 +4,8 @@
* `--argA | --argB` This item has a pipe character
^D
<ul>
-<li><code>--argument</code> This item does not have a pipe character</li>
+<li><code>--argument</code> This item does not have a pipe
+character</li>
<li><code>--argA | --argB</code> This item has a pipe character</li>
</ul>
```
diff --git a/test/command/6741.md b/test/command/6741.md
index 5fcc0700e..7764055a1 100644
--- a/test/command/6741.md
+++ b/test/command/6741.md
@@ -35,13 +35,13 @@ references:
type: article-journal
- author:
- family: Suzuki
- given: Y
+ given: Y.
- family: Minami
- given: T
+ given: T.
- family: Laeng
- given: B
+ given: B.
- family: Nakauchi
- given: S
+ given: S.
container-title: Acta Psychologica
DOI: 10.1016/j.actpsy.2019.102882
id: suzuki2019
diff --git a/test/command/6791.md b/test/command/6791.md
index 478647721..c35c04eb3 100644
--- a/test/command/6791.md
+++ b/test/command/6791.md
@@ -14,19 +14,34 @@
</tgroup>
</informaltable>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.25)
- ,(AlignDefault,ColWidth 0.25)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "2"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidth 0.25 )
+ , ( AlignDefault , ColWidth 0.25 )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "1" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/6792.md b/test/command/6792.md
index 3d31942fe..253009d46 100644
--- a/test/command/6792.md
+++ b/test/command/6792.md
@@ -22,7 +22,7 @@
<style:font-face style:name="Courier New" style:font-family-generic="modern" style:font-pitch="fixed" svg:font-family="'Courier New'" />
</office:font-face-decls>
<office:automatic-styles>
- <style:style style:name="fr2" style:family="graphic" style:parent-style-name="Formula"><style:graphic-properties style:vertical-pos="middle" style:vertical-rel="paragraph-content" style:horizontal-pos="center" style:horizontal-rel="paragraph-content" style:wrap="none" /></style:style>
+ <style:style style:name="fr2" style:family="graphic" style:parent-style-name="Formula"><style:graphic-properties style:vertical-pos="middle" style:vertical-rel="text" style:horizontal-pos="center" style:horizontal-rel="paragraph-content" style:wrap="none" /></style:style>
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Formula"><style:graphic-properties style:vertical-pos="middle" style:vertical-rel="text" /></style:style>
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Table_20_Contents">
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false" />
diff --git a/test/command/6802.md b/test/command/6802.md
index 8f56f0e43..5e66c1d1b 100644
--- a/test/command/6802.md
+++ b/test/command/6802.md
@@ -2,8 +2,7 @@
% pandoc -f latex -t native
\blockquote[test][]{quote}
^D
-[BlockQuote
- [Para [Str "quote"]
- ,Para [Str "test"]]]
+[ BlockQuote [ Para [ Str "quote" ] , Para [ Str "test" ] ]
+]
```
diff --git a/test/command/6836.md b/test/command/6836.md
index c35048045..b8e668a62 100644
--- a/test/command/6836.md
+++ b/test/command/6836.md
@@ -1,5 +1,5 @@
```
-pandoc -t native
+% pandoc -t native
[@buchanan]
(@foo)
@@ -8,10 +8,34 @@ See @foo.
[@buchanan]
^D
-[Para [Cite [Citation {citationId = "buchanan", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "[@buchanan]"]]
-,OrderedList (1,Example,TwoParens)
- [[]]
-,Para [Str "See",Space,Str "1."]
-,Para [Cite [Citation {citationId = "buchanan", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 2, citationHash = 0}] [Str "[@buchanan]"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "buchanan"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@buchanan]" ]
+ ]
+, OrderedList ( 1 , Example , TwoParens ) [ [] ]
+, Para [ Str "See" , Space , Str "1." ]
+, Para
+ [ Cite
+ [ Citation
+ { citationId = "buchanan"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 2
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@buchanan]" ]
+ ]
+]
```
diff --git a/test/command/6844.md b/test/command/6844.md
index 0431cfed8..e7af336a3 100644
--- a/test/command/6844.md
+++ b/test/command/6844.md
@@ -5,7 +5,7 @@ Negative numbers with siunitx
\SI{123}{\celsius}
^D
-[Para [Str "123\160\176C"]]
+[ Para [ Str "123\160\176C" ] ]
```
```
@@ -13,7 +13,7 @@ Negative numbers with siunitx
\SI{-123}{\celsius}
^D
-[Para [Str "\8722\&123\160\176C"]]
+[ Para [ Str "\8722\&123\160\176C" ] ]
```
```
@@ -21,7 +21,7 @@ Negative numbers with siunitx
\SI{+123}{\celsius}
^D
-[Para [Str "123\160\176C"]]
+[ Para [ Str "123\160\176C" ] ]
```
diff --git a/test/command/6869.md b/test/command/6869.md
index cd8ff9ff4..cbef00f68 100644
--- a/test/command/6869.md
+++ b/test/command/6869.md
@@ -2,5 +2,18 @@
% pandoc -f latex -t native
\cite[„Aber“]{key}
^D
-[Para [Cite [Citation {citationId = "key", citationPrefix = [], citationSuffix = [Str "\8222Aber\8220"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[\8222Aber\8220]{key}"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "key"
+ , citationPrefix = []
+ , citationSuffix = [ Str "\8222Aber\8220" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline (Format "latex") "\\cite[\8222Aber\8220]{key}" ]
+ ]
+]
```
diff --git a/test/command/6873.md b/test/command/6873.md
index d747a47ff..20667d64c 100644
--- a/test/command/6873.md
+++ b/test/command/6873.md
@@ -3,5 +3,33 @@
\cite[„Etwas […{]} auslassen“]{key}
^D
[WARNING] Citeproc: citation key not found
-[Para [Cite [Citation {citationId = "key", citationPrefix = [], citationSuffix = [Str "\8222Etwas",Space,Str "[\8230",Span ("",[],[]) [Str "]"],Space,Str "auslassen\8220"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "(",Strong [Str "key?"],Str "\8222Etwas",Space,Str "[\8230",Span ("",[],[]) [Str "]"],Space,Str "auslassen\8220)"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "key"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "\8222Etwas"
+ , Space
+ , Str "[\8230"
+ , Span ( "" , [] , [] ) [ Str "]" ]
+ , Space
+ , Str "auslassen\8220"
+ ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ Str "("
+ , Strong [ Str "key?" ]
+ , Str "\8222Etwas"
+ , Space
+ , Str "[\8230"
+ , Span ( "" , [] , [] ) [ Str "]" ]
+ , Space
+ , Str "auslassen\8220)"
+ ]
+ ]
+]
```
diff --git a/test/command/6890.md b/test/command/6890.md
index e36c12771..579342980 100644
--- a/test/command/6890.md
+++ b/test/command/6890.md
@@ -27,10 +27,116 @@ Some text.[^1]
[^1]: @fruchtel-sozialer-2013a
^D
-[Para [Cite [Citation {citationId = "fruchtel-sozialer-2013a", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0}] [Str "Fr\252chtel,",Space,Str "Budde,",Space,Str "and",Space,Str "Cyprian",Space,Str "(2013)"]]
-,Para [Str "Some",Space,Str "text.",Note [Para [Cite [Citation {citationId = "fruchtel-sozialer-2013a", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 2, citationHash = 0}] [Str "Fr\252chtel,",Space,Str "Budde,",Space,Str "and",Space,Str "Cyprian",Space,Str "(2013)"]]]]
-,Div ("refs",["references","csl-bib-body","hanging-indent"],[])
- [Div ("ref-fruchtel-sozialer-2013a",["csl-entry"],[])
- [Para [Str "Fr\252chtel,",Space,Str "Frank,",Space,Str "Wolfgang",Space,Str "Budde,",Space,Str "and",Space,Str "Gudrun",Space,Str "Cyprian.",Space,Str "2013.",Space,Emph [Str "Sozialer",Space,Str "Raum",Space,Str "und",Space,Str "Soziale",Space,Str "Arbeit",Space,Str "Fieldbook:",Space,Str "Methoden",Space,Str "und",Space,Str "Techniken"],Str ".",Space,Str "3rd",Space,Str "ed.",Space,Str "Wiesbaden,",Space,Str "Germany:",Space,Str "Springer",Space,Str "VS."]]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "fruchtel-sozialer-2013a"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "Fr\252chtel,"
+ , Space
+ , Str "Budde,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "Cyprian"
+ , Space
+ , Str "(2013)"
+ ]
+ ]
+, Para
+ [ Str "Some"
+ , Space
+ , Str "text."
+ , Note
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "fruchtel-sozialer-2013a"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 2
+ , citationHash = 0
+ }
+ ]
+ [ Str "Fr\252chtel,"
+ , Space
+ , Str "Budde,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "Cyprian"
+ , Space
+ , Str "(2013)"
+ ]
+ ]
+ ]
+ ]
+, Div
+ ( "refs"
+ , [ "references" , "csl-bib-body" , "hanging-indent" ]
+ , []
+ )
+ [ Div
+ ( "ref-fruchtel-sozialer-2013a" , [ "csl-entry" ] , [] )
+ [ Para
+ [ Str "Fr\252chtel,"
+ , Space
+ , Str "Frank,"
+ , Space
+ , Str "Wolfgang"
+ , Space
+ , Str "Budde,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "Gudrun"
+ , Space
+ , Str "Cyprian."
+ , Space
+ , Str "2013."
+ , Space
+ , Emph
+ [ Str "Sozialer"
+ , Space
+ , Str "Raum"
+ , Space
+ , Str "und"
+ , Space
+ , Str "Soziale"
+ , Space
+ , Str "Arbeit"
+ , Space
+ , Str "Fieldbook:"
+ , Space
+ , Str "Methoden"
+ , Space
+ , Str "und"
+ , Space
+ , Str "Techniken"
+ ]
+ , Str "."
+ , Space
+ , Str "3rd"
+ , Space
+ , Str "ed."
+ , Space
+ , Str "Wiesbaden,"
+ , Space
+ , Str "Germany:"
+ , Space
+ , Str "Springer"
+ , Space
+ , Str "VS."
+ ]
+ ]
+ ]
+]
```
diff --git a/test/command/6970.md b/test/command/6970.md
new file mode 100644
index 000000000..45d9b76bd
--- /dev/null
+++ b/test/command/6970.md
@@ -0,0 +1,12 @@
+```
+% pandoc -f html -t native
+<a name="foo" class="bar baz" href='https://example.com' target='_blank'>https://example.com<a>
+^D
+[ Plain
+ [ Link
+ ( "foo" , [ "bar" , "baz" ] , [ ( "target" , "_blank" ) ] )
+ [ Str "https://example.com" ]
+ ( "https://example.com" , "" )
+ ]
+]
+```
diff --git a/test/command/6993.md b/test/command/6993.md
index b7f7f5384..d2baa2748 100644
--- a/test/command/6993.md
+++ b/test/command/6993.md
@@ -2,20 +2,32 @@
% pandoc -f mediawiki -t native
'''Should be bold '''
^D
-[Para [Strong [Str "Should",Space,Str "be",Space,Str "bold"]]]
+[ Para
+ [ Strong
+ [ Str "Should" , Space , Str "be" , Space , Str "bold" ]
+ ]
+]
```
```
% pandoc -f mediawiki -t native
''' Should be bold'''
^D
-[Para [Strong [Str "Should",Space,Str "be",Space,Str "bold"]]]
+[ Para
+ [ Strong
+ [ Str "Should" , Space , Str "be" , Space , Str "bold" ]
+ ]
+]
```
```
% pandoc -f mediawiki -t native
'' Should be emph ''
^D
-[Para [Emph [Str "Should",Space,Str "be",Space,Str "emph"]]]
+[ Para
+ [ Emph
+ [ Str "Should" , Space , Str "be" , Space , Str "emph" ]
+ ]
+]
```
diff --git a/test/command/7003.md b/test/command/7003.md
index 1f6275943..5f88a58a6 100644
--- a/test/command/7003.md
+++ b/test/command/7003.md
@@ -30,8 +30,29 @@ This a Foo section
\lstinputlisting{example.tex}
\end{document}
^D
-[Header 1 ("with-lstlisting-environment",[],[]) [Str "With",Space,Str "lstlisting",Space,Str "environment"]
-,CodeBlock ("",[],[]) "\\documentclass{article}\n\\begin{document}\n\\section{Foo}\nThis a Foo section\n\\end{document}"
-,Header 1 ("with-lstinputlisting-command",[],[]) [Str "With",Space,Str "lstinputlisting",Space,Str "command"]
-,CodeBlock ("",["latex"],[]) "\\documentclass{article}\n\\begin{document}\n\\section{Bar}\nThis a Bar section\n\\end{document}"]
+[ Header
+ 1
+ ( "with-lstlisting-environment" , [] , [] )
+ [ Str "With"
+ , Space
+ , Str "lstlisting"
+ , Space
+ , Str "environment"
+ ]
+, CodeBlock
+ ( "" , [] , [] )
+ "\\documentclass{article}\n\\begin{document}\n\\section{Foo}\nThis a Foo section\n\\end{document}"
+, Header
+ 1
+ ( "with-lstinputlisting-command" , [] , [] )
+ [ Str "With"
+ , Space
+ , Str "lstinputlisting"
+ , Space
+ , Str "command"
+ ]
+, CodeBlock
+ ( "" , [ "latex" ] , [] )
+ "\\documentclass{article}\n\\begin{document}\n\\section{Bar}\nThis a Bar section\n\\end{document}"
+]
```
diff --git a/test/command/7006.md b/test/command/7006.md
index e7951fb1a..22aaf84ad 100644
--- a/test/command/7006.md
+++ b/test/command/7006.md
@@ -6,13 +6,16 @@ Test.[^fn]
![Caption.](/image.jpg)
^D
-<p>Test.<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a></p>
-<section class="footnotes" role="doc-endnotes">
+<p>Test.<a href="#fn1" class="footnote-ref" id="fnref1"
+role="doc-noteref"><sup>1</sup></a></p>
+<section class="footnotes footnotes-end-of-document"
+role="doc-endnotes">
<hr />
<ol>
<li id="fn1" role="doc-endnote"><p>Foo:</p>
<figure>
-<img src="/image.jpg" alt="Caption." /><figcaption aria-hidden="true">Caption.</figcaption>
+<img src="/image.jpg" alt="Caption." />
+<figcaption aria-hidden="true">Caption.</figcaption>
</figure>
<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></li>
</ol>
diff --git a/test/command/7080.md b/test/command/7080.md
index 0727c1083..565a6544d 100644
--- a/test/command/7080.md
+++ b/test/command/7080.md
@@ -4,5 +4,14 @@
[image]: image.png width=100px height=150px
^D
-[Para [Image ("",[],[("width","100px"),("height","150px")]) [] ("image.png","")]]
+[ Para
+ [ Image
+ ( ""
+ , []
+ , [ ( "width" , "100px" ) , ( "height" , "150px" ) ]
+ )
+ []
+ ( "image.png" , "" )
+ ]
+]
```
diff --git a/test/command/7092.md b/test/command/7092.md
index e7f127244..d6a526392 100644
--- a/test/command/7092.md
+++ b/test/command/7092.md
@@ -4,5 +4,7 @@
\em{\parseMe{foo}}
^D
-[Para [Emph [RawInline (Format "latex") "\\parseMe{foo}"]]]
+[ Para
+ [ Emph [ RawInline (Format "latex") "\\parseMe{foo}" ] ]
+]
```
diff --git a/test/command/7129.md b/test/command/7129.md
index fef4ca2c3..14005f0d1 100644
--- a/test/command/7129.md
+++ b/test/command/7129.md
@@ -5,23 +5,51 @@
foo & \verb|b&r| \\ \hline
\end{tabular}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "FOO"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "BAR"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "foo"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Code ("",[],[]) "b&r"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignLeft , ColWidthDefault )
+ , ( AlignLeft , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "FOO" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "BAR" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "foo" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Code ( "" , [] , [] ) "b&r" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/7134.md b/test/command/7134.md
index c69ae4bd0..041d7ea24 100644
--- a/test/command/7134.md
+++ b/test/command/7134.md
@@ -8,9 +8,44 @@ This is a paragraph.
This should be a second block quote.
^D
-[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "paragraph."]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote."]]
-,BlockQuote
- [Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "second",Space,Str "block",Space,Str "quote."]]]
+[ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph."
+ ]
+, BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ ]
+ ]
+, BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "second"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ ]
+ ]
+]
```
diff --git a/test/command/7145.md b/test/command/7145.md
index a04345890..623f40880 100644
--- a/test/command/7145.md
+++ b/test/command/7145.md
@@ -8,5 +8,65 @@ empty
linebreaks</ref> Nulla ut massa eget ex venenatis lobortis id in eros.
^D
-[Para [Str "Maecenas",Space,Str "at",Space,Str "sapien",Space,Str "tempor,",Space,Str "pretium",Space,Str "turpis",Space,Str "ut,",Space,Str "imperdiet",Space,Str "augue.",Note [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "multiline"],Para [Str "reference",SoftBreak,RawInline (Format "html") "<i>",Str "with",RawInline (Format "html") "</i>",SoftBreak,Str "empty"],Para [Str "linebreaks"]],Space,Str "Nulla",Space,Str "ut",Space,Str "massa",Space,Str "eget",Space,Str "ex",Space,Str "venenatis",Space,Str "lobortis",Space,Str "id",Space,Str "in",Space,Str "eros."]]
+[ Para
+ [ Str "Maecenas"
+ , Space
+ , Str "at"
+ , Space
+ , Str "sapien"
+ , Space
+ , Str "tempor,"
+ , Space
+ , Str "pretium"
+ , Space
+ , Str "turpis"
+ , Space
+ , Str "ut,"
+ , Space
+ , Str "imperdiet"
+ , Space
+ , Str "augue."
+ , Note
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "multiline"
+ ]
+ , Para
+ [ Str "reference"
+ , SoftBreak
+ , RawInline (Format "html") "<i>"
+ , Str "with"
+ , RawInline (Format "html") "</i>"
+ , SoftBreak
+ , Str "empty"
+ ]
+ , Para [ Str "linebreaks" ]
+ ]
+ , Space
+ , Str "Nulla"
+ , Space
+ , Str "ut"
+ , Space
+ , Str "massa"
+ , Space
+ , Str "eget"
+ , Space
+ , Str "ex"
+ , Space
+ , Str "venenatis"
+ , Space
+ , Str "lobortis"
+ , Space
+ , Str "id"
+ , Space
+ , Str "in"
+ , Space
+ , Str "eros."
+ ]
+]
```
diff --git a/test/command/7155.md b/test/command/7155.md
index 49358bf97..454c387d5 100644
--- a/test/command/7155.md
+++ b/test/command/7155.md
@@ -3,7 +3,16 @@
\(x\) \[x\]
\\(x\\) \\[x\\]
^D
-[Para [Math InlineMath "x",Space,Math DisplayMath "x",SoftBreak,Str "\\(x\\)",Space,Str "\\[x\\]"]]
+[ Para
+ [ Math InlineMath "x"
+ , Space
+ , Math DisplayMath "x"
+ , SoftBreak
+ , Str "\\(x\\)"
+ , Space
+ , Str "\\[x\\]"
+ ]
+]
```
```
@@ -11,5 +20,14 @@
\(x\) \[x\]
\\(x\\) \\[x\\]
^D
-[Para [Str "(x)",Space,Str "[x]",SoftBreak,Math InlineMath "x",Space,Math DisplayMath "x"]]
+[ Para
+ [ Str "(x)"
+ , Space
+ , Str "[x]"
+ , SoftBreak
+ , Math InlineMath "x"
+ , Space
+ , Math DisplayMath "x"
+ ]
+]
```
diff --git a/test/command/7208.md b/test/command/7208.md
index fe02ec32e..e65943ade 100644
--- a/test/command/7208.md
+++ b/test/command/7208.md
@@ -2,5 +2,5 @@
% pandoc -t gfm
\<hi\>
^D
-\<hi>
+\<hi\>
```
diff --git a/test/command/7216.md b/test/command/7216.md
index cab3b9689..2fb99c7b5 100644
--- a/test/command/7216.md
+++ b/test/command/7216.md
@@ -1,5 +1,5 @@
```
-pandoc -t latex
+% pandoc -t latex
"This is some text in quotes. Another paragraph by the same speaker follows. The first paragraph should have no close quote.
"The second paragraph should have open and close quotes."
diff --git a/test/command/7272.md b/test/command/7272.md
index d27b25143..cea282a10 100644
--- a/test/command/7272.md
+++ b/test/command/7272.md
@@ -15,7 +15,7 @@
</table>
^D
\begin{longtable}[]{@{}
- >{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.00}}@{}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.0000}}@{}}
\toprule
\endhead
\begin{minipage}[t]{\linewidth}\raggedright
diff --git a/test/command/7329.md b/test/command/7329.md
new file mode 100644
index 000000000..9ed9c52ff
--- /dev/null
+++ b/test/command/7329.md
@@ -0,0 +1,67 @@
+```
+% pandoc -f markdown -t org
+- @item1
+- @item1 [p. 12]
+- @item1 [p.12; see also @item2]
+- [@item1]
+- [-@item1]
+- [see @item1 p. 12]
+- [see @item1, p. 12]
+- [see @item1, p. 12 and *passim*]
+- [@item1;@item2]
+- [see @item1; @item2]
+^D
+- [cite/t:@item1]
+- [cite/t:@item1 p. 12]
+- [cite/t:@item1 p.12; see also @item2]
+- [cite:@item1]
+- [cite/na:@item1]
+- [cite:see @item1 p. 12]
+- [cite:see @item1 p. 12]
+- [cite:see @item1 p. 12 and /passim/]
+- [cite:@item1; @item2]
+- [cite:see @item1; @item2]
+```
+
+```
+% pandoc -f markdown -t org -C --bibliography command/biblio.bib
+- [@item1]
+^D
+- [cite:@item1]
+```
+
+
+```
+% pandoc -f markdown -t org-citations -C --bibliography command/biblio.bib
+[@item1]
+^D
+(Doe 2005)
+
+<<refs>>
+
+<<ref-item1>>
+Doe, John. 2005. /First Book/. Cambridge: Cambridge University Press.
+```
+
+```
+% pandoc -f org -t markdown
+- [cite/t:@item1]
+- [cite/t:@item1 p. 12]
+- [cite/t:@item1 p.12; see also @item2]
+- [cite:@item1]
+- [cite/na:@item1]
+- [cite:see @item1 p. 12]
+- [cite:see @item1 p. 12 and /passim/]
+- [cite:@item1; @item2]
+- [cite:see @item1; @item2]
+^D
+- @item1
+- @item1 [p. 12]
+- @item1 [p.12; see also @item2]
+- [@item1]
+- [-@item1]
+- [see @item1 p. 12]
+- [see @item1 p. 12 and *passim*]
+- [@item1; @item2]
+- [see @item1; @item2]
+```
diff --git a/test/command/7339.md b/test/command/7339.md
index 9697c1c32..f8d004f68 100644
--- a/test/command/7339.md
+++ b/test/command/7339.md
@@ -6,6 +6,10 @@ title: Test
Hi
^D
-Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Str "Test"])]})
-[Para [Str "Hi"]]
+Pandoc
+ Meta
+ { unMeta =
+ fromList [ ( "title" , MetaInlines [ Str "Test" ] ) ]
+ }
+ [ Para [ Str "Hi" ] ]
```
diff --git a/test/command/7340.md b/test/command/7340.md
index 25decd732..2c080a439 100644
--- a/test/command/7340.md
+++ b/test/command/7340.md
@@ -2,5 +2,5 @@
% pandoc -f latex -t native
\(*\)
^D
-[Para [Math InlineMath "*"]]
+[ Para [ Math InlineMath "*" ] ]
```
diff --git a/test/command/7400.md b/test/command/7400.md
index d4be32d72..785ded88d 100644
--- a/test/command/7400.md
+++ b/test/command/7400.md
@@ -4,6 +4,5 @@
# Comment only
...
^D
-Pandoc (Meta {unMeta = fromList []})
-[]
+Pandoc Meta { unMeta = fromList [] } []
```
diff --git a/test/command/7416.md b/test/command/7416.md
index 2f9577f10..d440725ab 100644
--- a/test/command/7416.md
+++ b/test/command/7416.md
@@ -4,7 +4,8 @@
^D
<figure>
-<img src="../media/rId25.jpg" title="title" alt="alt" /><figcaption>caption</figcaption>
+<img src="../media/rId25.jpg" title="title" alt="alt" />
+<figcaption>caption</figcaption>
</figure>
```
@@ -14,6 +15,7 @@
^D
<figure>
-<img src="../media/rId25.jpg" title="title" alt="caption" /><figcaption aria-hidden="true">caption</figcaption>
+<img src="../media/rId25.jpg" title="title" alt="caption" />
+<figcaption aria-hidden="true">caption</figcaption>
</figure>
```
diff --git a/test/command/7434.md b/test/command/7434.md
index be8732bc2..e4f2743a1 100644
--- a/test/command/7434.md
+++ b/test/command/7434.md
@@ -9,7 +9,15 @@
[\*\a](x)
^D
-[RawBlock (Format "tex") "\\begin{proof}\n\\newcommand{\\x}{\\left.\\right.}\n\\left.\\right.\n\\end{proof}"
-,Para [Str "1234567890abcdefghi"]
-,Para [Link ("",[],[]) [Str "*",RawInline (Format "tex") "\\a"] ("x","")]]
+[ RawBlock
+ (Format "tex")
+ "\\begin{proof}\n\\newcommand{\\x}{\\left.\\right.}\n\\left.\\right.\n\\end{proof}"
+, Para [ Str "1234567890abcdefghi" ]
+, Para
+ [ Link
+ ( "" , [] , [] )
+ [ Str "*" , RawInline (Format "tex") "\\a" ]
+ ( "x" , "" )
+ ]
+]
```
diff --git a/test/command/7436.md b/test/command/7436.md
index ad4cb8c2f..c2d434d60 100644
--- a/test/command/7436.md
+++ b/test/command/7436.md
@@ -8,7 +8,24 @@
.. include:: command/three.txt
^D
-[CodeBlock ("",[""],[("code","")]) "1st line.\n2nd line.\n3rd line.\n"
-,RawBlock (Format "rst") "1st line.\n2nd line.\n3rd line.\n"
-,Para [Str "1st",Space,Str "line.",SoftBreak,Str "2nd",Space,Str "line.",SoftBreak,Str "3rd",Space,Str "line."]]
+[ CodeBlock
+ ( "" , [ "" ] , [ ( "code" , "" ) ] )
+ "1st line.\n2nd line.\n3rd line.\n"
+, CodeBlock
+ ( "" , [ "" ] , [ ( "literal" , "" ) ] )
+ "1st line.\n2nd line.\n3rd line.\n"
+, Para
+ [ Str "1st"
+ , Space
+ , Str "line."
+ , SoftBreak
+ , Str "2nd"
+ , Space
+ , Str "line."
+ , SoftBreak
+ , Str "3rd"
+ , Space
+ , Str "line."
+ ]
+]
```
diff --git a/test/command/7482.md b/test/command/7482.md
new file mode 100644
index 000000000..b4f750e2f
--- /dev/null
+++ b/test/command/7482.md
@@ -0,0 +1,47 @@
+```
+% pandoc -f html -t org
+<table border=0 cellpadding=0 cellspacing=0 width=206 style='border-collapse:
+ collapse;width:154pt'>
+<!--StartFragment-->
+ <col width=99 style='mso-width-source:userset;mso-width-alt:3157;width:74pt'>
+ <col width=107 style='mso-width-source:userset;mso-width-alt:3413;width:80pt'>
+ <tr height=23 style='height:17.0pt'>
+ <td height=23 align=left width=99 style='height:17.0pt;width:74pt'>Last N
+ credits</td>
+ <td align=left width=107 style='width:80pt'>Average grade</td>
+ </tr>
+ <tr height=21 style='height:16.0pt'>
+ <td height=21 align=right style='height:16.0pt'>140</td>
+ <td align=right>17.06571429</td>
+ </tr>
+ <tr height=21 style='height:16.0pt'>
+ <td height=21 class=xl63 align=right style='height:16.0pt'>84</td>
+ <td class=xl63 align=right>17.95595238</td>
+ </tr>
+ <tr height=21 style='height:16.0pt'>
+ <td height=21 class=xl63 align=right style='height:16.0pt'>64</td>
+ <td class=xl63 align=right>18.9734375</td>
+ </tr>
+ <tr height=21 style='height:16.0pt'>
+ <td height=21 align=right style='height:16.0pt'>36</td>
+ <td align=right>19.12777778</td>
+ </tr>
+ <tr height=27 style='mso-height-source:userset;height:20.0pt'>
+ <td height=27 align=right style='height:20.0pt'>29</td>
+ <td align=right>19.18275862</td>
+ </tr>
+ <tr height=21 style='height:16.0pt'>
+ <td height=21 align=right style='height:16.0pt'>19</td>
+ <td align=right>19.00526316</td>
+ </tr>
+<!--EndFragment-->
+</table>
+^D
+| Last N credits | Average grade |
+| 140 | 17.06571429 |
+| 84 | 17.95595238 |
+| 64 | 18.9734375 |
+| 36 | 19.12777778 |
+| 29 | 19.18275862 |
+| 19 | 19.00526316 |
+```
diff --git a/test/command/7494.md b/test/command/7494.md
new file mode 100644
index 000000000..364bcb7e1
--- /dev/null
+++ b/test/command/7494.md
@@ -0,0 +1,62 @@
+```
+% pandoc -f latex -t plain
+\def\foo{BAR}
+{\foo
+\def\foo{BAZ}
+\foo
+}
+\foo
+^D
+BAR BAZ BAR
+```
+
+```
+% pandoc -f latex -t plain
+\def\foo{BAR}
+{\foo
+\gdef\foo{BAZ}
+\foo
+}
+\foo
+^D
+BAR BAZ BAZ
+```
+
+```
+% pandoc -f latex -t plain
+\def\foo{BAR}
+{\foo
+\global\def\foo{BAZ}
+\foo
+}
+\foo
+^D
+BAR BAZ BAZ
+```
+
+```
+% pandoc -f latex -t plain
+\newcommand{\aaa}{BBB}
+{
+\renewcommand{\aaa}{AAA}
+\aaa
+}
+\aaa
+^D
+AAA BBB
+```
+
+```
+% pandoc -f latex -t markdown
+\newcommand{\aaa}{BBB}
+\begin{quote}
+\renewcommand{\aaa}{AAA}
+\aaa
+\end{quote}
+\aaa
+^D
+> AAA
+
+BBB
+```
+
diff --git a/test/command/7497.md b/test/command/7497.md
new file mode 100644
index 000000000..4b80bf267
--- /dev/null
+++ b/test/command/7497.md
@@ -0,0 +1,37 @@
+````
+% pandoc -f markdown-raw_tex -t latex
+```
+\end{verbatim}
+\LaTeX
+\begin{verbatim}
+```
+^D
+\begin{Shaded}
+\begin{Highlighting}[]
+\NormalTok{\textbackslash{}end\{verbatim\}}
+\NormalTok{\textbackslash{}LaTeX}
+\NormalTok{\textbackslash{}begin\{verbatim\}}
+\end{Highlighting}
+\end{Shaded}
+````
+
+````
+% pandoc -f markdown-raw_tex -t latex
+hi[^1]
+
+[^1]:
+ ```
+ \end{Verbatim}
+ \LaTeX
+ \begin{Verbatim}
+ ```
+^D
+hi\footnote{\begin{Shaded}
+\begin{Highlighting}[]
+\NormalTok{\textbackslash{}end\{Verbatim\}}
+\NormalTok{\textbackslash{}LaTeX}
+\NormalTok{\textbackslash{}begin\{Verbatim\}}
+\end{Highlighting}
+\end{Shaded}
+}
+````
diff --git a/test/command/7520.md b/test/command/7520.md
new file mode 100644
index 000000000..0300a9e45
--- /dev/null
+++ b/test/command/7520.md
@@ -0,0 +1,22 @@
+```
+% pandoc -f org -t native -s
+:PROPERTIES:
+:ID: d5b18943-98a3-4b2a-a545-41d17bf50f3e
+:END:
+#+title: Common Ground
+^D
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "id"
+ , MetaString "d5b18943-98a3-4b2a-a545-41d17bf50f3e"
+ )
+ , ( "title"
+ , MetaInlines [ Str "Common" , Space , Str "Ground" ]
+ )
+ ]
+ }
+ []
+
+```
diff --git a/test/command/7521.md b/test/command/7521.md
new file mode 100644
index 000000000..4a24f13e1
--- /dev/null
+++ b/test/command/7521.md
@@ -0,0 +1,11 @@
+```
+% pandoc --strip-comments
+- one
+ <!-- with comm -->
+- two
+^D
+<ul>
+<li>one </li>
+<li>two</li>
+</ul>
+```
diff --git a/test/command/7529.md b/test/command/7529.md
new file mode 100644
index 000000000..9515258e9
--- /dev/null
+++ b/test/command/7529.md
@@ -0,0 +1,7 @@
+```
+% pandoc -f html -t asciidoc
+<a href="https://example.com/show.cgi?id=hi--there--everyone">https://example.com/show.cgi?id=hi--there--everyone</a>
+^D
+link:++https://example.com/show.cgi?id=hi--there--everyone++[]
+```
+
diff --git a/test/command/7546.md b/test/command/7546.md
new file mode 100644
index 000000000..aed17275e
--- /dev/null
+++ b/test/command/7546.md
@@ -0,0 +1,6 @@
+```
+% pandoc -t html -f native
+Span ("", [], [("","")]) []
+^D
+<span></span>
+```
diff --git a/test/command/7557.md b/test/command/7557.md
new file mode 100644
index 000000000..c837d0b3c
--- /dev/null
+++ b/test/command/7557.md
@@ -0,0 +1,20 @@
+```
+% pandoc -f org -t native
+- 11. and 12. 09. meeting
+^D
+[ BulletList
+ [ [ Plain
+ [ Str "11."
+ , Space
+ , Str "and"
+ , Space
+ , Str "12."
+ , Space
+ , Str "09."
+ , Space
+ , Str "meeting"
+ ]
+ ]
+ ]
+]
+```
diff --git a/test/command/7568.md b/test/command/7568.md
new file mode 100644
index 000000000..487da0861
--- /dev/null
+++ b/test/command/7568.md
@@ -0,0 +1,16 @@
+```
+% pandoc -f rst
+While `Labyrinth Lord: Revised Edition`_ (LLRE; PDF and POD) has been
+criticized for not being a completely faithful retro-clone of the
+Moldvay/Cook/Marsh Basic/Expert D&D rules (B/X), I think it still
+holds a useful spot.
+
+.. _Labyrinth Lord\: Revised Edition: https://www.drivethrurpg.com/product/64332/Labyrinth-Lord-Revised-Edition
+^D
+<p>While <a
+href="https://www.drivethrurpg.com/product/64332/Labyrinth-Lord-Revised-Edition">Labyrinth
+Lord: Revised Edition</a> (LLRE; PDF and POD) has been criticized for
+not being a completely faithful retro-clone of the Moldvay/Cook/Marsh
+Basic/Expert D&amp;D rules (B/X), I think it still holds a useful
+spot.</p>
+```
diff --git a/test/command/7573.md b/test/command/7573.md
new file mode 100644
index 000000000..d6529cde6
--- /dev/null
+++ b/test/command/7573.md
@@ -0,0 +1,11 @@
+```
+% pandoc --preserve-tabs
+<ol>
+ <li>one
+</ol>
+^D
+<ol>
+<li>
+one
+</ol>
+```
diff --git a/test/command/7589.md b/test/command/7589.md
new file mode 100644
index 000000000..aff21dad8
--- /dev/null
+++ b/test/command/7589.md
@@ -0,0 +1,72 @@
+```
+% pandoc -f html -t native
+<table>
+ <thead>
+ <tr>
+ <th>experience</th>
+ <th>expertise</th>
+ <th>paradigms</th>
+ <th>haskell</th>
+ <th>name</th>
+ <th>image</th>
+ </tr>
+ </thead>
+ <tbody></tbody>
+</table>
+^D
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "experience" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "expertise" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "paradigms" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "haskell" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "name" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "image" ] ]
+ ]
+ ])
+ [ TableBody ( "" , [] , [] ) (RowHeadColumns 0) [] [] ]
+ (TableFoot ( "" , [] , [] ) [])
+]
+```
diff --git a/test/command/7615.md b/test/command/7615.md
new file mode 100644
index 000000000..9235b0a17
--- /dev/null
+++ b/test/command/7615.md
@@ -0,0 +1,6 @@
+```
+% pandoc -f latex -t native
+\texttt{\^}
+^D
+[ Para [ Code ( "" , [] , [] ) "^" ] ]
+```
diff --git a/test/command/7623.md b/test/command/7623.md
new file mode 100644
index 000000000..1c4c8a0c1
--- /dev/null
+++ b/test/command/7623.md
@@ -0,0 +1,12 @@
+```
+% pandoc -t native
+[link $(0,1]$](url)
+^D
+[ Para
+ [ Link
+ ( "" , [] , [] )
+ [ Str "link" , Space , Math InlineMath "(0,1]" ]
+ ( "url" , "" )
+ ]
+]
+```
diff --git a/test/command/7632.md b/test/command/7632.md
new file mode 100644
index 000000000..4256bc207
--- /dev/null
+++ b/test/command/7632.md
@@ -0,0 +1,66 @@
+```
+% pandoc -t native
+(@a) First case
+
+[link to (@a)](url)
+^D
+[ OrderedList
+ ( 1 , Example , TwoParens )
+ [ [ Plain [ Str "First" , Space , Str "case" ] ] ]
+, Para
+ [ Link
+ ( "" , [] , [] )
+ [ Str "link" , Space , Str "to" , Space , Str "(1)" ]
+ ( "url" , "" )
+ ]
+]
+```
+
+```
+% pandoc -t native
+[@a]{.class}
+^D
+[ Para
+ [ Span
+ ( "" , [ "class" ] , [] )
+ [ Cite
+ [ Citation
+ { citationId = "a"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "@a" ]
+ ]
+ ]
+]
+
+```
+
+```
+% pandoc -t native
+[@a](url)
+^D
+[ Para
+ [ Link
+ ( "" , [] , [] )
+ [ Cite
+ [ Citation
+ { citationId = "a"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "@a" ]
+ ]
+ ( "url" , "" )
+ ]
+]
+
+```
diff --git a/test/command/7668.md b/test/command/7668.md
new file mode 100644
index 000000000..6f85aa4de
--- /dev/null
+++ b/test/command/7668.md
@@ -0,0 +1,36 @@
+```
+% pandoc -f bibtex -t csljson
+%@Book{JW82,
+ author = {Richard A. Johnson and Dean W. Wichern},
+ title = {Applied Multivariate Statistical Analysis},
+ publisher= {Prentice-Hall},
+ year = {1983}
+}
+@Book{JW83,
+ author = {Richard %A.
+ B. Johnson},
+% title = {Multivariate Analysis},
+ year = "%
+ 1983"
+}
+^D
+[
+ {
+ "author": [
+ {
+ "family": "Johnson",
+ "given": "Richard B."
+ }
+ ],
+ "id": "JW83",
+ "issued": {
+ "date-parts": [
+ [
+ 1983
+ ]
+ ]
+ },
+ "type": "book"
+ }
+]
+```
diff --git a/test/command/7692.md b/test/command/7692.md
new file mode 100644
index 000000000..2a91ef378
--- /dev/null
+++ b/test/command/7692.md
@@ -0,0 +1,13 @@
+```
+% pandoc -t markdown
+[https://example.com](https://example.com){.clz}
+^D
+[https://example.com](https://example.com){.clz}
+```
+
+```
+% pandoc -f markdown -t html | pandoc -f html -t markdown
+<http://example.com>
+^D
+<http://example.com>
+```
diff --git a/test/command/7697.md b/test/command/7697.md
new file mode 100644
index 000000000..eb9c823d0
--- /dev/null
+++ b/test/command/7697.md
@@ -0,0 +1,27 @@
+```
+% pandoc -f rst -t mediawiki
+.. _refsubpage1:
+
+heading
+-------
+
+ref to top of this section: `refsubpage1`_.
+^D
+<span id="refsubpage1"></span>
+= heading =
+
+ref to top of this section: [[#refsubpage1|refsubpage1]].
+```
+```
+% pandoc -f markdown -t mediawiki
+# Heading {#foo}
+^D
+<span id="foo"></span>
+= Heading =
+```
+```
+% pandoc -f markdown -t mediawiki
+# My Heading {#My_Heading}
+^D
+= My Heading =
+```
diff --git a/test/command/7713.md b/test/command/7713.md
new file mode 100644
index 000000000..851cb4729
--- /dev/null
+++ b/test/command/7713.md
@@ -0,0 +1,29 @@
+```
+% pandoc
+| aaaaaaaaaaaa | bbbbb | ccccccccccc |
+| --- | --- | --- |
+| | | cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc |
+^D
+<table>
+<colgroup>
+<col style="width: 33%" />
+<col style="width: 33%" />
+<col style="width: 33%" />
+</colgroup>
+<thead>
+<tr class="header">
+<th>aaaaaaaaaaaa</th>
+<th>bbbbb</th>
+<th>ccccccccccc</th>
+</tr>
+</thead>
+<tbody>
+<tr class="odd">
+<td></td>
+<td></td>
+<td>cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc
+cccccccccc</td>
+</tr>
+</tbody>
+</table>
+```
diff --git a/test/command/7723.md b/test/command/7723.md
new file mode 100644
index 000000000..f3229eb1e
--- /dev/null
+++ b/test/command/7723.md
@@ -0,0 +1,8 @@
+```
+% pandoc -t native
+Bug![^1]
+
+[^1]: Note.
+^D
+[ Para [ Str "Bug!" , Note [ Para [ Str "Note." ] ] ] ]
+```
diff --git a/test/command/7726.md b/test/command/7726.md
new file mode 100644
index 000000000..bab11ca04
--- /dev/null
+++ b/test/command/7726.md
@@ -0,0 +1,22 @@
+```
+% pandoc -t markdown
+\# Hi
+
+\## Hi
+
+\### Hi
+
+\#### hi
+
+and #hi
+^D
+\# Hi
+
+\## Hi
+
+\### Hi
+
+\#### hi
+
+and #hi
+```
diff --git a/test/command/7738.md b/test/command/7738.md
new file mode 100644
index 000000000..e3c629aa0
--- /dev/null
+++ b/test/command/7738.md
@@ -0,0 +1,6 @@
+```
+% pandoc
+![_](url.png) image
+^D
+<p><img src="url.png" alt="_" /> image</p>
+```
diff --git a/test/command/7761.md b/test/command/7761.md
new file mode 100644
index 000000000..0307bcaee
--- /dev/null
+++ b/test/command/7761.md
@@ -0,0 +1,35 @@
+```
+% pandoc --citeproc --csl command/chicago-fullnote-bibliography.csl -t plain
+---
+references:
+- id: noauthor
+ issued: 2020
+ publisher: Oxford University Press
+ publisher-place: Oxford
+ title: Title
+ type: book
+- id: author
+ author:
+ - family: Jones
+ given: Jim
+ issued: 2021
+ title: Title
+ type: book
+ url: "https://duckduckgo.com/cite2021"
+---
+
+Text.[^n]
+
+[^n]: See @author. Another example of a sea level mapping tool with
+similar limitations is @noauthor.
+^D
+Text.[1]
+
+Jones, Jim. Title, 2021. https://duckduckgo.com/cite2021.
+
+Title. Oxford: Oxford University Press, 2020.
+
+[1] See Jim Jones, Title, 2021, https://duckduckgo.com/cite2021. Another
+example of a sea level mapping tool with similar limitations is Title
+(Oxford: Oxford University Press, 2020).
+```
diff --git a/test/command/853.md b/test/command/853.md
index 54eb416a9..518c6593b 100644
--- a/test/command/853.md
+++ b/test/command/853.md
@@ -7,11 +7,14 @@ Here is a citation reference: [CIT2002]_.
.. [CIT2002] This is the citation. It's just like a footnote,
except the label is textual.
^D
-<p>Here is a citation reference: <a href="#CIT2002" class="citation">[CIT2002]</a>.</p>
+<p>Here is a citation reference: <a href="#CIT2002"
+class="citation">[CIT2002]</a>.</p>
<div id="citations">
<dl>
<dt><span id="CIT2002" class="citation-label">CIT2002</span></dt>
-<dd><p>This is the citation. It's just like a footnote, except the label is textual.</p>
+<dd>
+<p>This is the citation. It's just like a footnote, except the label is
+textual.</p>
</dd>
</dl>
</div>
diff --git a/test/command/934.md b/test/command/934.md
index ef99abdf9..3c86a1f26 100644
--- a/test/command/934.md
+++ b/test/command/934.md
@@ -7,6 +7,38 @@
}
\ddb{This should be italic and in quotes}{And this is the attribution}
^D
-[Para [Emph [Quoted DoubleQuote [Str "This",Space,Str "should",Space,Str "be",Space,Str "italic",Space,Str "and",Space,Str "in",Space,Str "quotes"]]]
-,Para [Strong [Str "And",Space,Str "this",Space,Str "is",Space,Str "the",Space,Str "attribution"]]]
+[ Para
+ [ Emph
+ [ Quoted
+ DoubleQuote
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "italic"
+ , Space
+ , Str "and"
+ , Space
+ , Str "in"
+ , Space
+ , Str "quotes"
+ ]
+ ]
+ ]
+, Para
+ [ Strong
+ [ Str "And"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "attribution"
+ ]
+ ]
+]
```
diff --git a/test/command/982.md b/test/command/982.md
index 5f54f7713..4b997c4c4 100644
--- a/test/command/982.md
+++ b/test/command/982.md
@@ -7,5 +7,5 @@
y=x^2
\EEQ
^D
-[Para [Math DisplayMath "y=x^2"]]
+[ Para [ Math DisplayMath "y=x^2" ] ]
```
diff --git a/test/command/987.md b/test/command/987.md
index f632231ef..fc75d2c56 100644
--- a/test/command/987.md
+++ b/test/command/987.md
@@ -1,5 +1,5 @@
```
-pandoc -f latex -t markdown
+% pandoc -f latex -t markdown
\documentclass{article}
\newenvironment{flubble}{FOO}{BAR}
\begin{document}
diff --git a/test/command/adjacent_latex_blocks.md b/test/command/adjacent_latex_blocks.md
index e7dc6d895..4483d6e3f 100644
--- a/test/command/adjacent_latex_blocks.md
+++ b/test/command/adjacent_latex_blocks.md
@@ -4,6 +4,7 @@
\listoftables
^D
-[RawBlock (Format "tex") "\\listoffigures"
-,RawBlock (Format "tex") "\\listoftables"]
+[ RawBlock (Format "tex") "\\listoffigures"
+, RawBlock (Format "tex") "\\listoftables"
+]
```
diff --git a/test/command/ascii.md b/test/command/ascii.md
index 0826d7414..a328ed863 100644
--- a/test/command/ascii.md
+++ b/test/command/ascii.md
@@ -1,19 +1,19 @@
```
-pandoc -t html --ascii
+% pandoc -t html --ascii
äéıå
^D
<p>&#xE4;&#xE9;&#x131;&#xE5;</p>
```
```
-pandoc -t latex --ascii
+% pandoc -t latex --ascii
äéıå
^D
\"{a}\'{e}\i\r{a}
```
```
-pandoc -t man --ascii
+% pandoc -t man --ascii
äéıå
^D
.PP
@@ -21,7 +21,7 @@ pandoc -t man --ascii
```
```
-pandoc -t ms --ascii
+% pandoc -t ms --ascii
äéıå
^D
.LP
@@ -29,7 +29,7 @@ pandoc -t ms --ascii
```
```
-pandoc -t docbook --ascii
+% pandoc -t docbook --ascii
äéıå
^D
<para>
@@ -38,14 +38,14 @@ pandoc -t docbook --ascii
```
```
-pandoc -t jats --ascii
+% pandoc -t jats --ascii
äéıå
^D
<p>&#xE4;&#xE9;&#x131;&#xE5;</p>
```
```
-pandoc -t markdown-smart --ascii
+% pandoc -t markdown-smart --ascii
"äéıå"
^D
&ldquo;&auml;&eacute;&imath;&aring;&rdquo;
diff --git a/test/command/bar-endinput.tex b/test/command/bar-endinput.tex
new file mode 100644
index 000000000..2f3f9bd6c
--- /dev/null
+++ b/test/command/bar-endinput.tex
@@ -0,0 +1,3 @@
+\emph{hi there}
+\endinput
+\emph{invisible}
diff --git a/test/command/biblatex-article.md b/test/command/biblatex-article.md
index 705369f78..68d467526 100644
--- a/test/command/biblatex-article.md
+++ b/test/command/biblatex-article.md
@@ -97,7 +97,7 @@ references:
- family: Author
given: Ann A.
suffix: Jr.
- collection-title: new series
+ collection-title: New series
container-title: "The Journaltitle: The Journalsubtitle"
doi: 10.1086/520976
editor:
diff --git a/test/command/biblatex-gillies.md b/test/command/biblatex-gillies.md
index e1a64af23..a63c1311d 100644
--- a/test/command/biblatex-gillies.md
+++ b/test/command/biblatex-gillies.md
@@ -54,7 +54,7 @@ references:
author:
- family: Gillies
given: Alexander
- collection-title: new series
+ collection-title: New series
container-title: Publications of the English Goethe Society
id: gillies
issued: 1933
diff --git a/test/command/biblatex-shore.md b/test/command/biblatex-shore.md
index cc9c079e1..efe97ef7a 100644
--- a/test/command/biblatex-shore.md
+++ b/test/command/biblatex-shore.md
@@ -49,7 +49,7 @@ references:
author:
- family: Shore
given: Bradd
- collection-title: new series
+ collection-title: New series
container-title: American Anthropologist
id: shore
issue: 1
diff --git a/test/command/biblatex-sigfridsson.md b/test/command/biblatex-sigfridsson.md
index e042a8762..f83c35622 100644
--- a/test/command/biblatex-sigfridsson.md
+++ b/test/command/biblatex-sigfridsson.md
@@ -90,7 +90,7 @@ references:
- family: Ryde
given: Ulf
container-title: Journal of Computational Chemistry
- doi: "10.1002/(SICI)1096-987X(199803)19:4\\<377::AID-JCC1>3.0.CO;2-P"
+ doi: "10.1002/(SICI)1096-987X(199803)19:4\\<377::AID-JCC1\\>3.0.CO;2-P"
id: sigfridsson
issue: 4
issued: 1998
diff --git a/test/command/cite-in-inline-note.md b/test/command/cite-in-inline-note.md
index 962eddd2a..aa61b93e8 100644
--- a/test/command/cite-in-inline-note.md
+++ b/test/command/cite-in-inline-note.md
@@ -2,5 +2,25 @@
% pandoc -t native
foo^[bar [@doe]]
^D
-[Para [Str "foo",Note [Para [Str "bar",Space,Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "[@doe]"]]]]]
+[ Para
+ [ Str "foo"
+ , Note
+ [ Para
+ [ Str "bar"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "doe"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@doe]" ]
+ ]
+ ]
+ ]
+]
```
diff --git a/test/command/citeproc-87.md b/test/command/citeproc-87.md
new file mode 100644
index 000000000..dd9287e78
--- /dev/null
+++ b/test/command/citeproc-87.md
@@ -0,0 +1,55 @@
+```
+% pandoc --citeproc -Mlang=it-IT -t markdown-citations
+Foo [@a 50: «Disse: "bar"»]. «Disse: "baz"»
+
+---
+suppress-bibliography: true
+references:
+- id: a
+ author:
+ - literal: Aristotele
+ title: Metafisica
+ type: book
+...
+^D
+Foo (Aristotele, s.d., 50: «Disse: "bar"»). «Disse: "baz"»
+```
+
+The Quoted is passed to citeproc as a Span ("",["csl-quoted"],[])
+so that flipflopping and localization occur.
+```
+% pandoc -C -t plain -Mlang=en
+---
+references:
+- id: a
+ author:
+ - literal: Aristotele
+ title: Metafisica et "Physica"
+ type: article-journal
+...
+
+Foo [@a 50].
+^D
+Foo (Aristotele, n.d., 50).
+
+Aristotele. n.d. “Metafisica Et ‘Physica’.”
+```
+
+```
+% pandoc -C -t plain -Mlang=it
+---
+references:
+- id: a
+ author:
+ - literal: Aristotele
+ title: Metafisica et "Physica"
+ type: article-journal
+...
+
+Foo [@a 50].
+^D
+Foo (Aristotele, s.d., 50).
+
+Aristotele. s.d. «Metafisica et “Physica”».
+```
+
diff --git a/test/command/citeproc-author-in-text-suffix.md b/test/command/citeproc-author-in-text-suffix.md
index b55502053..df3184aa8 100644
--- a/test/command/citeproc-author-in-text-suffix.md
+++ b/test/command/citeproc-author-in-text-suffix.md
@@ -2,5 +2,33 @@
% pandoc -t native
@a [p. 33; @b]
^D
-[Para [Cite [Citation {citationId = "a", citationPrefix = [], citationSuffix = [Str "p.\160\&33"], citationMode = AuthorInText, citationNoteNum = 1, citationHash = 0},Citation {citationId = "b", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "@a",Space,Str "[p.",Space,Str "33;",Space,Str "@b]"]]]
+[ Para
+ [ Cite
+ [ Citation
+ { citationId = "a"
+ , citationPrefix = []
+ , citationSuffix = [ Str "p.\160\&33" ]
+ , citationMode = AuthorInText
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "b"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "@a"
+ , Space
+ , Str "[p."
+ , Space
+ , Str "33;"
+ , Space
+ , Str "@b]"
+ ]
+ ]
+]
```
diff --git a/test/command/csv.md b/test/command/csv.md
index 75dccf1a7..353512553 100644
--- a/test/command/csv.md
+++ b/test/command/csv.md
@@ -5,42 +5,98 @@ Apple,25 cents,33
"""Navel"" Orange","35 cents",22
,,45
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Fruit"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Price"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Quantity"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "25",Space,Str "cents"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "33"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\"Navel\"",Space,Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "35",Space,Str "cents"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "22"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "45"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Fruit" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Price" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Quantity" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Apple" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "25" , Space , Str "cents" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "33" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "\"Navel\"" , Space , Str "Orange" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "35" , Space , Str "cents" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "22" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
+ , Cell
+ ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "45" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/docbook-bibliography.md b/test/command/docbook-bibliography.md
index 37ac05b30..6e42732ad 100644
--- a/test/command/docbook-bibliography.md
+++ b/test/command/docbook-bibliography.md
@@ -13,8 +13,33 @@
</bibliomixed>
</bibliodiv>
^D
-[Header 1 ("",[],[]) [Str "Document",Space,Str "References"]
-,Para [Span ("refTheFirst",[],[]) [],Str "[1]",Space,Str "First",Space,Str "reference"]
-,Para [Span ("refTheSecond",[],[]) [],Str "[2]",Space,Str "Second",Space,Str "reference"]
-,Para [Span ("refTheThird",[],[]) [],Str "[3]",Space,Str "Third",Space,Str "reference"]]
+[ Header
+ 1
+ ( "" , [] , [] )
+ [ Str "Document" , Space , Str "References" ]
+, Para
+ [ Span ( "refTheFirst" , [] , [] ) []
+ , Str "[1]"
+ , Space
+ , Str "First"
+ , Space
+ , Str "reference"
+ ]
+, Para
+ [ Span ( "refTheSecond" , [] , [] ) []
+ , Str "[2]"
+ , Space
+ , Str "Second"
+ , Space
+ , Str "reference"
+ ]
+, Para
+ [ Span ( "refTheThird" , [] , [] ) []
+ , Str "[3]"
+ , Space
+ , Str "Third"
+ , Space
+ , Str "reference"
+ ]
+]
```
diff --git a/test/command/dots.md b/test/command/dots.md
index 08bc561a8..cd9a978cf 100644
--- a/test/command/dots.md
+++ b/test/command/dots.md
@@ -6,7 +6,8 @@
\vdots
^D
-[Para [Str "\8230"]
-,Para [Str "\8230"]
-,Para [Str "\8942"]]
+[ Para [ Str "\8230" ]
+, Para [ Str "\8230" ]
+, Para [ Str "\8942" ]
+]
```
diff --git a/test/command/empty_paragraphs.md b/test/command/empty_paragraphs.md
index 14bd8d060..6efbab9cd 100644
--- a/test/command/empty_paragraphs.md
+++ b/test/command/empty_paragraphs.md
@@ -2,34 +2,32 @@
% pandoc -f native -t docx -o - | pandoc -f docx -t native
[Para [Str "hi"], Para [], Para [], Para [Str "lo"]]
^D
-[Para [Str "hi"]
-,Para [Str "lo"]]
+[ Para [ Str "hi" ] , Para [ Str "lo" ] ]
```
```
% pandoc -f native -t docx+empty_paragraphs -o - | pandoc -f docx -t native
[Para [Str "hi"], Para [], Para [], Para [Str "lo"]]
^D
-[Para [Str "hi"]
-,Para [Str "lo"]]
+[ Para [ Str "hi" ] , Para [ Str "lo" ] ]
```
```
% pandoc -f native -t docx -o - | pandoc -f docx+empty_paragraphs -t native
[Para [Str "hi"], Para [], Para [], Para [Str "lo"]]
^D
-[Para [Str "hi"]
-,Para [Str "lo"]]
+[ Para [ Str "hi" ] , Para [ Str "lo" ] ]
```
```
% pandoc -f native -t docx+empty_paragraphs -o - | pandoc -f docx+empty_paragraphs -t native
[Para [Str "hi"], Para [], Para [], Para [Str "lo"]]
^D
-[Para [Str "hi"]
-,Para []
-,Para []
-,Para [Str "lo"]]
+[ Para [ Str "hi" ]
+, Para []
+, Para []
+, Para [ Str "lo" ]
+]
```
```
@@ -57,10 +55,11 @@
<p></p>
<p>lo</p>
^D
-[Para [Str "hi"]
-,Para []
-,Para []
-,Para [Str "lo"]]
+[ Para [ Str "hi" ]
+, Para []
+, Para []
+, Para [ Str "lo" ]
+]
```
```
@@ -70,8 +69,7 @@
<p></p>
<p>lo</p>
^D
-[Para [Str "hi"]
-,Para [Str "lo"]]
+[ Para [ Str "hi" ] , Para [ Str "lo" ] ]
```
```
diff --git a/test/command/gfm.md b/test/command/gfm.md
index f1bce1b89..78736b2d6 100644
--- a/test/command/gfm.md
+++ b/test/command/gfm.md
@@ -7,37 +7,76 @@ gfm tests:
| apple | 0.13 |
| orange|1.12|
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Fruit"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Price"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "0.13"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1.12"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignRight , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Fruit" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Price" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "apple" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "0.13" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "orange" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1.12" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
% pandoc -f gfm -t native
~~stricken out~~
^D
-[Para [Strikeout [Str "stricken",Space,Str "out"]]]
+[ Para [ Strikeout [ Str "stricken" , Space , Str "out" ] ]
+]
```
```
@@ -46,30 +85,42 @@ gfm tests:
## Header
# -foo-bar_baz
^D
-[Header 1 ("header",[],[]) [Str "Header"]
-,Header 2 ("header-1",[],[]) [Str "Header"]
-,Header 1 ("-foo-bar_baz",[],[]) [Str "-foo-bar_baz"]]
+[ Header 1 ( "header" , [] , [] ) [ Str "Header" ]
+, Header 2 ( "header-1" , [] , [] ) [ Str "Header" ]
+, Header
+ 1 ( "-foo-bar_baz" , [] , [] ) [ Str "-foo-bar_baz" ]
+]
```
```
% pandoc -f gfm -t native
My:thumbsup:emoji:heart:
^D
-[Para [Str "My",Span ("",["emoji"],[("data-emoji","thumbsup")]) [Str "\128077"],Str "emoji",Span ("",["emoji"],[("data-emoji","heart")]) [Str "\10084\65039"]]]
+[ Para
+ [ Str "My"
+ , Span
+ ( "" , [ "emoji" ] , [ ( "data-emoji" , "thumbsup" ) ] )
+ [ Str "\128077" ]
+ , Str "emoji"
+ , Span
+ ( "" , [ "emoji" ] , [ ( "data-emoji" , "heart" ) ] )
+ [ Str "\10084\65039" ]
+ ]
+]
```
```
% pandoc -f gfm -t native
"hi"
^D
-[Para [Str "\"hi\""]]
+[ Para [ Str "\"hi\"" ] ]
```
```
% pandoc -f gfm+smart -t native
"hi"
^D
-[Para [Quoted DoubleQuote [Str "hi"]]]
+[ Para [ Quoted DoubleQuote [ Str "hi" ] ] ]
```
```
@@ -133,7 +184,7 @@ The caption.
hi
hi
^D
-[Para [Str "hi",LineBreak,Str "hi"]]
+[ Para [ Str "hi" , LineBreak , Str "hi" ] ]
```
```
@@ -141,9 +192,11 @@ hi
- [ ] foo
- [x] bar
^D
-[BulletList
- [[Plain [Str "\9744",Space,Str "foo"]]
- ,[Plain [Str "\9746",Space,Str "bar"]]]]
+[ BulletList
+ [ [ Plain [ Str "\9744" , Space , Str "foo" ] ]
+ , [ Plain [ Str "\9746" , Space , Str "bar" ] ]
+ ]
+]
```
```
@@ -151,9 +204,12 @@ hi
- [ ] foo
- [x] bar
^D
-[BulletList
- [[Plain [Str "[",Space,Str "]",Space,Str "foo"]]
- ,[Plain [Str "[x]",Space,Str "bar"]]]]
+[ BulletList
+ [ [ Plain [ Str "[" , Space , Str "]" , Space , Str "foo" ]
+ ]
+ , [ Plain [ Str "[x]" , Space , Str "bar" ] ]
+ ]
+]
```
```
diff --git a/test/command/hspace.md b/test/command/hspace.md
index a8b97b8bc..c011f17fc 100644
--- a/test/command/hspace.md
+++ b/test/command/hspace.md
@@ -8,7 +8,10 @@ Here they need to be inline:
\caption{lalune \hspace{2em} \vspace{1em} bloo}
\end{figure}
^D
-[RawBlock (Format "tex") "\\begin{figure}\n\\includegraphics{lalune.jpg}\n\\caption{lalune \\hspace{2em} \\vspace{1em} bloo}\n\\end{figure}"]
+[ RawBlock
+ (Format "tex")
+ "\\begin{figure}\n\\includegraphics{lalune.jpg}\n\\caption{lalune \\hspace{2em} \\vspace{1em} bloo}\n\\end{figure}"
+]
```
Here block:
@@ -32,14 +35,22 @@ F & T &\\
F & F &\\
\end{tabular}
^D
-[RawBlock (Format "tex") "\\begin{tabular}[t]{cc|c}\n\\(P\\) & \\(Q\\) & \\(P\\wedge Q\\)\\\\\n\\hline\nT & T &\\\\\nT & F &\\\\\nF & T &\\\\\nF & F &\\\\\n\\end{tabular}\n\\hspace{1em}\n\\begin{tabular}[t]{cc|c}\n\\(P\\) & \\(Q\\) & \\(P\\vee Q\\)\\\\\n\\hline\nT & T &\\\\\nT & F &\\\\\nF & T &\\\\\nF & F &\\\\\n\\end{tabular}"]
+[ RawBlock
+ (Format "tex")
+ "\\begin{tabular}[t]{cc|c}\n\\(P\\) & \\(Q\\) & \\(P\\wedge Q\\)\\\\\n\\hline\nT & T &\\\\\nT & F &\\\\\nF & T &\\\\\nF & F &\\\\\n\\end{tabular}\n\\hspace{1em}\n\\begin{tabular}[t]{cc|c}\n\\(P\\) & \\(Q\\) & \\(P\\vee Q\\)\\\\\n\\hline\nT & T &\\\\\nT & F &\\\\\nF & T &\\\\\nF & F &\\\\\n\\end{tabular}"
+]
```
```
% pandoc -f markdown+raw_tex -t native
hi\hspace{1em}there
^D
-[Para [Str "hi",RawInline (Format "tex") "\\hspace{1em}",Str "there"]]
+[ Para
+ [ Str "hi"
+ , RawInline (Format "tex") "\\hspace{1em}"
+ , Str "there"
+ ]
+]
```
```
@@ -50,7 +61,8 @@ hi
there
^D
-[Para [Str "hi"]
-,RawBlock (Format "tex") "\\hspace{1em}"
-,Para [Str "there"]]
+[ Para [ Str "hi" ]
+, RawBlock (Format "tex") "\\hspace{1em}"
+, Para [ Str "there" ]
+]
```
diff --git a/test/command/html-read-figure.md b/test/command/html-read-figure.md
index 9c604c706..d7eb96bb4 100644
--- a/test/command/html-read-figure.md
+++ b/test/command/html-read-figure.md
@@ -5,7 +5,11 @@
<figcaption>bar</figcaption>
</figure>
^D
-[Para [Image ("",[],[]) [Str "bar"] ("foo.png","fig:voyage")]]
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Str "bar" ] ( "foo.png" , "fig:voyage" )
+ ]
+]
```
```
@@ -15,7 +19,11 @@
<img src="foo.png" title="voyage">
</figure>
^D
-[Para [Image ("",[],[]) [Str "bar"] ("foo.png","fig:voyage")]]
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Str "bar" ] ( "foo.png" , "fig:voyage" )
+ ]
+]
```
```
@@ -24,7 +32,9 @@
<img src="foo.png" title="voyage">
</figure>
^D
-[Para [Image ("",[],[]) [] ("foo.png","fig:voyage")]]
+[ Para
+ [ Image ( "" , [] , [] ) [] ( "foo.png" , "fig:voyage" ) ]
+]
```
```
@@ -34,12 +44,22 @@
<figcaption>bar</figcaption>
</figure>
^D
-[Para [Image ("",[],[]) [Str "bar"] ("foo.png","fig:voyage")]]
+[ Para
+ [ Image
+ ( "" , [] , [] ) [ Str "bar" ] ( "foo.png" , "fig:voyage" )
+ ]
+]
```
```
% pandoc -f html -t native
<figure><img src="foo.png" title="voyage" alt="this is ignored"><figcaption>bar <strong>baz</strong></figcaption></figure>
^D
-[Para [Image ("",[],[]) [Str "bar",Space,Strong [Str "baz"]] ("foo.png","fig:voyage")]]
+[ Para
+ [ Image
+ ( "" , [] , [] )
+ [ Str "bar" , Space , Strong [ Str "baz" ] ]
+ ( "foo.png" , "fig:voyage" )
+ ]
+]
```
diff --git a/test/command/html-trim-definition-list-terms.md b/test/command/html-trim-definition-list-terms.md
index 08e58c73a..d2b019996 100644
--- a/test/command/html-trim-definition-list-terms.md
+++ b/test/command/html-trim-definition-list-terms.md
@@ -11,7 +11,15 @@
<dd>test</dd>
</dl>
^D
-[DefinitionList
- [([Str "foo",SoftBreak,Str "bar",LineBreak,Str "baz"],
- [[Plain [Str "test"]]])]]
+[ DefinitionList
+ [ ( [ Str "foo"
+ , SoftBreak
+ , Str "bar"
+ , LineBreak
+ , Str "baz"
+ ]
+ , [ [ Plain [ Str "test" ] ] ]
+ )
+ ]
+]
```
diff --git a/test/command/hyphenat.md b/test/command/hyphenat.md
index 3aae85101..ca418c111 100644
--- a/test/command/hyphenat.md
+++ b/test/command/hyphenat.md
@@ -2,48 +2,60 @@
% pandoc -f latex -t native
electromagnetic\hyp{}endioscopy
^D
-[Para [Str "electromagnetic-endioscopy"]]
+[ Para [ Str "electromagnetic-endioscopy" ] ]
```
```
% pandoc -f latex -t native
C\colonhyp\bshyp{}Windows\bshyp
^D
-[Para [Str "C:\173\\\173Windows\\\173"]]
+[ Para [ Str "C:\173\\\173Windows\\\173" ] ]
```
```
% pandoc -f latex -t native
\fshyp{}usr\fshyp{}share\fshyp
^D
-[Para [Str "/\173usr/\173share/\173"]]
+[ Para [ Str "/\173usr/\173share/\173" ] ]
```
```
% pandoc -f latex -t native
\fshyp{}home\fshyp{}schrieveslaach\fshyp\dothyp{}m2
^D
-[Para [Str "/\173home/\173schrieveslaach/\173.\173m2"]]
+[ Para [ Str "/\173home/\173schrieveslaach/\173.\173m2" ] ]
```
```
% pandoc -f latex -t native
\nohyphens{Pneumonoultramicroscopicsilicovolcanoconiosis}
^D
-[Para [Str "Pneumonoultramicroscopicsilicovolcanoconiosis"]]
+[ Para
+ [ Str "Pneumonoultramicroscopicsilicovolcanoconiosis" ]
+]
```
```
% pandoc -f latex -t native
\textnhtt{Pneumonoultramicroscopicsilicovolcanoconiosis}
^D
-[Para [Code ("",[],[]) "Pneumonoultramicroscopicsilicovolcanoconiosis"]]
+[ Para
+ [ Code
+ ( "" , [] , [] )
+ "Pneumonoultramicroscopicsilicovolcanoconiosis"
+ ]
+]
```
```
% pandoc -f latex -t native
\nhttfamily{Pneumonoultramicroscopicsilicovolcanoconiosis}
^D
-[Para [Code ("",[],[]) "Pneumonoultramicroscopicsilicovolcanoconiosis"]]
+[ Para
+ [ Code
+ ( "" , [] , [] )
+ "Pneumonoultramicroscopicsilicovolcanoconiosis"
+ ]
+]
```
diff --git a/test/command/ifstrequal.md b/test/command/ifstrequal.md
index 24ed7ef54..92fe6bf95 100644
--- a/test/command/ifstrequal.md
+++ b/test/command/ifstrequal.md
@@ -5,5 +5,12 @@
\h{a}
\h{b}
^D
-[Para [Emph [Str "no"],SoftBreak,Str "\225",SoftBreak,Str "b"]]
+[ Para
+ [ Emph [ Str "no" ]
+ , SoftBreak
+ , Str "\225"
+ , SoftBreak
+ , Str "b"
+ ]
+]
```
diff --git a/test/command/indented-fences.md b/test/command/indented-fences.md
index eb3b78212..12aade1a7 100644
--- a/test/command/indented-fences.md
+++ b/test/command/indented-fences.md
@@ -5,7 +5,7 @@
in y
```
^D
-[CodeBlock ("",["haskell"],[]) "let x = y\nin y"]
+[ CodeBlock ( "" , [ "haskell" ] , [] ) "let x = y\nin y" ]
`````
`````
% pandoc -t native
@@ -16,5 +16,7 @@ y +
y
~~~
^D
-[CodeBlock ("",["haskell"],[]) " let x = y\nin y +\ny +\ny"]
+[ CodeBlock
+ ( "" , [ "haskell" ] , [] ) " let x = y\nin y +\ny +\ny"
+]
`````
diff --git a/test/command/input-with-endinput.md b/test/command/input-with-endinput.md
new file mode 100644
index 000000000..55d298bc4
--- /dev/null
+++ b/test/command/input-with-endinput.md
@@ -0,0 +1,15 @@
+```
+% pandoc --from=latex -t native
+\begin{document}
+Visible
+
+\include{command/bar-endinput}
+
+Visible
+\end{document}
+^D
+[ Para [ Str "Visible" ]
+, Para [ Emph [ Str "hi" , Space , Str "there" ] ]
+, Para [ Str "Visible" ]
+]
+```
diff --git a/test/command/jats-figure-alt-text.md b/test/command/jats-figure-alt-text.md
new file mode 100644
index 000000000..229e52eda
--- /dev/null
+++ b/test/command/jats-figure-alt-text.md
@@ -0,0 +1,18 @@
+```
+% pandoc -f jats -t native
+<fig id="fig-1">
+ <caption>
+ <p>bar</p>
+ </caption>
+ <alt-text>alternative-decription</alt-text>
+ <graphic xlink:href="foo.png" xlink:alt-text="baz" />
+</fig>
+^D
+[ Para
+ [ Image
+ ( "fig-1" , [] , [ ( "alt" , "alternative-decription" ) ] )
+ [ Str "bar" ]
+ ( "foo.png" , "fig:" )
+ ]
+]
+```
diff --git a/test/command/latex-center.md b/test/command/latex-center.md
index 3d0bf0429..078a58068 100644
--- a/test/command/latex-center.md
+++ b/test/command/latex-center.md
@@ -7,7 +7,6 @@ Hello
\end{center}
^D
-[Div ("",["center"],[])
- [Para [Str "Hello"]]]
+[ Div ( "" , [ "center" ] , [] ) [ Para [ Str "Hello" ] ] ]
```
diff --git a/test/command/latex-color.md b/test/command/latex-color.md
index 9fd2585a3..97d7f84c0 100644
--- a/test/command/latex-color.md
+++ b/test/command/latex-color.md
@@ -4,21 +4,40 @@
% pandoc -f latex -t native
Hello \textcolor{red}{World}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","color: red")]) [Str "World"]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "color: red" ) ] ) [ Str "World" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\textcolor{red}{Hello} World
^D
-[Para [Span ("",[],[("style","color: red")]) [Str "Hello"],Space,Str "World"]]
+[ Para
+ [ Span
+ ( "" , [] , [ ( "style" , "color: red" ) ] ) [ Str "Hello" ]
+ , Space
+ , Str "World"
+ ]
+]
```
```
% pandoc -f latex -t native
Hello \textcolor{blue}{\textbf{World}}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","color: blue")]) [Strong [Str "World"]]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ ]
+]
```
@@ -26,7 +45,15 @@ Hello \textcolor{blue}{\textbf{World}}
% pandoc -f latex -t native
Hello \textcolor{blue}{\textbf{World}}.
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","color: blue")]) [Strong [Str "World"]],Str "."]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ , Str "."
+ ]
+]
```
```
@@ -38,10 +65,14 @@ Hello \textcolor{blue}{\textbf{World}}.
\end{itemize}
}
^D
-[Div ("",[],[("style","color: orange")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]]
+[ Div
+ ( "" , [] , [ ( "style" , "color: orange" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+]
```
```
@@ -53,11 +84,16 @@ Hello \textcolor{blue}{\textbf{World}}.
\end{itemize}
} some more text
^D
-[Div ("",[],[("style","color: blue")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]
-,Para [Str "some",Space,Str "more",Space,Str "text"]]
+[ Div
+ ( "" , [] , [ ( "style" , "color: blue" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+, Para
+ [ Str "some" , Space , Str "more" , Space , Str "text" ]
+]
```
# `\colorbox{}{}`
@@ -67,28 +103,57 @@ Hello \textcolor{blue}{\textbf{World}}.
% pandoc -f latex -t native
Hello \colorbox{red}{World}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","background-color: red")]) [Str "World"]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "background-color: red" ) ] )
+ [ Str "World" ]
+ ]
+]
```
```
% pandoc -f latex -t native
\colorbox{red}{Hello} World
^D
-[Para [Span ("",[],[("style","background-color: red")]) [Str "Hello"],Space,Str "World"]]
+[ Para
+ [ Span
+ ( "" , [] , [ ( "style" , "background-color: red" ) ] )
+ [ Str "Hello" ]
+ , Space
+ , Str "World"
+ ]
+]
```
```
% pandoc -f latex -t native
Hello \colorbox{blue}{\textbf{World}}
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","background-color: blue")]) [Strong [Str "World"]]]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "background-color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ ]
+]
```
```
% pandoc -f latex -t native
Hello \colorbox{blue}{\textbf{World}}.
^D
-[Para [Str "Hello",Space,Span ("",[],[("style","background-color: blue")]) [Strong [Str "World"]],Str "."]]
+[ Para
+ [ Str "Hello"
+ , Space
+ , Span
+ ( "" , [] , [ ( "style" , "background-color: blue" ) ] )
+ [ Strong [ Str "World" ] ]
+ , Str "."
+ ]
+]
```
```
@@ -102,10 +167,14 @@ Hello \colorbox{blue}{\textbf{World}}.
\end{minipage}
}
^D
-[Div ("",[],[("style","background-color: orange")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]]
+[ Div
+ ( "" , [] , [ ( "style" , "background-color: orange" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+]
```
```
@@ -119,9 +188,14 @@ Hello \colorbox{blue}{\textbf{World}}.
\end{minipage}
} some more text
^D
-[Div ("",[],[("style","background-color: blue")])
- [BulletList
- [[Para [Str "Item",Space,Str "1"]]
- ,[Para [Str "Item",Space,Str "2"]]]]
-,Para [Str "some",Space,Str "more",Space,Str "text"]]
+[ Div
+ ( "" , [] , [ ( "style" , "background-color: blue" ) ] )
+ [ BulletList
+ [ [ Para [ Str "Item" , Space , Str "1" ] ]
+ , [ Para [ Str "Item" , Space , Str "2" ] ]
+ ]
+ ]
+, Para
+ [ Str "some" , Space , Str "more" , Space , Str "text" ]
+]
```
diff --git a/test/command/latex-command-comment.md b/test/command/latex-command-comment.md
index 640277f15..1a1317925 100644
--- a/test/command/latex-command-comment.md
+++ b/test/command/latex-command-comment.md
@@ -1,7 +1,7 @@
```
-pandoc -f latex -t native
+% pandoc -f latex -t native
\emph%
{hi}
^D
-[Para [Emph [Str "hi"]]]
+[ Para [ Emph [ Str "hi" ] ] ]
```
diff --git a/test/command/latex-fontawesome.md b/test/command/latex-fontawesome.md
index 2a7e91185..18512ac72 100644
--- a/test/command/latex-fontawesome.md
+++ b/test/command/latex-fontawesome.md
@@ -2,12 +2,12 @@
% pandoc -f latex -t native
Check: \faCheck
^D
-[Para [Str "Check:",Space,Str "\10003"]]
+[ Para [ Str "Check:" , Space , Str "\10003" ] ]
```
```
% pandoc -f latex -t native
Close: \faClose
^D
-[Para [Str "Close:",Space,Str "\10007"]]
+[ Para [ Str "Close:" , Space , Str "\10007" ] ]
```
diff --git a/test/command/latex-tabular-column-specs.md b/test/command/latex-tabular-column-specs.md
index 7767667aa..586fed3d1 100644
--- a/test/command/latex-tabular-column-specs.md
+++ b/test/command/latex-tabular-column-specs.md
@@ -11,35 +11,85 @@ f & 0.5 & 5,5 \\
\bottomrule
\end{tabular}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath ""]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "f1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "f2"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "0.5"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "4"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "f"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "0.5"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Math InlineMath "5,5"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignLeft , ColWidthDefault )
+ , ( AlignLeft , ColWidthDefault )
+ , ( AlignLeft , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "f1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "f2" ] ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "e" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "0.5" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "4" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "f" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "0.5" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Math InlineMath "5,5" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/lettrine.md b/test/command/lettrine.md
index 7bbc20080..b4a2794d2 100644
--- a/test/command/lettrine.md
+++ b/test/command/lettrine.md
@@ -4,6 +4,17 @@
\lettrine[lhang=0.17]{A}{category} is
^D
-[Para [Span ("",["lettrine"],[]) [Str "A"],SmallCaps [Str "category"],Space,Str "is"]
-,Para [Span ("",["lettrine"],[]) [Str "A"],SmallCaps [Str "category"],Space,Str "is"]]
+[ Para
+ [ Span ( "" , [ "lettrine" ] , [] ) [ Str "A" ]
+ , SmallCaps [ Str "category" ]
+ , Space
+ , Str "is"
+ ]
+, Para
+ [ Span ( "" , [ "lettrine" ] , [] ) [ Str "A" ]
+ , SmallCaps [ Str "category" ]
+ , Space
+ , Str "is"
+ ]
+]
```
diff --git a/test/command/lstlisting.md b/test/command/lstlisting.md
index d928cc702..2ea8b4ba7 100644
--- a/test/command/lstlisting.md
+++ b/test/command/lstlisting.md
@@ -8,7 +8,16 @@ public class World {
}
\end{lstlisting}
^D
-[CodeBlock ("lst:Hello-World",["java"],[("language","Java"),("caption","Java Example"),("label","lst:Hello-World")]) "public class World {\n public static void main(String[] args) {\n System.out.println(\"Hello World\");\n }\n}"]
+[ CodeBlock
+ ( "lst:Hello-World"
+ , [ "java" ]
+ , [ ( "language" , "Java" )
+ , ( "caption" , "Java Example" )
+ , ( "label" , "lst:Hello-World" )
+ ]
+ )
+ "public class World {\n public static void main(String[] args) {\n System.out.println(\"Hello World\");\n }\n}"
+]
```
```
@@ -21,5 +30,15 @@ public class World {
}
\end{lstlisting}
^D
-[CodeBlock ("lst:Hello-World",["java"],[("language","Java"),("escapechar","|"),("caption","Java Example"),("label","lst:Hello-World")]) "public class World {\n public static void main(String[] args) {\n System.out.println(\"Hello World\");\n }\n}"]
+[ CodeBlock
+ ( "lst:Hello-World"
+ , [ "java" ]
+ , [ ( "language" , "Java" )
+ , ( "escapechar" , "|" )
+ , ( "caption" , "Java Example" )
+ , ( "label" , "lst:Hello-World" )
+ ]
+ )
+ "public class World {\n public static void main(String[] args) {\n System.out.println(\"Hello World\");\n }\n}"
+]
```
diff --git a/test/command/macro-defs-in-preamble.md b/test/command/macro-defs-in-preamble.md
index dd5a503df..7bd72d140 100644
--- a/test/command/macro-defs-in-preamble.md
+++ b/test/command/macro-defs-in-preamble.md
@@ -9,8 +9,10 @@
$\vara \varb$
\end{document}
^D
-Pandoc (Meta {unMeta = fromList []})
-[RawBlock (Format "latex") "\\newcommand{\\vara}{\\alpha}"
-,RawBlock (Format "latex") "\\newcommand{\\varb}{b}"
-,Para [Math InlineMath "\\vara \\varb"]]
+Pandoc
+ Meta { unMeta = fromList [] }
+ [ RawBlock (Format "latex") "\\newcommand{\\vara}{\\alpha}"
+ , RawBlock (Format "latex") "\\newcommand{\\varb}{b}"
+ , Para [ Math InlineMath "\\vara \\varb" ]
+ ]
```
diff --git a/test/command/macros.md b/test/command/macros.md
index e3c07e661..9f7a0f9d3 100644
--- a/test/command/macros.md
+++ b/test/command/macros.md
@@ -25,7 +25,7 @@ expanded at point of use:
```
% pandoc -f latex -t latex
\let\a\b
-\newcommand{\b}{\emph{ouk}}
+\def\b{\emph{ouk}}
\a a
^D
@@ -123,3 +123,39 @@ hello+hello
hello+goodbye
```
+```
+% pandoc -f latex -t plain
+\def\txt{a}
+\def\foo{\txt}
+\let\bar\foo
+\bar % -> a
+\def\txt{b}
+\bar % -> b
+\def\foo{OH}
+\bar % -> b
+^D
+a b b
+```
+
+```
+% pandoc -f latex -t plain
+\def\aaa{aaa}
+\def\bbb{x\aaa}
+\edef\ccc{y\aaa}
+\def\aaa{AAA}
+\bbb \ccc
+^D
+xAAAyaaa
+```
+
+```
+% pandoc -f latex -t plain
+\gdef\aaa{aaa}
+\gdef\bbb{x\aaa}
+\xdef\ccc{y\aaa}
+\gdef\aaa{AAA}
+\bbb \ccc
+^D
+xAAAyaaa
+```
+
diff --git a/test/command/md-abbrevs.md b/test/command/md-abbrevs.md
index 15ab8a728..a3ee6af30 100644
--- a/test/command/md-abbrevs.md
+++ b/test/command/md-abbrevs.md
@@ -6,7 +6,7 @@ space from being inserted in LaTeX output).
% pandoc -t native
Mr. Bob
^D
-[Para [Str "Mr.\160Bob"]]
+[ Para [ Str "Mr.\160Bob" ] ]
```
If you don't want this to happen you can escape the period:
@@ -15,6 +15,7 @@ If you don't want this to happen you can escape the period:
% pandoc -t native
Hi Mr\. Bob
^D
-[Para [Str "Hi",Space,Str "Mr.",Space,Str "Bob"]]
+[ Para [ Str "Hi" , Space , Str "Mr." , Space , Str "Bob" ]
+]
```
diff --git a/test/command/multiple-metadata-blocks.md b/test/command/multiple-metadata-blocks.md
index 5adbfe423..e117f3784 100644
--- a/test/command/multiple-metadata-blocks.md
+++ b/test/command/multiple-metadata-blocks.md
@@ -10,6 +10,10 @@ foo: bar
foo: bim
...
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaInlines [Str "bim"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList [ ( "foo" , MetaInlines [ Str "bim" ] ) ]
+ }
+ []
```
diff --git a/test/command/pandoc-citeproc-31.md b/test/command/pandoc-citeproc-31.md
index a06b2ae41..91aaa8f0b 100644
--- a/test/command/pandoc-citeproc-31.md
+++ b/test/command/pandoc-citeproc-31.md
@@ -29,8 +29,9 @@ Foo.[^1] Bar.[^2] Baz.[^3]
::: {#refs .references .csl-bib-body}
::: {#ref-item1 .csl-entry}
-Olson HA, 'Codes, Costs, and Critiques: The Organization of Information
-in *Library Quarterly*, 1931--2004' (2006) 76 *Library Quarterly* 19
+Olson HA, '[Codes, Costs, and Critiques: The Organization of Information
+in *Library Quarterly*, 1931--2004](https://doi.org/10.1086/504343)'
+(2006) 76 *Library Quarterly* 19
:::
::: {#ref-item2 .csl-entry}
diff --git a/test/command/pandoc-citeproc-312.md b/test/command/pandoc-citeproc-312.md
index dfc4fe25c..20a9b759b 100644
--- a/test/command/pandoc-citeproc-312.md
+++ b/test/command/pandoc-citeproc-312.md
@@ -6,7 +6,7 @@ nocite: '@*'
references:
- author:
- literal: NN
- id: Y
+ id: 'Y'
issued:
- year: 1950
title: 'Date: Year'
diff --git a/test/command/pandoc-citeproc-327.md b/test/command/pandoc-citeproc-327.md
index 92b29bdf8..2ea3a247e 100644
--- a/test/command/pandoc-citeproc-327.md
+++ b/test/command/pandoc-citeproc-327.md
@@ -44,8 +44,8 @@ I referenced something here^\[1\]^
::: {#refs .references .csl-bib-body}
::: {#ref-LiLiaoDongWanHaiYuDiQiDongWuCiJiShengChanLiYanJiuJiShengJingGuaYiXingPingJie2017 .csl-entry}
[\[1\] ]{.csl-left-margin}[李轶平, 于旭光, 孙明, 等.
-辽东湾海域底栖动物次级生产力研究及生境适宜性评价\[J\]. 水产科学,
-2017(06): 728--734.]{.csl-right-inline}
+[辽东湾海域底栖动物次级生产力研究及生境适宜性评价](http://kns.cnki.net/kns/detail/detail.aspx?QueryID=4&CurRec=4&recid=&FileName=CHAN201706006&DbName=CJFDLAST2018&DbCode=CJFQ&yx=Y&pr=&URLID=21.1110.S.20171129.1725.006)\[J\].
+水产科学, 2017(6): 728--734.]{.csl-right-inline}
:::
:::
```
diff --git a/test/command/pandoc-citeproc-338.md b/test/command/pandoc-citeproc-338.md
index 3250b680e..c9cf0d254 100644
--- a/test/command/pandoc-citeproc-338.md
+++ b/test/command/pandoc-citeproc-338.md
@@ -28,8 +28,7 @@ references:
::: {#ref-item-1 .csl-entry}
[Wolfinger, Christine]{.smallcaps}: *Keine Angst vor Linux, Unix: ein
Lehrbuch für Linux- und Unix-Anwender*. 11., vollst. überarb. Aufl.
-Aufl. Berlin \[u.a.\] : Springer Vieweg, 2013
---- ISBN [978-3-642-32078-1](https://worldcat.org/isbn/978-3-642-32078-1)
+Aufl. Berlin \[u.a.\] : Springer Vieweg, 2013 --- ISBN 978-3-642-32078-1
:::
:::
```
diff --git a/test/command/pandoc-citeproc-386.md b/test/command/pandoc-citeproc-386.md
index 6f346e7db..ae709fc34 100644
--- a/test/command/pandoc-citeproc-386.md
+++ b/test/command/pandoc-citeproc-386.md
@@ -28,8 +28,8 @@ references:
::: {#refs .references .csl-bib-body line-spacing="2"}
::: {#ref-ding_metallic_2012 .csl-entry}
-[\[1\] ]{.csl-left-margin}[K. Ding, C. Z. Ning, *Light Sci. Appl.*
-**2012**, *1*, e20.]{.csl-right-inline}
+[[\[1\]K. Ding, C. Z. Ning, *Light Sci. Appl.* **2012**, *1*,
+e20](https://doi.org/10.1038/lsa.2012.20)]{.csl-left-margin}.
:::
:::
```
diff --git a/test/command/refs.md b/test/command/refs.md
index 320d63e17..c6457be4c 100644
--- a/test/command/refs.md
+++ b/test/command/refs.md
@@ -2,21 +2,78 @@
% pandoc -f latex -t native
Figure \ref{fig:1}
^D
-[Para [Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:1")]) [Str "[fig:1]"] ("#fig:1","")]]
+[ Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:1" )
+ ]
+ )
+ [ Str "[fig:1]" ]
+ ( "#fig:1" , "" )
+ ]
+]
```
```
% pandoc -f latex -t native
Figure \cref{fig:1}
^D
-[Para [Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:1")]) [Str "[fig:1]"] ("#fig:1","")]]
+[ Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:1" )
+ ]
+ )
+ [ Str "[fig:1]" ]
+ ( "#fig:1" , "" )
+ ]
+]
```
```
% pandoc -f latex -t native
Figure \vref{fig:1}
^D
-[Para [Str "Figure",Space,Link ("",[],[("reference-type","ref+page"),("reference","fig:1")]) [Str "[fig:1]"] ("#fig:1","")]]
+[ Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref+page" )
+ , ( "reference" , "fig:1" )
+ ]
+ )
+ [ Str "[fig:1]" ]
+ ( "#fig:1" , "" )
+ ]
+]
+```
+
+```
+% pandoc -f latex -t native
+\autoref{fig:flowchart}
+^D
+[ Para
+ [ Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "autoref" )
+ , ( "reference" , "fig:flowchart" )
+ ]
+ )
+ [ Str "[fig:flowchart]" ]
+ ( "#fig:flowchart" , "" )
+ ]
+]
```
```
@@ -28,8 +85,42 @@ Accuracy~\eqref{eq:Accuracy} is the proportion, measuring true results among all
Accuracy = \frac{t_p + t_n}{t_p + f_p + f_n + t_n}
\end{equation}
^D
-[Para [Str "Accuracy\160",Link ("",[],[("reference-type","eqref"),("reference","eq:Accuracy")]) [Str "[eq:Accuracy]"] ("#eq:Accuracy",""),Space,Str "is",Space,Str "the",Space,Str "proportion,",Space,Str "measuring",Space,Str "true",Space,Str "results",Space,Str "among",Space,Str "all",Space,Str "results."]
-,Para [Math DisplayMath "\\label{eq:Accuracy}\n Accuracy = \\frac{t_p + t_n}{t_p + f_p + f_n + t_n}"]]
+[ Para
+ [ Str "Accuracy\160"
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "eqref" )
+ , ( "reference" , "eq:Accuracy" )
+ ]
+ )
+ [ Str "[eq:Accuracy]" ]
+ ( "#eq:Accuracy" , "" )
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "proportion,"
+ , Space
+ , Str "measuring"
+ , Space
+ , Str "true"
+ , Space
+ , Str "results"
+ , Space
+ , Str "among"
+ , Space
+ , Str "all"
+ , Space
+ , Str "results."
+ ]
+, Para
+ [ Math
+ DisplayMath
+ "\\label{eq:Accuracy}\n Accuracy = \\frac{t_p + t_n}{t_p + f_p + f_n + t_n}"
+ ]
+]
```
```
@@ -42,8 +133,34 @@ Accuracy~\eqref{eq:Accuracy} is the proportion, measuring true results among all
Figure \ref{fig:Logo} illustrated the SVG logo
^D
-[Para [Image ("fig:Logo",[],[]) [Str "Logo"] ("command/SVG_logo.svg","fig:")]
-,Para [Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:Logo")]) [Str "1"] ("#fig:Logo",""),Space,Str "illustrated",Space,Str "the",Space,Str "SVG",Space,Str "logo"]]
+[ Para
+ [ Image
+ ( "fig:Logo" , [] , [] )
+ [ Str "Logo" ]
+ ( "command/SVG_logo.svg" , "fig:" )
+ ]
+, Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:Logo" )
+ ]
+ )
+ [ Str "1" ]
+ ( "#fig:Logo" , "" )
+ , Space
+ , Str "illustrated"
+ , Space
+ , Str "the"
+ , Space
+ , Str "SVG"
+ , Space
+ , Str "logo"
+ ]
+]
```
```
@@ -77,15 +194,91 @@ Figure \ref{fig:Logo2} illustrated the SVG logo
Figure \ref{fig:Logo3} illustrated the SVG logo
^D
-[Header 1 ("one",[],[]) [Str "One"]
-,Para [Image ("fig:Logo",[],[]) [Str "Logo"] ("command/SVG_logo.svg","fig:")]
-,Para [Image ("fig:Logo2",[],[]) [Str "Logo2"] ("command/SVG_logo2.svg","fig:")]
-,Header 1 ("two",[],[]) [Str "Two"]
-,Header 2 ("subone",[],[]) [Str "Subone"]
-,Para [Image ("fig:Logo3",[],[]) [Str "Logo3"] ("command/SVG_logo3.svg","fig:")]
-,Para [Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:Logo")]) [Str "1.1"] ("#fig:Logo",""),Space,Str "illustrated",Space,Str "the",Space,Str "SVG",Space,Str "logo"]
-,Para [Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:Logo2")]) [Str "1.2"] ("#fig:Logo2",""),Space,Str "illustrated",Space,Str "the",Space,Str "SVG",Space,Str "logo"]
-,Para [Str "Figure",Space,Link ("",[],[("reference-type","ref"),("reference","fig:Logo3")]) [Str "2.1"] ("#fig:Logo3",""),Space,Str "illustrated",Space,Str "the",Space,Str "SVG",Space,Str "logo"]]
+[ Header 1 ( "one" , [] , [] ) [ Str "One" ]
+, Para
+ [ Image
+ ( "fig:Logo" , [] , [] )
+ [ Str "Logo" ]
+ ( "command/SVG_logo.svg" , "fig:" )
+ ]
+, Para
+ [ Image
+ ( "fig:Logo2" , [] , [] )
+ [ Str "Logo2" ]
+ ( "command/SVG_logo2.svg" , "fig:" )
+ ]
+, Header 1 ( "two" , [] , [] ) [ Str "Two" ]
+, Header 2 ( "subone" , [] , [] ) [ Str "Subone" ]
+, Para
+ [ Image
+ ( "fig:Logo3" , [] , [] )
+ [ Str "Logo3" ]
+ ( "command/SVG_logo3.svg" , "fig:" )
+ ]
+, Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:Logo" )
+ ]
+ )
+ [ Str "1.1" ]
+ ( "#fig:Logo" , "" )
+ , Space
+ , Str "illustrated"
+ , Space
+ , Str "the"
+ , Space
+ , Str "SVG"
+ , Space
+ , Str "logo"
+ ]
+, Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:Logo2" )
+ ]
+ )
+ [ Str "1.2" ]
+ ( "#fig:Logo2" , "" )
+ , Space
+ , Str "illustrated"
+ , Space
+ , Str "the"
+ , Space
+ , Str "SVG"
+ , Space
+ , Str "logo"
+ ]
+, Para
+ [ Str "Figure"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "fig:Logo3" )
+ ]
+ )
+ [ Str "2.1" ]
+ ( "#fig:Logo3" , "" )
+ , Space
+ , Str "illustrated"
+ , Space
+ , Str "the"
+ , Space
+ , Str "SVG"
+ , Space
+ , Str "logo"
+ ]
+]
```
@@ -93,5 +286,20 @@ Figure \ref{fig:Logo3} illustrated the SVG logo
% pandoc -f latex -t native
\label{section} Section \ref{section}
^D
-[Para [Span ("section",[],[("label","section")]) [Str "[section]"],Space,Str "Section",Space,Link ("",[],[("reference-type","ref"),("reference","section")]) [Str "[section]"] ("#section","")]]
+[ Para
+ [ Span ( "section" , [] , [ ( "label" , "section" ) ] ) []
+ , Space
+ , Str "Section"
+ , Space
+ , Link
+ ( ""
+ , []
+ , [ ( "reference-type" , "ref" )
+ , ( "reference" , "section" )
+ ]
+ )
+ [ Str "[section]" ]
+ ( "#section" , "" )
+ ]
+]
```
diff --git a/test/command/setext-fenced-div.md b/test/command/setext-fenced-div.md
index 27301ea22..3494cbf70 100644
--- a/test/command/setext-fenced-div.md
+++ b/test/command/setext-fenced-div.md
@@ -4,6 +4,5 @@
---
:::
^D
-[Div ("",["cell"],[])
- [HorizontalRule]]
+[ Div ( "" , [ "cell" ] , [] ) [ HorizontalRule ] ]
```
diff --git a/test/command/shift-heading-level-by.md b/test/command/shift-heading-level-by.md
index 323783f24..1ce966989 100644
--- a/test/command/shift-heading-level-by.md
+++ b/test/command/shift-heading-level-by.md
@@ -8,9 +8,21 @@ title: My title
## Second
^D
-Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Str "My",Space,Str "title"])]})
-[Header 2 ("first-heading",[],[]) [Str "First",Space,Str "heading"]
-,Header 3 ("second",[],[]) [Str "Second"]]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "title"
+ , MetaInlines [ Str "My" , Space , Str "title" ]
+ )
+ ]
+ }
+ [ Header
+ 2
+ ( "first-heading" , [] , [] )
+ [ Str "First" , Space , Str "heading" ]
+ , Header 3 ( "second" , [] , [] ) [ Str "Second" ]
+ ]
```
```
@@ -25,8 +37,23 @@ title: Old title
# Another top-level heading
^D
-Pandoc (Meta {unMeta = fromList [("title",MetaInlines [Str "First",Space,Str "heading"])]})
-[Header 1 ("second",[],[]) [Str "Second"]
-,Para [Str "Another",Space,Str "top-level",Space,Str "heading"]]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "title"
+ , MetaInlines [ Str "First" , Space , Str "heading" ]
+ )
+ ]
+ }
+ [ Header 1 ( "second" , [] , [] ) [ Str "Second" ]
+ , Para
+ [ Str "Another"
+ , Space
+ , Str "top-level"
+ , Space
+ , Str "heading"
+ ]
+ ]
```
diff --git a/test/command/sloppypar.md b/test/command/sloppypar.md
index e2ff4d550..44ec93af3 100644
--- a/test/command/sloppypar.md
+++ b/test/command/sloppypar.md
@@ -6,8 +6,111 @@ Sequi id qui facere et incidunt ut. Et fuga ut voluptate enim qui. Odit unde mag
Qui et temporibus explicabo. Esse ab ut quidem. Vel qui perspiciatis quae odio consectetur alias non sed. Quo consectetur libero omnis quos eius ad vel.
\end{sloppypar}
^D
-[Para [Str "Sequi",Space,Str "id",Space,Str "qui",Space,Str "facere",Space,Str "et",Space,Str "incidunt",Space,Str "ut.",Space,Str "Et",Space,Str "fuga",Space,Str "ut",Space,Str "voluptate",Space,Str "enim",Space,Str "qui.",Space,Str "Odit",Space,Str "unde",Space,Str "magni",Space,Str "ipsam",Space,Str "dicta",Space,Str "modi.",Space,Str "Modi",Space,Str "soluta",Space,Str "velit",Space,Str "est",Space,Str "aut",Space,Str "aut",Space,Str "possimus."]
-,Para [Str "Qui",Space,Str "et",Space,Str "temporibus",Space,Str "explicabo.",Space,Str "Esse",Space,Str "ab",Space,Str "ut",Space,Str "quidem.",Space,Str "Vel",Space,Str "qui",Space,Str "perspiciatis",Space,Str "quae",Space,Str "odio",Space,Str "consectetur",Space,Str "alias",Space,Str "non",Space,Str "sed.",Space,Str "Quo",Space,Str "consectetur",Space,Str "libero",Space,Str "omnis",Space,Str "quos",Space,Str "eius",Space,Str "ad",Space,Str "vel."]]
+[ Para
+ [ Str "Sequi"
+ , Space
+ , Str "id"
+ , Space
+ , Str "qui"
+ , Space
+ , Str "facere"
+ , Space
+ , Str "et"
+ , Space
+ , Str "incidunt"
+ , Space
+ , Str "ut."
+ , Space
+ , Str "Et"
+ , Space
+ , Str "fuga"
+ , Space
+ , Str "ut"
+ , Space
+ , Str "voluptate"
+ , Space
+ , Str "enim"
+ , Space
+ , Str "qui."
+ , Space
+ , Str "Odit"
+ , Space
+ , Str "unde"
+ , Space
+ , Str "magni"
+ , Space
+ , Str "ipsam"
+ , Space
+ , Str "dicta"
+ , Space
+ , Str "modi."
+ , Space
+ , Str "Modi"
+ , Space
+ , Str "soluta"
+ , Space
+ , Str "velit"
+ , Space
+ , Str "est"
+ , Space
+ , Str "aut"
+ , Space
+ , Str "aut"
+ , Space
+ , Str "possimus."
+ ]
+, Para
+ [ Str "Qui"
+ , Space
+ , Str "et"
+ , Space
+ , Str "temporibus"
+ , Space
+ , Str "explicabo."
+ , Space
+ , Str "Esse"
+ , Space
+ , Str "ab"
+ , Space
+ , Str "ut"
+ , Space
+ , Str "quidem."
+ , Space
+ , Str "Vel"
+ , Space
+ , Str "qui"
+ , Space
+ , Str "perspiciatis"
+ , Space
+ , Str "quae"
+ , Space
+ , Str "odio"
+ , Space
+ , Str "consectetur"
+ , Space
+ , Str "alias"
+ , Space
+ , Str "non"
+ , Space
+ , Str "sed."
+ , Space
+ , Str "Quo"
+ , Space
+ , Str "consectetur"
+ , Space
+ , Str "libero"
+ , Space
+ , Str "omnis"
+ , Space
+ , Str "quos"
+ , Space
+ , Str "eius"
+ , Space
+ , Str "ad"
+ , Space
+ , Str "vel."
+ ]
+]
```
```
@@ -18,6 +121,109 @@ Sequi id qui facere et incidunt ut. Et fuga ut voluptate enim qui. Odit unde mag
Qui et temporibus explicabo. Esse ab ut quidem. Vel qui perspiciatis quae odio consectetur alias non sed. Quo consectetur libero omnis quos eius ad vel.
\end{sloppypar}
^D
-[Para [Str "Sequi",Space,Str "id",Space,Str "qui",Space,Str "facere",Space,Str "et",Space,Str "incidunt",Space,Str "ut.",Space,Str "Et",Space,Str "fuga",Space,Str "ut",Space,Str "voluptate",Space,Str "enim",Space,Str "qui.",Space,Str "Odit",Space,Str "unde",Space,Str "magni",Space,Str "ipsam",Space,Str "dicta",Space,Str "modi.",Space,Str "Modi",Space,Str "soluta",Space,Str "velit",Space,Str "est",Space,Str "aut",Space,Str "aut",Space,Str "possimus."]
-,Para [Str "Qui",Space,Str "et",Space,Str "temporibus",Space,Str "explicabo.",Space,Str "Esse",Space,Str "ab",Space,Str "ut",Space,Str "quidem.",Space,Str "Vel",Space,Str "qui",Space,Str "perspiciatis",Space,Str "quae",Space,Str "odio",Space,Str "consectetur",Space,Str "alias",Space,Str "non",Space,Str "sed.",Space,Str "Quo",Space,Str "consectetur",Space,Str "libero",Space,Str "omnis",Space,Str "quos",Space,Str "eius",Space,Str "ad",Space,Str "vel."]]
+[ Para
+ [ Str "Sequi"
+ , Space
+ , Str "id"
+ , Space
+ , Str "qui"
+ , Space
+ , Str "facere"
+ , Space
+ , Str "et"
+ , Space
+ , Str "incidunt"
+ , Space
+ , Str "ut."
+ , Space
+ , Str "Et"
+ , Space
+ , Str "fuga"
+ , Space
+ , Str "ut"
+ , Space
+ , Str "voluptate"
+ , Space
+ , Str "enim"
+ , Space
+ , Str "qui."
+ , Space
+ , Str "Odit"
+ , Space
+ , Str "unde"
+ , Space
+ , Str "magni"
+ , Space
+ , Str "ipsam"
+ , Space
+ , Str "dicta"
+ , Space
+ , Str "modi."
+ , Space
+ , Str "Modi"
+ , Space
+ , Str "soluta"
+ , Space
+ , Str "velit"
+ , Space
+ , Str "est"
+ , Space
+ , Str "aut"
+ , Space
+ , Str "aut"
+ , Space
+ , Str "possimus."
+ ]
+, Para
+ [ Str "Qui"
+ , Space
+ , Str "et"
+ , Space
+ , Str "temporibus"
+ , Space
+ , Str "explicabo."
+ , Space
+ , Str "Esse"
+ , Space
+ , Str "ab"
+ , Space
+ , Str "ut"
+ , Space
+ , Str "quidem."
+ , Space
+ , Str "Vel"
+ , Space
+ , Str "qui"
+ , Space
+ , Str "perspiciatis"
+ , Space
+ , Str "quae"
+ , Space
+ , Str "odio"
+ , Space
+ , Str "consectetur"
+ , Space
+ , Str "alias"
+ , Space
+ , Str "non"
+ , Space
+ , Str "sed."
+ , Space
+ , Str "Quo"
+ , Space
+ , Str "consectetur"
+ , Space
+ , Str "libero"
+ , Space
+ , Str "omnis"
+ , Space
+ , Str "quos"
+ , Space
+ , Str "eius"
+ , Space
+ , Str "ad"
+ , Space
+ , Str "vel."
+ ]
+]
```
diff --git a/test/command/table-with-cell-align.md b/test/command/table-with-cell-align.md
index f6a454ad2..ccf119cbd 100644
--- a/test/command/table-with-cell-align.md
+++ b/test/command/table-with-cell-align.md
@@ -13,27 +13,50 @@
</tgroup>
</informaltable>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "1"]]
- ,Cell ("",[],[]) AlignLeft (RowSpan 1) (ColSpan 1)
- [Para [Str "2"]]
- ,Cell ("",[],[]) AlignRight (RowSpan 1) (ColSpan 1)
- [Para [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "4"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignLeft
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignRight
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "3" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "4" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
% pandoc -f native -t opendocument --quiet
diff --git a/test/command/table-with-column-span.md b/test/command/table-with-column-span.md
index 55977554f..d4e8bebd4 100644
--- a/test/command/table-with-column-span.md
+++ b/test/command/table-with-column-span.md
@@ -49,73 +49,182 @@
</tgroup>
</informaltable>
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)
- ,(AlignDefault,ColWidth 6.25e-2)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 8)
- [Para [Strong [Str "Octet",Space,Str "no.",Space,Str "1"]]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 8)
- [Para [Strong [Str "Octet",Space,Str "no.",Space,Str "2"]]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "16"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "15"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "14"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "13"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "12"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "11"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "10"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "9"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "8"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "7"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "6"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "5"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "4"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "3"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "2"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 1)
- [Para [Str "1"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 8)
- [Para [Str "Code",Space,Str "A"]]
- ,Cell ("",[],[]) AlignCenter (RowSpan 1) (ColSpan 8)
- [Para [Str "Code",Space,Str "B"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ , ( AlignDefault , ColWidth 6.25e-2 )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 8)
+ [ Para
+ [ Strong
+ [ Str "Octet"
+ , Space
+ , Str "no."
+ , Space
+ , Str "1"
+ ]
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 8)
+ [ Para
+ [ Strong
+ [ Str "Octet"
+ , Space
+ , Str "no."
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "16" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "15" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "14" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "13" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "12" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "11" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "10" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "9" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "8" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "7" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "6" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "5" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "4" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "3" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Para [ Str "1" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 8)
+ [ Para [ Str "Code" , Space , Str "A" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignCenter
+ (RowSpan 1)
+ (ColSpan 8)
+ [ Para [ Str "Code" , Space , Str "B" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
% pandoc -f native -t opendocument --quiet
diff --git a/test/command/tabularx.md b/test/command/tabularx.md
index 209517e00..399741732 100644
--- a/test/command/tabularx.md
+++ b/test/command/tabularx.md
@@ -20,44 +20,129 @@
\hline
\end{tabularx}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.3"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignCenter , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "1"
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "2"
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.3" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
@@ -82,44 +167,129 @@
\hline
\end{tabularx}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignLeft,ColWidth 0.25)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.3"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignLeft , ColWidthDefault )
+ , ( AlignCenter , ColWidthDefault )
+ , ( AlignLeft , ColWidth 0.25 )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "1"
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "2"
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.3" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
```
@@ -144,42 +314,127 @@
\hline
\end{tabularx}
^D
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidth 0.25)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignLeft,ColWidth 0.25)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Column",Space,Str "Heading",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1.3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2.3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3.3"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignLeft , ColWidth 0.25 )
+ , ( AlignCenter , ColWidthDefault )
+ , ( AlignLeft , ColWidth 0.25 )
+ ]
+ (TableHead
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "1"
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "2"
+ ]
+ ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain
+ [ Str "Column"
+ , Space
+ , Str "Heading"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ ])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ []
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "1.3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "2.3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Cell" , Space , Str "3.3" ] ]
+ ]
+ ]
+ ]
+ (TableFoot ( "" , [] , [] ) [])
+]
```
diff --git a/test/command/translations.md b/test/command/translations.md
index 34531df7c..8d1890467 100644
--- a/test/command/translations.md
+++ b/test/command/translations.md
@@ -2,14 +2,14 @@
% pandoc -f latex -t native -M lang=en
\figurename\ 2
^D
-[Para [Str "Figure\160\&2"]]
+[ Para [ Str "Figure\160\&2" ] ]
```
```
% pandoc -f latex -t native -M lang=de-DE
\figurename\ 2
^D
-[Para [Str "Abbildung\160\&2"]]
+[ Para [ Str "Abbildung\160\&2" ] ]
```
```
@@ -17,7 +17,7 @@
\setmainlanguage{german}
\figurename 2
^D
-[Para [Str "Abbildung2"]]
+[ Para [ Str "Abbildung2" ] ]
```
```
@@ -25,5 +25,5 @@
\figurename~2
\figurename.
^D
-[Para [Str "Slika\160\&2",SoftBreak,Str "Slika."]]
+[ Para [ Str "Slika\160\&2" , SoftBreak , Str "Slika." ] ]
```
diff --git a/test/command/video-audio.md b/test/command/video-audio.md
index 451b614d8..4fbd58db3 100644
--- a/test/command/video-audio.md
+++ b/test/command/video-audio.md
@@ -10,9 +10,13 @@
![](./test.jpg)
^D
-<p><video src="./test.mp4" controls=""><a href="./test.mp4">Video</a></video></p>
-<p><video src="foo/test.webm" width="300" controls=""><a href="foo/test.webm">Your browser does not support video.</a></video></p>
-<p><audio src="test.mp3" controls=""><a href="test.mp3">Audio</a></audio></p>
+<p><video src="./test.mp4" controls=""><a
+href="./test.mp4">Video</a></video></p>
+<p><video src="foo/test.webm" width="300" controls=""><a
+href="foo/test.webm">Your browser does not support
+video.</a></video></p>
+<p><audio src="test.mp3" controls=""><a
+href="test.mp3">Audio</a></audio></p>
<p><embed src="./test.pdf" /></p>
<p><img src="./test.jpg" /></p>
```
diff --git a/test/command/write18.md b/test/command/write18.md
index 5000c298b..4a3f10b85 100644
--- a/test/command/write18.md
+++ b/test/command/write18.md
@@ -3,12 +3,12 @@ Handle \write18{..} as raw tex:
% pandoc -t native
\write18{git --version}
^D
-[RawBlock (Format "tex") "\\write18{git --version}"]
+[ RawBlock (Format "tex") "\\write18{git --version}" ]
```
```
% pandoc -f latex+raw_tex -t native
\write18{git --version}
^D
-[RawBlock (Format "latex") "\\write18{git --version}"]
+[ RawBlock (Format "latex") "\\write18{git --version}" ]
```
diff --git a/test/command/yaml-metadata-blocks.md b/test/command/yaml-metadata-blocks.md
index 0733623dd..d92994b03 100644
--- a/test/command/yaml-metadata-blocks.md
+++ b/test/command/yaml-metadata-blocks.md
@@ -6,8 +6,10 @@ foo:
bar_: as should this
---
^D
-Pandoc (Meta {unMeta = fromList [("foo",MetaMap (fromList []))]})
-[]
+Pandoc
+ Meta
+ { unMeta = fromList [ ( "foo" , MetaMap (fromList []) ) ] }
+ []
```
```
% pandoc -s -t native
@@ -32,8 +34,32 @@ nested:
scientific: 3.7e-5
---
^D
-Pandoc (Meta {unMeta = fromList [("bool",MetaBool True),("empty",MetaList []),("float",MetaInlines [Str "1.5"]),("int",MetaInlines [Str "7"]),("more",MetaBool False),("nested",MetaMap (fromList [("bool",MetaBool True),("empty",MetaList []),("float",MetaInlines [Str "2.5"]),("int",MetaInlines [Str "8"]),("more",MetaBool False),("nothing",MetaInlines [Str "null"]),("scientific",MetaInlines [Str "3.7e-5"])])),("nothing",MetaInlines [Str "null"]),("scientific",MetaInlines [Str "3.7e-5"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "bool" , MetaBool True )
+ , ( "empty" , MetaList [] )
+ , ( "float" , MetaInlines [ Str "1.5" ] )
+ , ( "int" , MetaInlines [ Str "7" ] )
+ , ( "more" , MetaBool False )
+ , ( "nested"
+ , MetaMap
+ (fromList
+ [ ( "bool" , MetaBool True )
+ , ( "empty" , MetaList [] )
+ , ( "float" , MetaInlines [ Str "2.5" ] )
+ , ( "int" , MetaInlines [ Str "8" ] )
+ , ( "more" , MetaBool False )
+ , ( "nothing" , MetaString "" )
+ , ( "scientific" , MetaInlines [ Str "3.7e-5" ] )
+ ])
+ )
+ , ( "nothing" , MetaString "" )
+ , ( "scientific" , MetaInlines [ Str "3.7e-5" ] )
+ ]
+ }
+ []
```
```
% pandoc -s -t native
@@ -43,8 +69,20 @@ array:
- bool: True
---
^D
-Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",MetaInlines [Str "bar"])]),MetaMap (fromList [("bool",MetaBool True)])])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "array"
+ , MetaList
+ [ MetaMap
+ (fromList [ ( "foo" , MetaInlines [ Str "bar" ] ) ])
+ , MetaMap (fromList [ ( "bool" , MetaBool True ) ])
+ ]
+ )
+ ]
+ }
+ []
```
```
% pandoc -s -t native --metadata-file command/yaml-metadata.yaml
@@ -52,12 +90,32 @@ Pandoc (Meta {unMeta = fromList [("array",MetaList [MetaMap (fromList [("foo",Me
title: document
---
^D
-Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaInlines [Str "document"])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "other"
+ , MetaInlines
+ [ Emph [ Str "markdown" ] , Space , Str "value" ]
+ )
+ , ( "title" , MetaInlines [ Str "document" ] )
+ ]
+ }
+ []
```
```
% pandoc -s -t native --metadata-file command/yaml-metadata.yaml -M title=cmdline
^D
-Pandoc (Meta {unMeta = fromList [("other",MetaInlines [Emph [Str "markdown"],Space,Str "value"]),("title",MetaString "cmdline")]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "other"
+ , MetaInlines
+ [ Emph [ Str "markdown" ] , Space , Str "value" ]
+ )
+ , ( "title" , MetaString "cmdline" )
+ ]
+ }
+ []
```
diff --git a/test/command/yaml-with-chomp.md b/test/command/yaml-with-chomp.md
index d4c4f7cfd..98cc76e18 100644
--- a/test/command/yaml-with-chomp.md
+++ b/test/command/yaml-with-chomp.md
@@ -7,6 +7,14 @@ ml: |-
BLOCK
...
^D
-Pandoc (Meta {unMeta = fromList [("ml",MetaBlocks [Para [Str "TEST"],Plain [Str "BLOCK"]])]})
-[]
+Pandoc
+ Meta
+ { unMeta =
+ fromList
+ [ ( "ml"
+ , MetaBlocks [ Para [ Str "TEST" ] , Plain [ Str "BLOCK" ] ]
+ )
+ ]
+ }
+ []
```