From 8667ba2bcc8a7da6ba50369161c0bcb9020780e8 Mon Sep 17 00:00:00 2001
From: Peter Fabinski
Date: Tue, 3 Aug 2021 17:34:39 -0400
Subject: LaTeX table writer: Increase column width precision (#7466)
In some cases, the rounding performed by the LaTeX table
writer would introduce visible overrun outside the text
area.
This adds two more decimal places to the width values.
---
test/tables/nordics.latex | 8 ++++----
test/tables/students.latex | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'test/tables')
diff --git a/test/tables/nordics.latex b/test/tables/nordics.latex
index 6f17a163e..4c10865dc 100644
--- a/test/tables/nordics.latex
+++ b/test/tables/nordics.latex
@@ -1,8 +1,8 @@
\begin{longtable}[]{@{}
- >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.30}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.30}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}}@{}}
+ >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2000}}@{}}
\caption{States belonging to the \emph{Nordics.}}\tabularnewline
\toprule
\begin{minipage}[b]{\linewidth}\centering
diff --git a/test/tables/students.latex b/test/tables/students.latex
index 3d4d287d9..b1ea45ac8 100644
--- a/test/tables/students.latex
+++ b/test/tables/students.latex
@@ -1,6 +1,6 @@
\begin{longtable}[]{@{}
- >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.50}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.50}}@{}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}}
\caption{List of Students}\tabularnewline
\toprule
\begin{minipage}[b]{\linewidth}\centering
--
cgit v1.2.3
From c266734448544a118ed80e47deaa2590131c7f84 Mon Sep 17 00:00:00 2001
From: John MacFarlane
Date: Sun, 19 Sep 2021 12:09:51 -0700
Subject: Use pretty-simple to format native output.
Previously we used our own homespun formatting. But this
produces over-long lines that aren't ideal for diffs in tests.
Easier to use something off-the-shelf and standard.
Closes #7580.
Performance is slower by about a factor of 10, but this isn't
really a problem because native isn't suitable as a serialization
format. (For serialization you should use json, because the reader
is so much faster than native.)
---
pandoc.cabal | 3 +-
src/Text/Pandoc/Writers/Native.hs | 88 +-
test/Tests/Old.hs | 6 +-
test/command/1390.md | 4 +-
test/command/1592.md | 44 +-
test/command/1608.md | 189 +-
test/command/168.md | 46 +-
test/command/1718.md | 8 +-
test/command/1773.md | 2 +-
test/command/1881.md | 175 +-
test/command/2118.md | 8 +-
test/command/2549.md | 13 +-
test/command/256.md | 34 +-
test/command/3113.md | 4 +-
test/command/3123.md | 6 +-
test/command/3236.md | 14 +-
test/command/3257.md | 4 +-
test/command/3348.md | 77 +-
test/command/3401.md | 4 +-
test/command/3407.md | 4 +-
test/command/3510.md | 23 +-
test/command/3511.md | 47 +-
test/command/3516.md | 60 +-
test/command/3530.md | 58 +-
test/command/3533-rst-csv-tables.md | 282 +-
test/command/3534.md | 42 +-
test/command/3537.md | 6 +-
test/command/3539.md | 248 +-
test/command/3558.md | 10 +-
test/command/3585.md | 28 +-
test/command/3587.md | 108 +-
test/command/3681.md | 48 +-
test/command/3706.md | 104 +-
test/command/3708.md | 58 +-
test/command/3733.md | 9 +-
test/command/3755.md | 36 +-
test/command/3779.md | 41 +-
test/command/3794.md | 3 +-
test/command/3804.md | 4 +-
test/command/3853.md | 10 +-
test/command/3880.md | 2 +-
test/command/3916.md | 16 +-
test/command/3947.md | 7 +-
test/command/3958.md | 6 +-
test/command/3971.md | 2 +-
test/command/3983.md | 16 +-
test/command/3989.md | 19 +-
test/command/4007.md | 6 +-
test/command/4054.md | 12 +-
test/command/4056.md | 58 +-
test/command/4063.md | 40 +-
test/command/4068.md | 23 +-
test/command/4119.md | 69 +-
test/command/4134.md | 7 +-
test/command/4159.md | 7 +-
test/command/4162.md | 5 +-
test/command/4183.md | 8 +-
test/command/4186.md | 7 +-
test/command/4193.md | 4 +-
test/command/4199.md | 2 +-
test/command/4240.md | 28 +-
test/command/4253.md | 2 +-
test/command/4280.md | 2 +-
test/command/4281.md | 20 +-
test/command/4284.md | 80 +-
test/command/4306.md | 15 +-
test/command/4374.md | 15 +-
test/command/4382.md | 4 +-
test/command/4424.md | 2 +-
test/command/4454.md | 4 +-
test/command/4499.md | 4 +-
test/command/4513.md | 43 +-
test/command/4528.md | 1 +
test/command/4553.md | 5 +-
test/command/4576.md | 2 +-
test/command/4579.md | 64 +-
test/command/4624.md | 16 +-
test/command/4635.md | 8 +-
test/command/4669.md | 26 +-
test/command/4715.md | 24 +-
test/command/4722.md | 57 +-
test/command/4742.md | 36 +-
test/command/4743.md | 24 +-
test/command/4781.md | 22 +-
test/command/4811.md | 24 +-
test/command/4817.md | 15 +-
test/command/4819.md | 24 +-
test/command/4832.md | 24 +-
test/command/4842.md | 2 +-
test/command/4845.md | 12 +-
test/command/4848.md | 67 +-
test/command/4860.md | 13 +-
test/command/4877.md | 4 +-
test/command/4919.md | 7 +-
test/command/4928.md | 192 +-
test/command/4933.md | 2 +-
test/command/5014.md | 45 +-
test/command/5079.md | 32 +-
test/command/5099.md | 18 +-
test/command/5178.md | 17 +-
test/command/5182.md | 4 +-
test/command/5271.md | 33 +-
test/command/5285.md | 27 +-
test/command/5321.md | 12 +-
test/command/5360.md | 26 +-
test/command/5368.md | 32 +-
test/command/5410.md | 2 +-
test/command/5416.md | 4 +-
test/command/5540.md | 8 +-
test/command/5549.md | 3 +-
test/command/5619.md | 29 +-
test/command/5682.md | 2 +-
test/command/5686.md | 26 +-
test/command/5700.md | 38 +-
test/command/5708.md | 44 +-
test/command/5711.md | 32 +-
test/command/5714.md | 15 +-
test/command/5753.md | 7 +-
test/command/5795.md | 7 +-
test/command/5797.md | 2 +-
test/command/5805.md | 2 +-
test/command/5845.md | 20 +-
test/command/5878.md | 12 +-
test/command/6009.md | 19 +-
test/command/6026.md | 30 +-
test/command/6034.md | 4 +-
test/command/6114.md | 8 +-
test/command/6137.md | 162 +-
test/command/6288.md | 2 +-
test/command/6324.md | 12 +-
test/command/6699.md | 8 +-
test/command/6709.md | 2 +-
test/command/6719.md | 4 +-
test/command/6791.md | 40 +-
test/command/6802.md | 4 +-
test/command/6836.md | 36 +-
test/command/6844.md | 6 +-
test/command/6869.md | 16 +-
test/command/6873.md | 35 +-
test/command/6890.md | 113 +-
test/command/6993.md | 6 +-
test/command/7003.md | 21 +-
test/command/7080.md | 7 +-
test/command/7092.md | 2 +-
test/command/7129.md | 60 +-
test/command/7134.md | 45 +-
test/command/7145.md | 65 +-
test/command/7155.md | 22 +-
test/command/7339.md | 7 +-
test/command/7340.md | 2 +-
test/command/7400.md | 4 +-
test/command/7434.md | 14 +-
test/command/7436.md | 25 +-
test/command/7557.md | 18 +-
test/command/934.md | 35 +-
test/command/982.md | 2 +-
test/command/adjacent_latex_blocks.md | 7 +-
test/command/cite-in-inline-note.md | 22 +-
test/command/citeproc-author-in-text-suffix.md | 24 +-
test/command/csv.md | 129 +-
test/command/docbook-bibliography.md | 35 +-
test/command/dots.md | 4 +-
test/command/empty_paragraphs.md | 22 +-
test/command/gfm.md | 131 +-
test/command/hspace.md | 22 +-
test/command/html-read-figure.md | 22 +-
test/command/html-trim-definition-list-terms.md | 12 +-
test/command/hyphenat.md | 22 +-
test/command/ifstrequal.md | 4 +-
test/command/indented-fences.md | 4 +-
test/command/input-with-endinput.md | 10 +-
test/command/latex-center.md | 3 +-
test/command/latex-color.md | 136 +-
test/command/latex-command-comment.md | 2 +-
test/command/latex-fontawesome.md | 4 +-
test/command/latex-tabular-column-specs.md | 106 +-
test/command/lettrine.md | 21 +-
test/command/lstlisting.md | 30 +-
test/command/macro-defs-in-preamble.md | 13 +-
test/command/md-abbrevs.md | 4 +-
test/command/multiple-metadata-blocks.md | 6 +-
test/command/refs.md | 220 +-
test/command/setext-fenced-div.md | 3 +-
test/command/shift-heading-level-by.md | 31 +-
test/command/sloppypar.md | 214 +-
test/command/table-with-cell-align.md | 64 +-
test/command/table-with-column-span.md | 224 +-
test/command/tabularx.md | 393 +-
test/command/translations.md | 8 +-
test/command/write18.md | 4 +-
test/command/yaml-metadata-blocks.md | 96 +-
test/command/yaml-with-chomp.md | 13 +-
test/creole-reader.native | 1124 +-
test/docbook-chapter.native | 184 +-
test/docbook-reader.native | 3639 ++++++-
test/docbook-xref.native | 213 +-
test/epub/features.native | 1837 +++-
test/epub/formatting.native | 6791 +++++++++++-
test/epub/wasteland.native | 12347 ++++++++++++++++++++--
test/fb2/reader/emphasis.native | 44 +-
test/fb2/reader/epigraph.native | 27 +-
test/fb2/reader/meta.native | 45 +-
test/fb2/reader/notes.native | 28 +-
test/fb2/reader/poem.native | 40 +-
test/fb2/reader/titles.native | 41 +-
test/haddock-reader.native | 463 +-
test/html-reader.native | 4202 ++++++--
test/ipynb/simple.out.native | 121 +-
test/jats-reader.native | 3564 +++++--
test/jira-reader.native | 1209 ++-
test/latex-reader.native | 2935 ++++-
test/lhs-test-markdown.native | 138 +-
test/lhs-test.native | 138 +-
test/man-reader.native | 1286 ++-
test/markdown-citations.native | 556 +-
test/markdown-reader-more.native | 1538 ++-
test/mediawiki-reader.native | 1862 +++-
test/opml-reader.native | 298 +-
test/org-select-tags.native | 106 +-
test/pipe-tables.native | 1176 ++-
test/rst-reader.native | 2317 +++-
test/rtf/accent.native | 20 +-
test/rtf/bookmark.native | 14 +-
test/rtf/footnote.native | 132 +-
test/rtf/formatting.native | 61 +-
test/rtf/heading.native | 19 +-
test/rtf/image.native | 11 +-
test/rtf/link.native | 7 +-
test/rtf/list_complex.native | 108 +-
test/rtf/list_simple.native | 19 +-
test/rtf/table_error_codes.native | 515 +-
test/rtf/table_simple.native | 99 +-
test/rtf/unicode.native | 5 +-
test/tables-rstsubset.native | 1214 ++-
test/tables.haddock | 60 +-
test/tables.markdown | 28 +-
test/tables.muse | 48 +-
test/tables.native | 1184 ++-
test/tables.opendocument | 4 +-
test/tables.plain | 28 +-
test/tables.rst | 60 +-
test/tables/planets.latex | 8 +-
test/testsuite.native | 2900 ++++-
test/textile-reader.native | 1560 ++-
test/tikiwiki-reader.native | 973 +-
test/twiki-reader.native | 1125 +-
test/txt2tags.native | 6168 +++++++++--
test/vimwiki-reader.native | 2868 ++++-
test/writer.asciidoc | 12 +-
test/writer.asciidoctor | 16 +-
test/writer.context | 12 +-
test/writer.docbook4 | 32 +-
test/writer.docbook5 | 35 +-
test/writer.haddock | 43 +-
test/writer.jats_archiving | 28 +-
test/writer.jats_articleauthoring | 20 +-
test/writer.jats_publishing | 28 +-
test/writer.latex | 17 +-
test/writer.man | 18 +-
test/writer.markdown | 45 +-
test/writer.ms | 12 +-
test/writer.muse | 16 +-
test/writer.native | 2794 ++++-
test/writer.opendocument | 77 +-
test/writer.org | 15 +-
test/writer.plain | 38 +-
test/writer.rst | 4 +-
test/writer.tei | 22 +-
test/writer.texinfo | 26 +-
269 files changed, 65524 insertions(+), 11857 deletions(-)
(limited to 'test/tables')
diff --git a/pandoc.cabal b/pandoc.cabal
index 333d9afdc..7003abe2c 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -583,7 +583,8 @@ library
xml-conduit >= 1.9.1.1 && < 1.10,
unicode-collation >= 0.1.1 && < 0.2,
zip-archive >= 0.2.3.4 && < 0.5,
- zlib >= 0.5 && < 0.7
+ zlib >= 0.5 && < 0.7,
+ pretty-simple >= 4.0 && < 4.1
if os(windows) && arch(i386)
build-depends: basement >= 0.0.10,
foundation >= 0.0.23
diff --git a/src/Text/Pandoc/Writers/Native.hs b/src/Text/Pandoc/Writers/Native.hs
index 9c2ce805d..67af39a31 100644
--- a/src/Text/Pandoc/Writers/Native.hs
+++ b/src/Text/Pandoc/Writers/Native.hs
@@ -12,82 +12,24 @@ Conversion of a 'Pandoc' document to a string representation.
-}
module Text.Pandoc.Writers.Native ( writeNative )
where
-import Data.List (intersperse)
import Data.Text (Text)
+import qualified Data.Text.Lazy as TL
import Text.Pandoc.Class.PandocMonad (PandocMonad)
import Text.Pandoc.Definition
-import Text.Pandoc.Options (WrapOption (..), WriterOptions (..))
-import Text.DocLayout
-
-prettyList :: [Doc Text] -> Doc Text
-prettyList ds =
- "[" <>
- mconcat (intersperse (cr <> ",") $ map (nest 1) ds) <> "]"
-
--- | Prettyprint Pandoc block element.
-prettyBlock :: Block -> Doc Text
-prettyBlock (LineBlock lines') =
- "LineBlock" $$ prettyList (map (text . show) lines')
-prettyBlock (BlockQuote blocks) =
- "BlockQuote" $$ prettyList (map prettyBlock blocks)
-prettyBlock (OrderedList attribs blockLists) =
- "OrderedList" <> space <> text (show attribs) $$
- prettyList (map (prettyList . map prettyBlock) blockLists)
-prettyBlock (BulletList blockLists) =
- "BulletList" $$
- prettyList (map (prettyList . map prettyBlock) blockLists)
-prettyBlock (DefinitionList items) = "DefinitionList" $$
- prettyList (map deflistitem items)
- where deflistitem (term, defs) = "(" <> text (show term) <> "," <> cr <>
- nest 1 (prettyList $ map (prettyList . map prettyBlock) defs) <> ")"
-prettyBlock (Table attr blkCapt specs thead tbody tfoot) =
- mconcat [ "Table "
- , text (show attr)
- , " "
- , prettyCaption blkCapt ] $$
- prettyList (map (text . show) specs) $$
- prettyHead thead $$
- prettyBodies tbody $$
- prettyFoot tfoot
- where prettyRows = prettyList . map prettyRow
- prettyRow (Row a body) =
- text ("Row " <> show a) $$ prettyList (map prettyCell body)
- prettyCell (Cell a ma h w b) =
- mconcat [ "Cell "
- , text (show a)
- , " "
- , text (show ma)
- , " ("
- , text (show h)
- , ") ("
- , text (show w)
- , ")" ] $$
- prettyList (map prettyBlock b)
- prettyCaption (Caption mshort body) =
- "(Caption " <> text (showsPrec 11 mshort "") $$ prettyList (map prettyBlock body) <> ")"
- prettyHead (TableHead thattr body)
- = "(TableHead " <> text (show thattr) $$ prettyRows body <> ")"
- prettyBody (TableBody tbattr rhc hd bd)
- = mconcat [ "(TableBody "
- , text (show tbattr)
- , " ("
- , text (show rhc)
- , ")" ] $$ prettyRows hd $$ prettyRows bd <> ")"
- prettyBodies = prettyList . map prettyBody
- prettyFoot (TableFoot tfattr body)
- = "(TableFoot " <> text (show tfattr) $$ prettyRows body <> ")"
-prettyBlock (Div attr blocks) =
- text ("Div " <> show attr) $$ prettyList (map prettyBlock blocks)
-prettyBlock block = text $ show block
+import Text.Pandoc.Options (WriterOptions (..))
+import Text.Pretty.Simple (pShowOpt, defaultOutputOptionsNoColor,
+ OutputOptions(..), StringOutputStyle(..))
-- | Prettyprint Pandoc document.
writeNative :: PandocMonad m => WriterOptions -> Pandoc -> m Text
-writeNative opts (Pandoc meta blocks) = return $
- let colwidth = if writerWrapText opts == WrapAuto
- then Just $ writerColumns opts
- else Nothing
- withHead = case writerTemplate opts of
- Just _ -> \bs -> text ("Pandoc (" ++ show meta ++ ")") $$
- bs $$ cr
- Nothing -> id
- in render colwidth $ withHead $ prettyList $ map prettyBlock blocks
+writeNative opts (Pandoc meta blocks) = do
+ let popts = defaultOutputOptionsNoColor{
+ outputOptionsIndentAmount = 2,
+ outputOptionsPageWidth = writerColumns opts,
+ outputOptionsCompact = True,
+ outputOptionsCompactParens = False,
+ outputOptionsStringStyle = Literal }
+ return $
+ case writerTemplate opts of
+ Just _ -> TL.toStrict $ pShowOpt popts (Pandoc meta blocks) <> "\n"
+ Nothing -> TL.toStrict $ pShowOpt popts blocks
diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs
index 4baa16d45..d080f68f1 100644
--- a/test/Tests/Old.hs
+++ b/test/Tests/Old.hs
@@ -146,7 +146,7 @@ tests pandocPath =
"dokuwiki_external_images.native" "dokuwiki_external_images.dokuwiki"
]
, testGroup "opml"
- [ test' "basic" ["-r", "native", "-w", "opml", "--columns=78", "-s"]
+ [ test' "basic" ["-r", "native", "-w", "opml", "--columns=80", "-s"]
"testsuite.native" "writer.opml"
, test' "reader" ["-r", "opml", "-w", "native", "-s"]
"opml-reader.opml" "opml-reader.native"
@@ -262,7 +262,7 @@ writerTests pandocPath format
"tables" opts "tables.native" ("tables" <.> format)
]
where
- opts = ["-r", "native", "-w", format, "--columns=78",
+ opts = ["-r", "native", "-w", format, "--columns=80",
"--variable", "pandoc-version="]
extendedWriterTests :: FilePath -> String -> [TestTree]
@@ -276,7 +276,7 @@ extendedWriterTests pandocPath format
("tables" > name <.> format)
in map testForTable ["planets", "nordics", "students"]
where
- opts = ["-r", "native", "-w", format, "--columns=78",
+ opts = ["-r", "native", "-w", format, "--columns=80",
"--variable", "pandoc-version="]
s5WriterTest :: FilePath -> String -> [String] -> String -> TestTree
diff --git a/test/command/1390.md b/test/command/1390.md
index ffd2cef8d..1d479dc94 100644
--- a/test/command/1390.md
+++ b/test/command/1390.md
@@ -3,7 +3,9 @@
\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 "." ]
+]
```
"
-,Para [Str "Just",Space,Str "plain",Space,Str "comment,",Space,Str "with",Space,Str "trailing",Space,Str "spaces",Space,Str "on",Space,Str "the",Space,Str "line:"]
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) " "
-,Para [Str "Hr\8217s:"]
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
-,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
-,Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
-,Para [Str "An",Space,Emph [Link ("",[],[]) [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
-,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
-,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
-,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
-,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
-,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",SoftBreak,Code ("",[],[]) "",Str "."]
-,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]]
-,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",SoftBreak,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello",Space,Str "there"],Str "."]
-,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",SoftBreak,Str "H",Subscript [Str "many",Space,Str "of",Space,Str "them"],Str "O."]
-,Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",Space,Str "because",Space,Str "of",Space,Str "the",SoftBreak,Str "unescaped",Space,Str "spaces:",Space,Str "a^b",Space,Str "c^d,",Space,Str "a",Math InlineMath "\\sim",Str "b",SoftBreak,Str "c",Math InlineMath "\\sim",Str "d."]
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("smart-quotes-ellipses-dashes",[],[]) [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
-,Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Quoted DoubleQuote [Str "\8198",Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name."]]
-,Para [Quoted SingleQuote [Str "A"],Str ",",Space,Quoted SingleQuote [Str "B"],Str ",",Space,Str "and",Space,Quoted SingleQuote [Str "C"],Space,Str "are",Space,Str "letters."]
-,Para [Quoted SingleQuote [Str "Oak,"],Space,Quoted SingleQuote [Str "elm,"],Space,Str "and",Space,Quoted SingleQuote [Str "beech"],Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",Space,Str "So",Space,Str "is",Space,Quoted SingleQuote [Str "pine."]]
-,Para [Quoted SingleQuote [Str "He",Space,Str "said,",Space,Quoted DoubleQuote [Str "I",Space,Str "want",Space,Str "to",Space,Str "go."],Str "\8198"],Space,Str "Were",Space,Str "you",Space,Str "alive",Space,Str "in",Space,Str "the",Space,Str "70\8217s?"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "quoted",Space,Quoted SingleQuote [Code ("",[],[]) "code"],Space,Str "and",Space,Str "a",SoftBreak,Quoted DoubleQuote [Link ("",[],[]) [Str "quoted",Space,Str "link"] ("http://example.com/?foo=1&bar=2","")],Str "."]
-,Para [Str "Some",Space,Str "dashes:",Space,Str "one\8212two\8212three\8212four\8212five."]
-,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
-,Para [Str "Ellipses\8230and\8230and\8230."]
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("latex",[],[]) [Str "LaTeX"]
-,BulletList
- [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
- ,[RawBlock (Format "latex") "\\doublespacing"]
- ,[Para [Math InlineMath "2+2=4"]]
- ,[Para [Math InlineMath "x \\in y"]]
- ,[Para [Math InlineMath "\\alpha \\wedge \\omega"]]
- ,[Para [Math InlineMath "223"]]
- ,[Para [Math InlineMath "p",Str "-Tree"]]
- ,[Para [Math InlineMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"]]
- ,[Para [Str "Here\8217s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",SoftBreak,Math InlineMath "\\alpha + \\omega \\times x^2",Str "."]]]
-,Para [Str "These",Space,Str "shouldn\8217t",Space,Str "be",Space,Str "math:"]
-,BulletList
- [[Para [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code ("",[],[]) "$e = mc^2$",Str "."]]
- ,[Para [Str "$22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money.",Space,Str "So",Space,Str "is",Space,Str "$34,000.",Space,Str "(It",Space,Str "worked",Space,Str "if",SoftBreak,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized.)"]]
- ,[Para [Str "Escaped",Space,Code ("",[],[]) "$",Str ":",Space,Str "$73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23$."]]]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Animal"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Number"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Dog"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cat"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "A",Space,Str "table",Space,Str "with",Space,Str "one",Space,Str "column:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Animal"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Vegetable"]]]])]
- (TableFoot ("",[],[])
- [])
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
-,BulletList
- [[Para [Str "I",Space,Str "hat:",Space,Str "\206"]]
- ,[Para [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
- ,[Para [Str "section:",Space,Str "\167"]]
- ,[Para [Str "set",Space,Str "membership:",Space,Str "\8712"]]
- ,[Para [Str "copyright:",Space,Str "\169"]]]
-,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
-,Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it."]
-,Para [Str "This",Space,Str "&",Space,Str "that."]
-,Para [Str "4",Space,Str "<",Space,Str "5."]
-,Para [Str "6",Space,Str ">",Space,Str "5."]
-,Para [Str "Backslash:",Space,Str "\\"]
-,Para [Str "Backtick:",Space,Str "\8216"]
-,Para [Str "Asterisk:",Space,Str "*"]
-,Para [Str "Underscore:",Space,Str "_"]
-,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
-,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
-,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
-,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
-,Para [Str "Left",Space,Str "paren:",Space,Str "("]
-,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
-,Para [Str "Greater-than:",Space,Str ">"]
-,Para [Str "Hash:",Space,Str "#"]
-,Para [Str "Period:",Space,Str "."]
-,Para [Str "Bang:",Space,Str "!"]
-,Para [Str "Plus:",Space,Str "+"]
-,Para [Str "Minus:",Space,Str "-"]
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("links",[],[]) [Str "Links"]
-,Header 2 ("explicit",[],[]) [Str "Explicit"]
-,Para [Str "Just",Space,Str "a",Space,Link ("",[],[]) [Str "URL"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","")]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","")]
-,Para [Link ("",[],[]) [Str "with_underscore"] ("/url/with_underscore","")]
-,Para [Link ("",[],[]) [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
-,Para [Link ("",[],[]) [Str "Empty"] ("",""),Str "."]
-,Header 2 ("reference",[],[]) [Str "Reference"]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
-,Para [Str "With",Space,Link ("",[],[]) [Str "embedded",Space,Str "[brackets]"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "b"] ("/url/",""),Space,Str "by",Space,Str "itself",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "link."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "once"] ("/url",""),Str "."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "twice"] ("/url",""),Str "."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "thrice"] ("/url",""),Str "."]
-,Para [Str "This",Space,Str "should",Space,Str "[not][]",Space,Str "be",Space,Str "a",Space,Str "link."]
-,CodeBlock ("",[],[]) "[not]: /url"
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "biz"] ("/url/",""),Str "."]
-,Header 2 ("with-ampersands",[],[]) [Str "With",Space,Str "ampersands"]
-,Para [Str "Here\8217s",Space,Str "a",SoftBreak,Link ("",[],[]) [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",SoftBreak,Link ("",[],[]) [Str "AT&T"] ("http://att.com/",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "an",Space,Link ("",[],[]) [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "an",SoftBreak,Link ("",[],[]) [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
-,Header 2 ("autolinks",[],[]) [Str "Autolinks"]
-,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link ("",[],[]) [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
-,BulletList
- [[Para [Str "In",Space,Str "a",Space,Str "list?"]]
- ,[Para [Link ("",[],[]) [Str "http://example.com/"] ("http://example.com/","")]]
- ,[Para [Str "It",Space,Str "should."]]]
-,Para [Str "An",Space,Str "e-mail",Space,Str "address:",SoftBreak,Link ("",[],[]) [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
-,BlockQuote
- [Para [Str "Blockquoted:",Space,Link ("",[],[]) [Str "http://example.com/"] ("http://example.com/","")]]
-,Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code ("",[],[]) " "]
-,CodeBlock ("",[],[]) "or here: "
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("images",[],[]) [Str "Images"]
-,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
-,Para [Image ("",[],[]) [Str "image"] ("lalune.jpg","")]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image ("",[],[]) [Str "image"] ("movie.jpg",""),Space,Str "icon."]
-,Div ("",["center"],[])
- [HorizontalRule]
-,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",SoftBreak,Str "reference,",Note [Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "after",Space,Str "the",Space,Str "footnote",SoftBreak,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],SoftBreak,Str "and",SoftBreak,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",SoftBreak,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",SoftBreak,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],SoftBreak,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",SoftBreak,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",SoftBreak,Str "note.",Note [Para [Str "This",Space,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",SoftBreak,Link ("",[],[]) [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",SoftBreak,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
-,BlockQuote
- [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
-,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",SoftBreak,Str "indented."]
-,Header 1 ("escaped-characters",[],[]) [Str "Escaped",Space,Str "characters"]
-,Para [Str "$",Space,Str "%",Space,Str "&",Space,Str "#",Space,Str "_",Space,Str "{",Space,Str "}"]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaList
+ [ MetaInlines
+ [ Str "John", Space, Str "MacFarlane" ]
+ , MetaInlines
+ [ Str "Anonymous" ]
+ ]
+ )
+ ,
+ ( "date"
+ , MetaInlines
+ [ Str "July", Space, Str "17,", Space, Str "2006" ]
+ )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Pandoc", Space, Str "Test", Space, Str "Suite" ]
+ )
+ ]
+ }
+ )
+ [ RawBlock
+ ( Format "latex" ) "\\maketitle"
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "set"
+ , Space
+ , Str "of"
+ , Space
+ , Str "tests"
+ , Space
+ , Str "for"
+ , Space
+ , Str "pandoc."
+ , Space
+ , Str "Most"
+ , Space
+ , Str "of"
+ , Space
+ , Str "them"
+ , Space
+ , Str "are"
+ , Space
+ , Str "adapted"
+ , Space
+ , Str "from"
+ , SoftBreak
+ , Str "John"
+ , Space
+ , Str "Gruber\8217s"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "test"
+ , Space
+ , Str "suite."
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "headers", [], [] )
+ [ Str "Headers" ]
+ , Header 2
+ ( "level-2-with-an-embedded-link", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "link" ]
+ ( "/url", "" )
+ ]
+ , Header 3
+ ( "level-3-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "3"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Para
+ [ Str "Level", Space, Str "4" ]
+ , Para
+ [ Str "Level", Space, Str "5" ]
+ , Header 1
+ ( "level-1", [], [] )
+ [ Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "level-2-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Header 3
+ ( "level-3", [], [] )
+ [ Str "Level", Space, Str "3" ]
+ , Para
+ [ Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ ]
+ , Header 2
+ ( "level-2", [], [] )
+ [ Str "Level", Space, Str "2" ]
+ , Para
+ [ Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "paragraphs", [], [] )
+ [ Str "Paragraphs" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "regular"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "In"
+ , Space
+ , Str "Markdown"
+ , Space
+ , Str "1.0.0"
+ , Space
+ , Str "and"
+ , Space
+ , Str "earlier."
+ , Space
+ , Str "Version"
+ , Space
+ , Str "8."
+ , Space
+ , Str "This"
+ , Space
+ , Str "line"
+ , Space
+ , Str "turns"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "list"
+ , Space
+ , Str "item."
+ , Space
+ , Str "Because"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard-wrapped"
+ , Space
+ , Str "line"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "middle"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph"
+ , SoftBreak
+ , Str "looked"
+ , Space
+ , Str "like"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bullet."
+ , Space
+ , Str "*"
+ , Space
+ , Str "criminey."
+ ]
+ , Para
+ [ Str "There"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ , LineBreak
+ , Str "here."
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "block-quotes", [], [] )
+ [ Str "Block", Space, Str "Quotes" ]
+ , Para
+ [ Str "E-mail", Space, Str "style:" ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ , Space
+ , Str "It"
+ , Space
+ , Str "is"
+ , Space
+ , Str "pretty"
+ , Space
+ , Str "short."
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Code"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "sub status {\n print \"working\";\n}"
+ , Para
+ [ Str "A", Space, Str "list:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "item", Space, Str "one" ] ]
+ ,
+ [ Para [ Str "item", Space, Str "two" ] ]
+ ]
+ , Para
+ [ Str "Nested", Space, Str "block", Space, Str "quotes:" ]
+ , BlockQuote
+ [ Para [ Str "nested" ] ]
+ , BlockQuote
+ [ Para [ Str "nested" ] ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ , Space
+ , Str "2"
+ , Space
+ , Str ">"
+ , Space
+ , Str "1."
+ ]
+ , Para
+ [ Str "Box-style:" ]
+ , BlockQuote
+ [ Para
+ [ Str "Example:" ]
+ , CodeBlock
+ ( "", [], [] ) "sub status {\n print \"working\";\n}"
+ ]
+ , BlockQuote
+ [ OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "do", Space, Str "laundry" ] ]
+ ,
+ [ Para
+ [ Str "take"
+ , Space
+ , Str "out"
+ , Space
+ , Str "the"
+ , Space
+ , Str "trash"
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "nested"
+ , Space
+ , Str "one:"
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Joe", Space, Str "said:" ]
+ , BlockQuote
+ [ Para [ Str "Don\8217t", Space, Str "quote", Space, Str "me." ] ]
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "a"
+ , Space
+ , Str "following"
+ , Space
+ , Str "paragraph."
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "Code", Space, Str "Blocks" ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
+ , Para
+ [ Str "this"
+ , Space
+ , Str "has"
+ , Space
+ , Emph
+ [ Str "two", LineBreak, Str "lines" ]
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "Lists" ]
+ , Header 2
+ ( "unordered", [], [] )
+ [ Str "Unordered" ]
+ , Para
+ [ Str "Asterisks", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Para [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Asterisks", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Para [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Para [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Header 2
+ ( "ordered", [], [] )
+ [ Str "Ordered" ]
+ , Para
+ [ Str "Tight:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para [ Str "Second" ] ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "One" ] ]
+ ,
+ [ Para [ Str "Two" ] ]
+ ,
+ [ Para [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Loose", Space, Str "using", Space, Str "tabs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para [ Str "Second" ] ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and", Space, Str "using", Space, Str "spaces:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "One" ] ]
+ ,
+ [ Para [ Str "Two" ] ]
+ ,
+ [ Para [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "paragraphs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para
+ [ Str "Item"
+ , Space
+ , Str "1,"
+ , Space
+ , Str "graf"
+ , Space
+ , Str "one."
+ ]
+ , Para
+ [ Str "Item"
+ , Space
+ , Str "1."
+ , Space
+ , Str "graf"
+ , Space
+ , Str "two."
+ , Space
+ , Str "The"
+ , Space
+ , Str "quick"
+ , Space
+ , Str "brown"
+ , Space
+ , Str "fox"
+ , Space
+ , Str "jumped"
+ , Space
+ , Str "over"
+ , Space
+ , Str "the"
+ , Space
+ , Str "lazy"
+ , Space
+ , Str "dog\8217s"
+ , SoftBreak
+ , Str "back."
+ ]
+ ]
+ ,
+ [ Para [ Str "Item", Space, Str "2." ] ]
+ ,
+ [ Para [ Str "Item", Space, Str "3." ] ]
+ ]
+ , Header 2
+ ( "nested", [], [] )
+ [ Str "Nested" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "Tab" ]
+ , BulletList
+ [
+ [ Para [ Str "Tab" ], BulletList [ [ Para [ Str "Tab" ] ] ] ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s", Space, Str "another:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Para [ Str "Fee" ] ]
+ ,
+ [ Para [ Str "Fie" ] ]
+ ,
+ [ Para [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "Same"
+ , Space
+ , Str "thing"
+ , Space
+ , Str "but"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paragraphs:"
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Para [ Str "Fee" ] ]
+ ,
+ [ Para [ Str "Fie" ] ]
+ ,
+ [ Para [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "tabs-and-spaces", [], [] )
+ [ Str "Tabs", Space, Str "and", Space, Str "spaces" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tabs"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ ]
+ , BulletList
+ [
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "example"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tabs"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "example"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Header 2
+ ( "fancy-list-markers", [], [] )
+ [ Str "Fancy", Space, Str "list", Space, Str "markers" ]
+ , OrderedList
+ ( 2, Decimal, TwoParens )
+ [
+ [ Para [ Str "begins", Space, Str "with", Space, Str "2" ] ]
+ ,
+ [ Para
+ [ Str "and", Space, Str "now", Space, Str "3" ]
+ , Para
+ [ Str "with", Space, Str "a", Space, Str "continuation" ]
+ , OrderedList
+ ( 4, LowerRoman, Period )
+ [
+ [ Para
+ [ Str "sublist"
+ , Space
+ , Str "with"
+ , Space
+ , Str "roman"
+ , Space
+ , Str "numerals,"
+ , Space
+ , Str "starting"
+ , Space
+ , Str "with"
+ , Space
+ , Str "4"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "more", Space, Str "items" ]
+ , OrderedList
+ ( 1, UpperAlpha, TwoParens )
+ [
+ [ Para [ Str "a", Space, Str "subsublist" ] ]
+ ,
+ [ Para [ Str "a", Space, Str "subsublist" ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Nesting:" ]
+ , OrderedList
+ ( 1, UpperAlpha, Period )
+ [
+ [ Para
+ [ Str "Upper", Space, Str "Alpha" ]
+ , OrderedList
+ ( 1, UpperRoman, Period )
+ [
+ [ Para
+ [ Str "Upper", Space, Str "Roman." ]
+ , OrderedList
+ ( 6, Decimal, TwoParens )
+ [
+ [ Para
+ [ Str "Decimal"
+ , Space
+ , Str "start"
+ , Space
+ , Str "with"
+ , Space
+ , Str "6"
+ ]
+ , OrderedList
+ ( 3, LowerAlpha, OneParen )
+ [
+ [ Para
+ [ Str "Lower"
+ , Space
+ , Str "alpha"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paren"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Autonumbering:" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Para [ Str "Autonumber." ] ]
+ ,
+ [ Para
+ [ Str "More." ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Para [ Str "Nested." ] ] ]
+ ]
+ ]
+ , Para
+ [ Str "Should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item:"
+ ]
+ , Para
+ [ Str "M.A.", Space, Str "2007" ]
+ , Para
+ [ Str "B.", Space, Str "Williams" ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "definition-lists", [], [] )
+ [ Str "Definition", Space, Str "Lists" ]
+ , Para
+ [ Str "Tight", Space, Str "using", Space, Str "spaces:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [ [ Para [ Str "red", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [ [ Para [ Str "orange", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "banana" ]
+ ,
+ [ [ Para [ Str "yellow", Space, Str "fruit" ] ] ]
+ )
+ ]
+ , Para
+ [ Str "Tight", Space, Str "using", Space, Str "tabs:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [ [ Para [ Str "red", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [ [ Para [ Str "orange", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "banana" ]
+ ,
+ [ [ Para [ Str "yellow", Space, Str "fruit" ] ] ]
+ )
+ ]
+ , Para
+ [ Str "Loose:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [ [ Para [ Str "red", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [ [ Para [ Str "orange", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "banana" ]
+ ,
+ [ [ Para [ Str "yellow", Space, Str "fruit" ] ] ]
+ )
+ ]
+ , Para
+ [ Str "Multiple"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "with"
+ , Space
+ , Str "italics:"
+ ]
+ , DefinitionList
+ [
+ (
+ [ Emph [ Str "apple" ] ]
+ ,
+ [
+ [ Para
+ [ Str "red", Space, Str "fruit" ]
+ , Para
+ [ Str "contains"
+ , Space
+ , Str "seeds,"
+ , Space
+ , Str "crisp,"
+ , Space
+ , Str "pleasant"
+ , Space
+ , Str "to"
+ , Space
+ , Str "taste"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Emph [ Str "orange" ] ]
+ ,
+ [
+ [ Para
+ [ Str "orange", Space, Str "fruit" ]
+ , CodeBlock
+ ( "", [], [] ) "{ orange code block }"
+ , BlockQuote
+ [ Para
+ [ Str "orange", Space, Str "block", Space, Str "quote" ]
+ ]
+ ]
+ ]
+ )
+ ]
+ , Header 1
+ ( "html-blocks", [], [] )
+ [ Str "HTML", Space, Str "Blocks" ]
+ , Para
+ [ Str "Simple"
+ , Space
+ , Str "block"
+ , Space
+ , Str "on"
+ , Space
+ , Str "one"
+ , Space
+ , Str "line:"
+ ]
+ , Para
+ [ Str "foo"
+ , SoftBreak
+ , Str "And"
+ , Space
+ , Str "nested"
+ , Space
+ , Str "without"
+ , Space
+ , Str "indentation:"
+ ]
+ , Para
+ [ Str "foo"
+ , SoftBreak
+ , Str "bar"
+ , SoftBreak
+ , Str "Interpreted"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "table:"
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "emphasized" ]
+ , SoftBreak
+ , Str "And"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ , SoftBreak
+ , Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "block:"
+ ]
+ , Para
+ [ Str "foo"
+ , SoftBreak
+ , Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "code"
+ , Space
+ , Str "block,"
+ , Space
+ , Str "though:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "\n foo\n
"
+ , Para
+ [ Str "As", Space, Str "should", Space, Str "this:" ]
+ , CodeBlock
+ ( "", [], [] ) "foo
"
+ , Para
+ [ Str "Now,", Space, Str "nested:" ]
+ , Para
+ [ Str "foo"
+ , SoftBreak
+ , Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "just"
+ , Space
+ , Str "be"
+ , Space
+ , Str "an"
+ , Space
+ , Str "HTML"
+ , Space
+ , Str "comment:"
+ ]
+ , Para
+ [ Str "Multiline:" ]
+ , Para
+ [ Str "Code", Space, Str "block:" ]
+ , CodeBlock
+ ( "", [], [] ) ""
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "plain"
+ , Space
+ , Str "comment,"
+ , Space
+ , Str "with"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line:"
+ ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( "", [], [] ) " "
+ , Para
+ [ Str "Hr\8217s:" ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "inline-markup", [], [] )
+ [ Str "Inline", Space, Str "Markup" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "emphasized" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Emph
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Strong
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "An"
+ , Space
+ , Emph
+ [ Link
+ ( "", [], [] )
+ [ Str "emphasized", Space, Str "link" ]
+ ( "/url", "" )
+ ]
+ , Str "."
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word."
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "code:"
+ , Space
+ , Code
+ ( "", [], [] ) ">"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\$"
+ , Str ","
+ , SoftBreak
+ , Code
+ ( "", [], [] ) ""
+ , Str "."
+ ]
+ , Para
+ [ Strikeout
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "strikeout" ]
+ , Str "."
+ ]
+ ]
+ , Para
+ [ Str "Superscripts:"
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "bc" ]
+ , Str "d"
+ , SoftBreak
+ , Str "a"
+ , Superscript
+ [ Emph [ Str "hello" ] ]
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "hello", Space, Str "there" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Subscripts:"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "2" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "23" ]
+ , Str "O,"
+ , SoftBreak
+ , Str "H"
+ , Subscript
+ [ Str "many", Space, Str "of", Space, Str "them" ]
+ , Str "O."
+ ]
+ , Para
+ [ Str "These"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "superscripts"
+ , Space
+ , Str "or"
+ , Space
+ , Str "subscripts,"
+ , Space
+ , Str "because"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "unescaped"
+ , Space
+ , Str "spaces:"
+ , Space
+ , Str "a^b"
+ , Space
+ , Str "c^d,"
+ , Space
+ , Str "a"
+ , Math InlineMath "\\sim"
+ , Str "b"
+ , SoftBreak
+ , Str "c"
+ , Math InlineMath "\\sim"
+ , Str "d."
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "smart-quotes-ellipses-dashes", [], [] )
+ [ Str "Smart"
+ , Space
+ , Str "quotes,"
+ , Space
+ , Str "ellipses,"
+ , Space
+ , Str "dashes"
+ ]
+ , Para
+ [ Quoted DoubleQuote
+ [ Str "Hello," ]
+ , Space
+ , Str "said"
+ , Space
+ , Str "the"
+ , Space
+ , Str "spider."
+ , Space
+ , Quoted DoubleQuote
+ [ Str "\8198"
+ , Quoted SingleQuote
+ [ Str "Shelob" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "my"
+ , Space
+ , Str "name."
+ ]
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "A" ]
+ , Str ","
+ , Space
+ , Quoted SingleQuote
+ [ Str "B" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Quoted SingleQuote
+ [ Str "C" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "letters."
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "Oak," ]
+ , Space
+ , Quoted SingleQuote
+ [ Str "elm," ]
+ , Space
+ , Str "and"
+ , Space
+ , Quoted SingleQuote
+ [ Str "beech" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "names"
+ , Space
+ , Str "of"
+ , Space
+ , Str "trees."
+ , Space
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Quoted SingleQuote
+ [ Str "pine." ]
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "He"
+ , Space
+ , Str "said,"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "I"
+ , Space
+ , Str "want"
+ , Space
+ , Str "to"
+ , Space
+ , Str "go."
+ ]
+ , Str "\8198"
+ ]
+ , Space
+ , Str "Were"
+ , Space
+ , Str "you"
+ , Space
+ , Str "alive"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "70\8217s?"
+ ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Str "quoted"
+ , Space
+ , Quoted SingleQuote
+ [ Code ( "", [], [] ) "code" ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Quoted DoubleQuote
+ [ Link
+ ( "", [], [] )
+ [ Str "quoted", Space, Str "link" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Some"
+ , Space
+ , Str "dashes:"
+ , Space
+ , Str "one\8212two\8212three\8212four\8212five."
+ ]
+ , Para
+ [ Str "Dashes"
+ , Space
+ , Str "between"
+ , Space
+ , Str "numbers:"
+ , Space
+ , Str "5\8211\&7,"
+ , Space
+ , Str "255\8211\&66,"
+ , Space
+ , Str "1987\8211\&1999."
+ ]
+ , Para
+ [ Str "Ellipses\8230and\8230and\8230." ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "latex", [], [] )
+ [ Str "LaTeX" ]
+ , BulletList
+ [
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "smith.1899"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "22-23" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 0
+ , citationHash = 0
+ }
+ ]
+ [ RawInline ( Format "latex" ) "\\cite[22-23]{smith.1899}" ]
+ ]
+ ]
+ ,
+ [ RawBlock ( Format "latex" ) "\\doublespacing" ]
+ ,
+ [ Para [ Math InlineMath "2+2=4" ] ]
+ ,
+ [ Para [ Math InlineMath "x \\in y" ] ]
+ ,
+ [ Para [ Math InlineMath "\\alpha \\wedge \\omega" ] ]
+ ,
+ [ Para [ Math InlineMath "223" ] ]
+ ,
+ [ Para [ Math InlineMath "p", Str "-Tree" ] ]
+ ,
+ [ Para
+ [ Math InlineMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}" ]
+ ]
+ ,
+ [ Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "that"
+ , Space
+ , Str "has"
+ , Space
+ , Str "a"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ , Space
+ , Str "in"
+ , Space
+ , Str "it:"
+ , SoftBreak
+ , Math InlineMath "\\alpha + \\omega \\times x^2"
+ , Str "."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "These"
+ , Space
+ , Str "shouldn\8217t"
+ , Space
+ , Str "be"
+ , Space
+ , Str "math:"
+ ]
+ , BulletList
+ [
+ [ Para
+ [ Str "To"
+ , Space
+ , Str "get"
+ , Space
+ , Str "the"
+ , Space
+ , Str "famous"
+ , Space
+ , Str "equation,"
+ , Space
+ , Str "write"
+ , Space
+ , Code
+ ( "", [], [] ) "$e = mc^2$"
+ , Str "."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "$22,000"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Emph
+ [ Str "lot" ]
+ , Space
+ , Str "of"
+ , Space
+ , Str "money."
+ , Space
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Str "$34,000."
+ , Space
+ , Str "(It"
+ , Space
+ , Str "worked"
+ , Space
+ , Str "if"
+ , SoftBreak
+ , Quoted DoubleQuote
+ [ Str "lot" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "emphasized.)"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Escaped"
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ":"
+ , Space
+ , Str "$73"
+ , Space
+ , Emph
+ [ Str "this"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "emphasized"
+ ]
+ , Space
+ , Str "23$."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "LaTeX"
+ , Space
+ , Str "table:"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignLeft, ColWidthDefault ), ( AlignLeft, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Animal" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Number" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Dog" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cat" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "A"
+ , Space
+ , Str "table"
+ , Space
+ , Str "with"
+ , Space
+ , Str "one"
+ , Space
+ , Str "column:"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignCenter, ColWidthDefault ) ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Animal" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Vegetable" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "special-characters", [], [] )
+ [ Str "Special", Space, Str "Characters" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Str "unicode:"
+ ]
+ , BulletList
+ [
+ [ Para [ Str "I", Space, Str "hat:", Space, Str "\206" ] ]
+ ,
+ [ Para [ Str "o", Space, Str "umlaut:", Space, Str "\246" ] ]
+ ,
+ [ Para [ Str "section:", Space, Str "\167" ] ]
+ ,
+ [ Para
+ [ Str "set", Space, Str "membership:", Space, Str "\8712" ]
+ ]
+ ,
+ [ Para [ Str "copyright:", Space, Str "\169" ] ]
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "has"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "their"
+ , Space
+ , Str "name."
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "is"
+ , Space
+ , Str "another"
+ , Space
+ , Str "way"
+ , Space
+ , Str "to"
+ , Space
+ , Str "write"
+ , Space
+ , Str "it."
+ ]
+ , Para
+ [ Str "This", Space, Str "&", Space, Str "that." ]
+ , Para
+ [ Str "4", Space, Str "<", Space, Str "5." ]
+ , Para
+ [ Str "6", Space, Str ">", Space, Str "5." ]
+ , Para
+ [ Str "Backslash:", Space, Str "\\" ]
+ , Para
+ [ Str "Backtick:", Space, Str "\8216" ]
+ , Para
+ [ Str "Asterisk:", Space, Str "*" ]
+ , Para
+ [ Str "Underscore:", Space, Str "_" ]
+ , Para
+ [ Str "Left", Space, Str "brace:", Space, Str "{" ]
+ , Para
+ [ Str "Right", Space, Str "brace:", Space, Str "}" ]
+ , Para
+ [ Str "Left", Space, Str "bracket:", Space, Str "[" ]
+ , Para
+ [ Str "Right", Space, Str "bracket:", Space, Str "]" ]
+ , Para
+ [ Str "Left", Space, Str "paren:", Space, Str "(" ]
+ , Para
+ [ Str "Right", Space, Str "paren:", Space, Str ")" ]
+ , Para
+ [ Str "Greater-than:", Space, Str ">" ]
+ , Para
+ [ Str "Hash:", Space, Str "#" ]
+ , Para
+ [ Str "Period:", Space, Str "." ]
+ , Para
+ [ Str "Bang:", Space, Str "!" ]
+ , Para
+ [ Str "Plus:", Space, Str "+" ]
+ , Para
+ [ Str "Minus:", Space, Str "-" ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "links", [], [] )
+ [ Str "Links" ]
+ , Header 2
+ ( "explicit", [], [] )
+ [ Str "Explicit" ]
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "URL" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "with_underscore" ]
+ ( "/url/with_underscore", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Email", Space, Str "link" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "Empty" ] ( "", "" ), Str "." ]
+ , Header 2
+ ( "reference", [], [] )
+ [ Str "Reference" ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "With"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "[brackets]" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "b" ]
+ ( "/url/", "" )
+ , Space
+ , Str "by"
+ , Space
+ , Str "itself"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "once" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "twice" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "thrice" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "[not][]"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link."
+ ]
+ , CodeBlock
+ ( "", [], [] ) "[not]: /url"
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "biz" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Header 2
+ ( "with-ampersands", [], [] )
+ [ Str "With", Space, Str "ampersands" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "URL"
+ ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "amersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "link"
+ , Space
+ , Str "text:"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "AT&T" ]
+ ( "http://att.com/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "inline", Space, Str "link" ]
+ ( "/script?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "an"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "inline"
+ , Space
+ , Str "link"
+ , Space
+ , Str "in"
+ , Space
+ , Str "pointy"
+ , Space
+ , Str "braces"
+ ]
+ ( "/script?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Header 2
+ ( "autolinks", [], [] )
+ [ Str "Autolinks" ]
+ , Para
+ [ Str "With"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://example.com/?foo=1&bar=2" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ ]
+ , BulletList
+ [
+ [ Para [ Str "In", Space, Str "a", Space, Str "list?" ] ]
+ ,
+ [ Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://example.com/" ]
+ ( "http://example.com/", "" )
+ ]
+ ]
+ ,
+ [ Para [ Str "It", Space, Str "should." ] ]
+ ]
+ , Para
+ [ Str "An"
+ , Space
+ , Str "e-mail"
+ , Space
+ , Str "address:"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "nobody@nowhere.net" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Blockquoted:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://example.com/" ]
+ ( "http://example.com/", "" )
+ ]
+ ]
+ , Para
+ [ Str "Auto-links"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "occur"
+ , Space
+ , Str "here:"
+ , Space
+ , Code
+ ( "", [], [] ) " "
+ ]
+ , CodeBlock
+ ( "", [], [] ) "or here: "
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "images", [], [] )
+ [ Str "Images" ]
+ , Para
+ [ Str "From"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "Voyage"
+ , Space
+ , Str "dans"
+ , Space
+ , Str "la"
+ , Space
+ , Str "Lune"
+ ]
+ , Space
+ , Str "by"
+ , Space
+ , Str "Georges"
+ , Space
+ , Str "Melies"
+ , Space
+ , Str "(1902):"
+ ]
+ , Para
+ [ Image ( "", [], [] ) [ Str "image" ] ( "lalune.jpg", "" ) ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "movie"
+ , Space
+ , Image
+ ( "", [], [] )
+ [ Str "image" ]
+ ( "movie.jpg", "" )
+ , Space
+ , Str "icon."
+ ]
+ , Div
+ ( "", [ "center" ], [] ) [ HorizontalRule ]
+ , Header 1
+ ( "footnotes", [], [] )
+ [ Str "Footnotes" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "footnote"
+ , SoftBreak
+ , Str "reference,"
+ , Note
+ [ Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "footnote."
+ , Space
+ , Str "It"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "anywhere"
+ , Space
+ , Str "after"
+ , Space
+ , Str "the"
+ , Space
+ , Str "footnote"
+ , SoftBreak
+ , Str "reference."
+ , Space
+ , Str "It"
+ , Space
+ , Str "need"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "placed"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "document."
+ ]
+ ]
+ , SoftBreak
+ , Str "and"
+ , SoftBreak
+ , Str "another."
+ , Note
+ [ Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "the"
+ , Space
+ , Str "long"
+ , Space
+ , Str "note."
+ , Space
+ , Str "This"
+ , Space
+ , Str "one"
+ , Space
+ , Str "contains"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "blocks."
+ ]
+ , Para
+ [ Str "Subsequent"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "are"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "to"
+ , Space
+ , Str "show"
+ , Space
+ , Str "that"
+ , Space
+ , Str "they"
+ , Space
+ , Str "belong"
+ , Space
+ , Str "to"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "footnote"
+ , Space
+ , Str "(as"
+ , Space
+ , Str "with"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items)."
+ ]
+ , CodeBlock
+ ( "", [], [] ) " { }"
+ , Para
+ [ Str "If"
+ , Space
+ , Str "you"
+ , Space
+ , Str "want,"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "indent"
+ , Space
+ , Str "every"
+ , Space
+ , Str "line,"
+ , Space
+ , Str "but"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "also"
+ , Space
+ , Str "be"
+ , Space
+ , Str "lazy"
+ , SoftBreak
+ , Str "and"
+ , Space
+ , Str "just"
+ , Space
+ , Str "indent"
+ , Space
+ , Str "the"
+ , Space
+ , Str "first"
+ , Space
+ , Str "line"
+ , Space
+ , Str "of"
+ , Space
+ , Str "each"
+ , Space
+ , Str "block."
+ ]
+ ]
+ , SoftBreak
+ , Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Emph
+ [ Str "not" ]
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "footnote"
+ , Space
+ , Str "reference,"
+ , Space
+ , Str "because"
+ , Space
+ , Str "it"
+ , Space
+ , Str "contains"
+ , SoftBreak
+ , Str "a"
+ , Space
+ , Str "space.[^my"
+ , Space
+ , Str "note]"
+ , Space
+ , Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "inline"
+ , SoftBreak
+ , Str "note."
+ , Note
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "easier" ]
+ , Space
+ , Str "to"
+ , Space
+ , Str "type."
+ , Space
+ , Str "Inline"
+ , Space
+ , Str "notes"
+ , Space
+ , Str "may"
+ , Space
+ , Str "contain"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "links" ]
+ ( "http://google.com", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Code
+ ( "", [], [] ) "]"
+ , Space
+ , Str "verbatim"
+ , Space
+ , Str "characters,"
+ , SoftBreak
+ , Str "as"
+ , Space
+ , Str "well"
+ , Space
+ , Str "as"
+ , Space
+ , Str "[bracketed"
+ , Space
+ , Str "text]."
+ ]
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Notes"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "in"
+ , Space
+ , Str "quotes."
+ , Note
+ [ Para [ Str "In", Space, Str "quote." ] ]
+ ]
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para
+ [ Str "And"
+ , Space
+ , Str "in"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items."
+ , Note
+ [ Para [ Str "In", Space, Str "list." ] ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "part"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "note,"
+ , Space
+ , Str "as"
+ , Space
+ , Str "it"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , SoftBreak
+ , Str "indented."
+ ]
+ , Header 1
+ ( "escaped-characters", [], [] )
+ [ Str "Escaped", Space, Str "characters" ]
+ , Para
+ [ Str "$"
+ , Space
+ , Str "%"
+ , Space
+ , Str "&"
+ , Space
+ , Str "#"
+ , Space
+ , Str "_"
+ , Space
+ , Str "{"
+ , Space
+ , Str "}"
+ ]
+ ]
diff --git a/test/lhs-test-markdown.native b/test/lhs-test-markdown.native
index 7a423b1ab..db2acd318 100644
--- a/test/lhs-test-markdown.native
+++ b/test/lhs-test-markdown.native
@@ -1,8 +1,130 @@
-[Header 1 ("lhs-test",[],[]) [Str "lhs",Space,Str "test"]
-,Para [Code ("",[],[]) "unsplit",Space,Str "is",Space,Str "an",Space,Str "arrow",Space,Str "that",Space,Str "takes",Space,Str "a",Space,Str "pair",Space,Str "of",Space,Str "values",Space,Str "and",Space,Str "combines",Space,Str "them",Space,Str "to",SoftBreak,Str "return",Space,Str "a",Space,Str "single",Space,Str "value:"]
-,CodeBlock ("",["haskell","literate"],[]) "unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d\nunsplit = arr . uncurry\n -- arr (\\op (x,y) -> x `op` y)"
-,Para [Code ("",[],[]) "(***)",Space,Str "combines",Space,Str "two",Space,Str "arrows",Space,Str "into",Space,Str "a",Space,Str "new",Space,Str "arrow",Space,Str "by",Space,Str "running",Space,Str "the",Space,Str "two",Space,Str "arrows",Space,Str "on",Space,Str "a",SoftBreak,Str "pair",Space,Str "of",Space,Str "values",Space,Str "(one",Space,Str "arrow",Space,Str "on",Space,Str "the",Space,Str "first",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair",Space,Str "and",Space,Str "one",Space,Str "arrow",Space,Str "on",Space,Str "the",SoftBreak,Str "second",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair)."]
-,CodeBlock ("",[],[]) "f *** g = first f >>> second g"
-,Para [Str "Block",Space,Str "quote:"]
-,BlockQuote
- [Para [Str "foo",Space,Str "bar"]]]
+[ Header 1
+ ( "lhs-test", [], [] )
+ [ Str "lhs", Space, Str "test" ]
+, Para
+ [ Code
+ ( "", [], [] ) "unsplit"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "that"
+ , Space
+ , Str "takes"
+ , Space
+ , Str "a"
+ , Space
+ , Str "pair"
+ , Space
+ , Str "of"
+ , Space
+ , Str "values"
+ , Space
+ , Str "and"
+ , Space
+ , Str "combines"
+ , Space
+ , Str "them"
+ , Space
+ , Str "to"
+ , SoftBreak
+ , Str "return"
+ , Space
+ , Str "a"
+ , Space
+ , Str "single"
+ , Space
+ , Str "value:"
+ ]
+, CodeBlock
+ ( ""
+ ,
+ [ "haskell", "literate" ]
+ , []
+ ) "unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d\nunsplit = arr . uncurry\n -- arr (\\op (x,y) -> x `op` y)"
+, Para
+ [ Code
+ ( "", [], [] ) "(***)"
+ , Space
+ , Str "combines"
+ , Space
+ , Str "two"
+ , Space
+ , Str "arrows"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , Space
+ , Str "new"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "by"
+ , Space
+ , Str "running"
+ , Space
+ , Str "the"
+ , Space
+ , Str "two"
+ , Space
+ , Str "arrows"
+ , Space
+ , Str "on"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "pair"
+ , Space
+ , Str "of"
+ , Space
+ , Str "values"
+ , Space
+ , Str "(one"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "first"
+ , Space
+ , Str "item"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "pair"
+ , Space
+ , Str "and"
+ , Space
+ , Str "one"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "second"
+ , Space
+ , Str "item"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "pair)."
+ ]
+, CodeBlock
+ ( "", [], [] ) "f *** g = first f >>> second g"
+, Para
+ [ Str "Block", Space, Str "quote:" ]
+, BlockQuote
+ [ Para [ Str "foo", Space, Str "bar" ] ]
+]
diff --git a/test/lhs-test.native b/test/lhs-test.native
index 7a423b1ab..db2acd318 100644
--- a/test/lhs-test.native
+++ b/test/lhs-test.native
@@ -1,8 +1,130 @@
-[Header 1 ("lhs-test",[],[]) [Str "lhs",Space,Str "test"]
-,Para [Code ("",[],[]) "unsplit",Space,Str "is",Space,Str "an",Space,Str "arrow",Space,Str "that",Space,Str "takes",Space,Str "a",Space,Str "pair",Space,Str "of",Space,Str "values",Space,Str "and",Space,Str "combines",Space,Str "them",Space,Str "to",SoftBreak,Str "return",Space,Str "a",Space,Str "single",Space,Str "value:"]
-,CodeBlock ("",["haskell","literate"],[]) "unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d\nunsplit = arr . uncurry\n -- arr (\\op (x,y) -> x `op` y)"
-,Para [Code ("",[],[]) "(***)",Space,Str "combines",Space,Str "two",Space,Str "arrows",Space,Str "into",Space,Str "a",Space,Str "new",Space,Str "arrow",Space,Str "by",Space,Str "running",Space,Str "the",Space,Str "two",Space,Str "arrows",Space,Str "on",Space,Str "a",SoftBreak,Str "pair",Space,Str "of",Space,Str "values",Space,Str "(one",Space,Str "arrow",Space,Str "on",Space,Str "the",Space,Str "first",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair",Space,Str "and",Space,Str "one",Space,Str "arrow",Space,Str "on",Space,Str "the",SoftBreak,Str "second",Space,Str "item",Space,Str "of",Space,Str "the",Space,Str "pair)."]
-,CodeBlock ("",[],[]) "f *** g = first f >>> second g"
-,Para [Str "Block",Space,Str "quote:"]
-,BlockQuote
- [Para [Str "foo",Space,Str "bar"]]]
+[ Header 1
+ ( "lhs-test", [], [] )
+ [ Str "lhs", Space, Str "test" ]
+, Para
+ [ Code
+ ( "", [], [] ) "unsplit"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "that"
+ , Space
+ , Str "takes"
+ , Space
+ , Str "a"
+ , Space
+ , Str "pair"
+ , Space
+ , Str "of"
+ , Space
+ , Str "values"
+ , Space
+ , Str "and"
+ , Space
+ , Str "combines"
+ , Space
+ , Str "them"
+ , Space
+ , Str "to"
+ , SoftBreak
+ , Str "return"
+ , Space
+ , Str "a"
+ , Space
+ , Str "single"
+ , Space
+ , Str "value:"
+ ]
+, CodeBlock
+ ( ""
+ ,
+ [ "haskell", "literate" ]
+ , []
+ ) "unsplit :: (Arrow a) => (b -> c -> d) -> a (b, c) d\nunsplit = arr . uncurry\n -- arr (\\op (x,y) -> x `op` y)"
+, Para
+ [ Code
+ ( "", [], [] ) "(***)"
+ , Space
+ , Str "combines"
+ , Space
+ , Str "two"
+ , Space
+ , Str "arrows"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , Space
+ , Str "new"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "by"
+ , Space
+ , Str "running"
+ , Space
+ , Str "the"
+ , Space
+ , Str "two"
+ , Space
+ , Str "arrows"
+ , Space
+ , Str "on"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "pair"
+ , Space
+ , Str "of"
+ , Space
+ , Str "values"
+ , Space
+ , Str "(one"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "first"
+ , Space
+ , Str "item"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "pair"
+ , Space
+ , Str "and"
+ , Space
+ , Str "one"
+ , Space
+ , Str "arrow"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "second"
+ , Space
+ , Str "item"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "pair)."
+ ]
+, CodeBlock
+ ( "", [], [] ) "f *** g = first f >>> second g"
+, Para
+ [ Str "Block", Space, Str "quote:" ]
+, BlockQuote
+ [ Para [ Str "foo", Space, Str "bar" ] ]
+]
diff --git a/test/man-reader.native b/test/man-reader.native
index 2ab088ff1..f8341fb84 100644
--- a/test/man-reader.native
+++ b/test/man-reader.native
@@ -1,300 +1,986 @@
-Pandoc (Meta {unMeta = fromList [("date",MetaInlines [Str "Oct",Space,Str "17,",Space,Str "2018"]),("section",MetaInlines []),("title",MetaInlines [Str "Pandoc",Space,Str "Man",Space,Str "tests"])]})
-[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc."]
-,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
-,Header 1 ("",[],[]) [Str "Headers"]
-,Header 1 ("",[],[]) [Str "Level",Space,Str "1"]
-,Header 2 ("",[],[]) [Str "Level",Space,Str "2"]
-,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
-,Header 1 ("",[],[]) [Str "Paragraphs"]
-,Para [Str "Here's",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
-,Para [Str "Another",Space,Str "paragraph",Space,Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
-,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break"]
-,Para [Str "here."]
-,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
-,Header 1 ("",[],[]) [Str "Block",Space,Str "Quotes"]
-,Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
-,BlockQuote
- [CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"]
-,Para [Str "A",Space,Str "list:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "item",Space,Str "one"]]
- ,[Para [Str "item",Space,Str "two"]]]
-,Header 1 ("",[],[]) [Str "Code",Space,Str "Blocks"]
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n"
-,Para [Str "And:"]
-,CodeBlock ("",[],[]) "\tthis code line is indented by one tab"
-,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
-,Header 1 ("",[],[]) [Str "Lists"]
-,Header 2 ("",[],[]) [Str "Unordered"]
-,Para [Str "Asterisks:"]
-,BulletList
- [[Para [Str "asterisk",Space,Str "1"]]
- ,[Para [Str "asterisk",Space,Str "2"]]
- ,[Para [Str "asterisk",Space,Str "3"]]]
-,Header 2 ("",[],[]) [Str "Ordered"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second"]]
- ,[Para [Str "Third"]]]
-,Header 2 ("",[],[]) [Str "Nested"]
-,BulletList
- [[Para [Str "Tab"]
- ,BulletList
- [[Para [Str "Tab"]
- ,BulletList
- [[Para [Str "Tab"]]]]]]]
-,Para [Str "Here's",Space,Str "another:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second:"]
- ,BulletList
- [[Para [Str "Fee"]]
- ,[Para [Str "Fie"]]
- ,[Para [Str "Foe"]]]]
- ,[Para [Str "Third"]]]
-,Para [Str "Same",Space,Str "thing:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second:"]
- ,BulletList
- [[Para [Str "Fee"]]
- ,[Para [Str "Fie"]]
- ,[Para [Str "Foe"]]]]
- ,[Para [Str "Third"]]]
-,Header 2 ("",[],[]) [Str "different",Space,Str "styles:"]
-,OrderedList (1,UpperAlpha,Period)
- [[Para [Str "Upper",Space,Str "Alpha"]
- ,OrderedList (1,UpperRoman,Period)
- [[Para [Str "Upper",Space,Str "Roman."]
- ,OrderedList (6,Decimal,TwoParens)
- [[Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
- ,OrderedList (3,LowerAlpha,OneParen)
- [[Para [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
-,Header 2 ("",[],[]) [Str "Ordered"]
-,Para [Str "Definition",Space,Str "lists"]
-,DefinitionList
- [([Strong [Str "term1"]],
- [[Para [Str "definition",Space,Str "1"]
- ,Para [Str "continued"]]])
- ,([Strong [Str "term2"]],
- [[Para [Str "definition",Space,Str "2",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]]])]
-,Header 1 ("",[],[]) [Str "Special",Space,Str "Characters"]
-,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
-,Para [Str "4",Space,Str "<",Space,Str "5."]
-,Para [Str "6",Space,Str ">",Space,Str "5."]
-,Para [Str "Backslash:",Space,Str "\\"]
-,Para [Str "Backtick:",Space,Str "`"]
-,Para [Str "Asterisk:",Space,Str "*"]
-,Para [Str "Underscore:",Space,Str "_"]
-,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
-,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
-,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
-,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
-,Para [Str "Left",Space,Str "paren:",Space,Str "("]
-,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
-,Para [Str "Greater-than:",Space,Str ">"]
-,Para [Str "Hash:",Space,Str "#"]
-,Para [Str "Period:",Space,Str "."]
-,Para [Str "Bang:",Space,Str "!"]
-,Para [Str "Plus:",Space,Str "+"]
-,Para [Str "Minus:",Space,Str "-"]
-,Header 1 ("",[],[]) [Str "Links"]
-,Para [Link ("",[],[]) [Str "some",Space,Str "randomsite"] ("http://example.com",""),Str "."]
-,Para [Link ("",[],[]) [Str "my",Space,Str "email",Space,Str "address"] ("mailto:me@example.com",""),Str "."]
-,Header 1 ("",[],[]) [Str "Macros"]
-,Para [Strong [Str "Me",Space,Str "Myself"],Space,Str "and",Space,Str "I.",Space,Emph [Str "The",Space,Str "author",Space,Str "is",Space,Str "John",Space,Str "Jones."],Space,Str "It's",Space,Str "The",Space,Strong [Str "Author"],Str "."]
-,Header 1 ("",[],[]) [Str "Tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left",Space,Emph [Str "more"]]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Centered",Space,Str "Header"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left",Space,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right",Space,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default",Space,Str "aligned"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidth 0.5)
- ,(AlignLeft,ColWidth 0.5)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "one"]
- ,Para [Str "two"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [CodeBlock ("",[],[]) "some\n code"]]])]
- (TableFoot ("",[],[])
- [])]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "date"
+ , MetaInlines
+ [ Str "Oct", Space, Str "17,", Space, Str "2018" ]
+ )
+ ,
+ ( "section", MetaInlines [] )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Pandoc", Space, Str "Man", Space, Str "tests" ]
+ )
+ ]
+ }
+ )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "set"
+ , Space
+ , Str "of"
+ , Space
+ , Str "tests"
+ , Space
+ , Str "for"
+ , Space
+ , Str "pandoc."
+ ]
+ , Para
+ [ Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Headers" ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Level", Space, Str "2" ]
+ , Para
+ [ Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Paragraphs" ]
+ , Para
+ [ Str "Here's"
+ , Space
+ , Str "a"
+ , Space
+ , Str "regular"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "Another"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "In"
+ , Space
+ , Str "Markdown"
+ , Space
+ , Str "1.0.0"
+ , Space
+ , Str "and"
+ , Space
+ , Str "earlier."
+ , Space
+ , Str "Version"
+ , Space
+ , Str "8."
+ , Space
+ , Str "This"
+ , Space
+ , Str "line"
+ , Space
+ , Str "turns"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item."
+ , Space
+ , Str "Because"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard-wrapped"
+ , Space
+ , Str "line"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "middle"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "looked"
+ , Space
+ , Str "like"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item."
+ ]
+ , Para
+ [ Str "There"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ ]
+ , Para
+ [ Str "here." ]
+ , Para
+ [ Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Block", Space, Str "Quotes" ]
+ , Para
+ [ Str "Code"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , BlockQuote
+ [ CodeBlock
+ ( "", [], [] ) "sub status {\n print \"working\";\n}"
+ ]
+ , Para
+ [ Str "A", Space, Str "list:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "item", Space, Str "one" ] ]
+ ,
+ [ Para [ Str "item", Space, Str "two" ] ]
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Code", Space, Str "Blocks" ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( "", [], [] ) "\tthis code line is indented by one tab"
+ , Para
+ [ Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Lists" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Unordered" ]
+ , Para
+ [ Str "Asterisks:" ]
+ , BulletList
+ [
+ [ Para [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Ordered" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para [ Str "Second" ] ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Nested" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "Tab" ]
+ , BulletList
+ [
+ [ Para [ Str "Tab" ], BulletList [ [ Para [ Str "Tab" ] ] ] ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here's", Space, Str "another:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Para [ Str "Fee" ] ]
+ ,
+ [ Para [ Str "Fie" ] ]
+ ,
+ [ Para [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "Same", Space, Str "thing:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Para [ Str "Fee" ] ]
+ ,
+ [ Para [ Str "Fie" ] ]
+ ,
+ [ Para [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "different", Space, Str "styles:" ]
+ , OrderedList
+ ( 1, UpperAlpha, Period )
+ [
+ [ Para
+ [ Str "Upper", Space, Str "Alpha" ]
+ , OrderedList
+ ( 1, UpperRoman, Period )
+ [
+ [ Para
+ [ Str "Upper", Space, Str "Roman." ]
+ , OrderedList
+ ( 6, Decimal, TwoParens )
+ [
+ [ Para
+ [ Str "Decimal"
+ , Space
+ , Str "start"
+ , Space
+ , Str "with"
+ , Space
+ , Str "6"
+ ]
+ , OrderedList
+ ( 3, LowerAlpha, OneParen )
+ [
+ [ Para
+ [ Str "Lower"
+ , Space
+ , Str "alpha"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paren"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Ordered" ]
+ , Para
+ [ Str "Definition", Space, Str "lists" ]
+ , DefinitionList
+ [
+ (
+ [ Strong [ Str "term1" ] ]
+ ,
+ [
+ [ Para
+ [ Str "definition", Space, Str "1" ]
+ , Para
+ [ Str "continued" ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Strong [ Str "term2" ] ]
+ ,
+ [
+ [ Para
+ [ Str "definition"
+ , Space
+ , Str "2"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ , Space
+ , Str "*"
+ ]
+ ]
+ ]
+ )
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Special", Space, Str "Characters" ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "has"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "their"
+ , Space
+ , Str "name."
+ ]
+ , Para
+ [ Str "4", Space, Str "<", Space, Str "5." ]
+ , Para
+ [ Str "6", Space, Str ">", Space, Str "5." ]
+ , Para
+ [ Str "Backslash:", Space, Str "\\" ]
+ , Para
+ [ Str "Backtick:", Space, Str "`" ]
+ , Para
+ [ Str "Asterisk:", Space, Str "*" ]
+ , Para
+ [ Str "Underscore:", Space, Str "_" ]
+ , Para
+ [ Str "Left", Space, Str "brace:", Space, Str "{" ]
+ , Para
+ [ Str "Right", Space, Str "brace:", Space, Str "}" ]
+ , Para
+ [ Str "Left", Space, Str "bracket:", Space, Str "[" ]
+ , Para
+ [ Str "Right", Space, Str "bracket:", Space, Str "]" ]
+ , Para
+ [ Str "Left", Space, Str "paren:", Space, Str "(" ]
+ , Para
+ [ Str "Right", Space, Str "paren:", Space, Str ")" ]
+ , Para
+ [ Str "Greater-than:", Space, Str ">" ]
+ , Para
+ [ Str "Hash:", Space, Str "#" ]
+ , Para
+ [ Str "Period:", Space, Str "." ]
+ , Para
+ [ Str "Bang:", Space, Str "!" ]
+ , Para
+ [ Str "Plus:", Space, Str "+" ]
+ , Para
+ [ Str "Minus:", Space, Str "-" ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Links" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "some", Space, Str "randomsite" ]
+ ( "http://example.com", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "my", Space, Str "email", Space, Str "address" ]
+ ( "mailto:me@example.com", "" )
+ , Str "."
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Macros" ]
+ , Para
+ [ Strong
+ [ Str "Me", Space, Str "Myself" ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "I."
+ , Space
+ , Emph
+ [ Str "The"
+ , Space
+ , Str "author"
+ , Space
+ , Str "is"
+ , Space
+ , Str "John"
+ , Space
+ , Str "Jones."
+ ]
+ , Space
+ , Str "It's"
+ , Space
+ , Str "The"
+ , Space
+ , Strong
+ [ Str "Author" ]
+ , Str "."
+ ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left", Space, Emph [ Str "more" ] ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Centered", Space, Str "Header" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left", Space, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right", Space, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default", Space, Str "aligned" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , Space
+ , Str "spans"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , Space
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , Space
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "column"
+ , Space
+ , Str "headers:"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignRight, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignRight, ColWidth 0.5 ), ( AlignLeft, ColWidth 0.5 ) ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "one" ], Para [ Str "two" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ CodeBlock ( "", [], [] ) "some\n code" ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
diff --git a/test/markdown-citations.native b/test/markdown-citations.native
index 1d4b1a8b2..bafdb0bbf 100644
--- a/test/markdown-citations.native
+++ b/test/markdown-citations.native
@@ -1,17 +1,539 @@
-[Header 1 ("pandoc-with-citeproc-hs",[],[]) [Str "Pandoc",Space,Str "with",Space,Str "citeproc-hs"]
-,BulletList
- [[Para [Cite [Citation {citationId = "nonexistent", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0}] [Str "[@nonexistent]"]]]
- ,[Para [Cite [Citation {citationId = "nonexistent", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 2, citationHash = 0}] [Str "@nonexistent"]]]
- ,[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 3, citationHash = 0}] [Str "@item1"],Space,Str "says",Space,Str "blah."]]
- ,[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [Str "p.\160\&30"], citationMode = AuthorInText, citationNoteNum = 4, citationHash = 0}] [Str "@item1",Space,Str "[p.",Space,Str "30]"],Space,Str "says",Space,Str "blah."]]
- ,[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [Str "p.\160\&30,",Space,Str "with",Space,Str "suffix"], citationMode = AuthorInText, citationNoteNum = 5, citationHash = 0}] [Str "@item1",Space,Str "[p.",Space,Str "30,",Space,Str "with",Space,Str "suffix]"],Space,Str "says",Space,Str "blah."]]
- ,[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 6, citationHash = 0},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [Space,Str "p.\160\&30"], citationMode = SuppressAuthor, citationNoteNum = 6, citationHash = 0},Citation {citationId = "\1087\1091\1085\1082\1090\&3", citationPrefix = [Str "see",Space,Str "also"], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 6, citationHash = 0}] [Str "@item1",Space,Str "[-@item2",Space,Str "p.",Space,Str "30;",Space,Str "see",Space,Str "also",Space,Str "@\1087\1091\1085\1082\1090\&3]"],Space,Str "says",Space,Str "blah."]]
- ,[Para [Str "In",Space,Str "a",Space,Str "note.",Note [Para [Cite [Citation {citationId = "\1087\1091\1085\1082\1090\&3", citationPrefix = [], citationSuffix = [Str "p.\160\&12"], citationMode = AuthorInText, citationNoteNum = 7, citationHash = 0}] [Str "@\1087\1091\1085\1082\1090\&3",Space,Str "[p.",Space,Str "12]"],Space,Str "and",Space,Str "a",Space,Str "citation",Space,Str "without",Space,Str "locators",Space,Cite [Citation {citationId = "\1087\1091\1085\1082\1090\&3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 7, citationHash = 0}] [Str "[@\1087\1091\1085\1082\1090\&3]"],Str "."]]]]
- ,[Para [Str "A",Space,Str "citation",Space,Str "group",Space,Cite [Citation {citationId = "item1", citationPrefix = [Str "see"], citationSuffix = [Space,Str "chap.\160\&3"], citationMode = NormalCitation, citationNoteNum = 8, citationHash = 0},Citation {citationId = "\1087\1091\1085\1082\1090\&3", citationPrefix = [Str "also"], citationSuffix = [Space,Str "p.\160\&34-35"], citationMode = NormalCitation, citationNoteNum = 8, citationHash = 0}] [Str "[see",Space,Str "@item1",Space,Str "chap.",Space,Str "3;",Space,Str "also",Space,Str "@\1087\1091\1085\1082\1090\&3",Space,Str "p.",Space,Str "34-35]"],Str "."]]
- ,[Para [Str "Another",Space,Str "one",Space,Cite [Citation {citationId = "item1", citationPrefix = [Str "see"], citationSuffix = [Space,Str "p.\160\&34-35"], citationMode = NormalCitation, citationNoteNum = 9, citationHash = 0}] [Str "[see",Space,Str "@item1",Space,Str "p.",Space,Str "34-35]"],Str "."]]
- ,[Para [Str "And",Space,Str "another",Space,Str "one",Space,Str "in",Space,Str "a",Space,Str "note.",Note [Para [Str "Some",Space,Str "citations",Space,Cite [Citation {citationId = "item1", citationPrefix = [Str "see"], citationSuffix = [Space,Str "chap.\160\&3"], citationMode = NormalCitation, citationNoteNum = 10, citationHash = 0},Citation {citationId = "\1087\1091\1085\1082\1090\&3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 10, citationHash = 0},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 10, citationHash = 0}] [Str "[see",Space,Str "@item1",Space,Str "chap.",Space,Str "3;",Space,Str "@\1087\1091\1085\1082\1090\&3;",Space,Str "@item2]"],Str "."]]]]
- ,[Para [Str "Citation",Space,Str "with",Space,Str "a",Space,Str "suffix",Space,Str "and",Space,Str "locator",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [Space,Str "pp.\160\&33,",Space,Str "35-37,",Space,Str "and",Space,Str "nowhere",Space,Str "else"], citationMode = NormalCitation, citationNoteNum = 11, citationHash = 0}] [Str "[@item1",Space,Str "pp.",Space,Str "33,",Space,Str "35-37,",Space,Str "and",Space,Str "nowhere",Space,Str "else]"],Str "."]]
- ,[Para [Str "Citation",Space,Str "with",Space,Str "suffix",Space,Str "only",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [Space,Str "and",Space,Str "nowhere",Space,Str "else"], citationMode = NormalCitation, citationNoteNum = 12, citationHash = 0}] [Str "[@item1",Space,Str "and",Space,Str "nowhere",Space,Str "else]"],Str "."]]
- ,[Para [Str "Now",Space,Str "some",Space,Str "modifiers.",Note [Para [Str "Like",Space,Str "a",Space,Str "citation",Space,Str "without",Space,Str "author:",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = SuppressAuthor, citationNoteNum = 13, citationHash = 0}] [Str "[-@item1]"],Str ",",Space,Str "and",Space,Str "now",Space,Str "Doe",Space,Str "with",Space,Str "a",Space,Str "locator",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [Space,Str "p.\160\&44"], citationMode = SuppressAuthor, citationNoteNum = 13, citationHash = 0}] [Str "[-@item2",Space,Str "p.",Space,Str "44]"],Str "."]]]]
- ,[Para [Str "With",Space,Str "some",Space,Str "markup",Space,Cite [Citation {citationId = "item1", citationPrefix = [Emph [Str "see"]], citationSuffix = [Space,Str "p.\160",Strong [Str "32"]], citationMode = NormalCitation, citationNoteNum = 14, citationHash = 0}] [Str "[*see*",Space,Str "@item1",Space,Str "p.",Space,Str "**32**]"],Str "."]]]
-,Header 1 ("references",[],[]) [Str "References"]]
+[ Header 1
+ ( "pandoc-with-citeproc-hs", [], [] )
+ [ Str "Pandoc", Space, Str "with", Space, Str "citeproc-hs" ]
+, BulletList
+ [
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "nonexistent"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 1
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@nonexistent]" ]
+ ]
+ ]
+ ,
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "nonexistent"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 2
+ , citationHash = 0
+ }
+ ]
+ [ Str "@nonexistent" ]
+ ]
+ ]
+ ,
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 3
+ , citationHash = 0
+ }
+ ]
+ [ Str "@item1" ]
+ , Space
+ , Str "says"
+ , Space
+ , Str "blah."
+ ]
+ ]
+ ,
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "p.\160\&30" ]
+ , citationMode = AuthorInText
+ , citationNoteNum = 4
+ , citationHash = 0
+ }
+ ]
+ [ Str "@item1", Space, Str "[p.", Space, Str "30]" ]
+ , Space
+ , Str "says"
+ , Space
+ , Str "blah."
+ ]
+ ]
+ ,
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "p.\160\&30,"
+ , Space
+ , Str "with"
+ , Space
+ , Str "suffix"
+ ]
+ , citationMode = AuthorInText
+ , citationNoteNum = 5
+ , citationHash = 0
+ }
+ ]
+ [ Str "@item1"
+ , Space
+ , Str "[p."
+ , Space
+ , Str "30,"
+ , Space
+ , Str "with"
+ , Space
+ , Str "suffix]"
+ ]
+ , Space
+ , Str "says"
+ , Space
+ , Str "blah."
+ ]
+ ]
+ ,
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = AuthorInText
+ , citationNoteNum = 6
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "item2"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Space, Str "p.\160\&30" ]
+ , citationMode = SuppressAuthor
+ , citationNoteNum = 6
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "\1087\1091\1085\1082\1090\&3"
+ , citationPrefix =
+ [ Str "see", Space, Str "also" ]
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 6
+ , citationHash = 0
+ }
+ ]
+ [ Str "@item1"
+ , Space
+ , Str "[-@item2"
+ , Space
+ , Str "p."
+ , Space
+ , Str "30;"
+ , Space
+ , Str "see"
+ , Space
+ , Str "also"
+ , Space
+ , Str "@\1087\1091\1085\1082\1090\&3]"
+ ]
+ , Space
+ , Str "says"
+ , Space
+ , Str "blah."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "In"
+ , Space
+ , Str "a"
+ , Space
+ , Str "note."
+ , Note
+ [ Para
+ [ Cite
+ [ Citation
+ { citationId = "\1087\1091\1085\1082\1090\&3"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Str "p.\160\&12" ]
+ , citationMode = AuthorInText
+ , citationNoteNum = 7
+ , citationHash = 0
+ }
+ ]
+ [ Str "@\1087\1091\1085\1082\1090\&3"
+ , Space
+ , Str "[p."
+ , Space
+ , Str "12]"
+ ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "a"
+ , Space
+ , Str "citation"
+ , Space
+ , Str "without"
+ , Space
+ , Str "locators"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "\1087\1091\1085\1082\1090\&3"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 7
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@\1087\1091\1085\1082\1090\&3]" ]
+ , Str "."
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "A"
+ , Space
+ , Str "citation"
+ , Space
+ , Str "group"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix =
+ [ Str "see" ]
+ , citationSuffix =
+ [ Space, Str "chap.\160\&3" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 8
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "\1087\1091\1085\1082\1090\&3"
+ , citationPrefix =
+ [ Str "also" ]
+ , citationSuffix =
+ [ Space, Str "p.\160\&34-35" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 8
+ , citationHash = 0
+ }
+ ]
+ [ Str "[see"
+ , Space
+ , Str "@item1"
+ , Space
+ , Str "chap."
+ , Space
+ , Str "3;"
+ , Space
+ , Str "also"
+ , Space
+ , Str "@\1087\1091\1085\1082\1090\&3"
+ , Space
+ , Str "p."
+ , Space
+ , Str "34-35]"
+ ]
+ , Str "."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Another"
+ , Space
+ , Str "one"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix =
+ [ Str "see" ]
+ , citationSuffix =
+ [ Space, Str "p.\160\&34-35" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 9
+ , citationHash = 0
+ }
+ ]
+ [ Str "[see"
+ , Space
+ , Str "@item1"
+ , Space
+ , Str "p."
+ , Space
+ , Str "34-35]"
+ ]
+ , Str "."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "And"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "note."
+ , Note
+ [ Para
+ [ Str "Some"
+ , Space
+ , Str "citations"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix =
+ [ Str "see" ]
+ , citationSuffix =
+ [ Space, Str "chap.\160\&3" ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 10
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "\1087\1091\1085\1082\1090\&3"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 10
+ , citationHash = 0
+ }
+ , Citation
+ { citationId = "item2"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 10
+ , citationHash = 0
+ }
+ ]
+ [ Str "[see"
+ , Space
+ , Str "@item1"
+ , Space
+ , Str "chap."
+ , Space
+ , Str "3;"
+ , Space
+ , Str "@\1087\1091\1085\1082\1090\&3;"
+ , Space
+ , Str "@item2]"
+ ]
+ , Str "."
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Citation"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "suffix"
+ , Space
+ , Str "and"
+ , Space
+ , Str "locator"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Space
+ , Str "pp.\160\&33,"
+ , Space
+ , Str "35-37,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "nowhere"
+ , Space
+ , Str "else"
+ ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 11
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@item1"
+ , Space
+ , Str "pp."
+ , Space
+ , Str "33,"
+ , Space
+ , Str "35-37,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "nowhere"
+ , Space
+ , Str "else]"
+ ]
+ , Str "."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Citation"
+ , Space
+ , Str "with"
+ , Space
+ , Str "suffix"
+ , Space
+ , Str "only"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Space
+ , Str "and"
+ , Space
+ , Str "nowhere"
+ , Space
+ , Str "else"
+ ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 12
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@item1"
+ , Space
+ , Str "and"
+ , Space
+ , Str "nowhere"
+ , Space
+ , Str "else]"
+ ]
+ , Str "."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Now"
+ , Space
+ , Str "some"
+ , Space
+ , Str "modifiers."
+ , Note
+ [ Para
+ [ Str "Like"
+ , Space
+ , Str "a"
+ , Space
+ , Str "citation"
+ , Space
+ , Str "without"
+ , Space
+ , Str "author:"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = SuppressAuthor
+ , citationNoteNum = 13
+ , citationHash = 0
+ }
+ ]
+ [ Str "[-@item1]" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "now"
+ , Space
+ , Str "Doe"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "locator"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item2"
+ , citationPrefix = []
+ , citationSuffix =
+ [ Space, Str "p.\160\&44" ]
+ , citationMode = SuppressAuthor
+ , citationNoteNum = 13
+ , citationHash = 0
+ }
+ ]
+ [ Str "[-@item2", Space, Str "p.", Space, Str "44]" ]
+ , Str "."
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "With"
+ , Space
+ , Str "some"
+ , Space
+ , Str "markup"
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "item1"
+ , citationPrefix =
+ [ Emph [ Str "see" ] ]
+ , citationSuffix =
+ [ Space, Str "p.\160", Strong [ Str "32" ] ]
+ , citationMode = NormalCitation
+ , citationNoteNum = 14
+ , citationHash = 0
+ }
+ ]
+ [ Str "[*see*"
+ , Space
+ , Str "@item1"
+ , Space
+ , Str "p."
+ , Space
+ , Str "**32**]"
+ ]
+ , Str "."
+ ]
+ ]
+ ]
+, Header 1
+ ( "references", [], [] )
+ [ Str "References" ]
+]
diff --git a/test/markdown-reader-more.native b/test/markdown-reader-more.native
index b4a16f7cf..99ab260ba 100644
--- a/test/markdown-reader-more.native
+++ b/test/markdown-reader-more.native
@@ -1,311 +1,1227 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "Author",Space,Str "One"],MetaInlines [Str "Author",Space,Str "Two"],MetaInlines [Str "Author",Space,Str "Three"],MetaInlines [Str "Author",Space,Str "Four"]]),("title",MetaInlines [Str "Title",SoftBreak,Str "spanning",Space,Str "multiple",Space,Str "lines"])]})
-[Header 1 ("additional-markdown-reader-tests",[],[]) [Str "Additional",Space,Str "markdown",Space,Str "reader",Space,Str "tests"]
-,Header 2 ("blank-line-before-url-in-link-reference",[],[]) [Str "Blank",Space,Str "line",Space,Str "before",Space,Str "URL",Space,Str "in",Space,Str "link",Space,Str "reference"]
-,Para [Link ("",[],[]) [Str "foo"] ("/url",""),Space,Str "and",Space,Link ("",[],[]) [Str "bar"] ("/url","title")]
-,Header 2 ("raw-context-environments",[],[]) [Str "Raw",Space,Str "ConTeXt",Space,Str "environments"]
-,RawBlock (Format "tex") "\\placeformula \\startformula"
-,Para [Str "L_{1}",Space,Str "=",Space,Str "L_{2}",SoftBreak,RawInline (Format "tex") "\\stopformula"]
-,RawBlock (Format "tex") "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]"
-,Header 2 ("raw-latex-environments",[],[]) [Str "Raw",Space,Str "LaTeX",Space,Str "environments"]
-,RawBlock (Format "tex") "\\begin{center}\n\\begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt]\n\\Tree [.{S} [.NP John\\index{i} ] [.VP [.V likes ] [.NP himself\\index{i,*j} ]]]\n\\end{tikzpicture}\n\\end{center}"
-,Header 2 ("urls-with-spaces-and-punctuation",[],[]) [Str "URLs",Space,Str "with",Space,Str "spaces",Space,Str "and",Space,Str "punctuation"]
-,Para [Link ("",[],[]) [Str "foo"] ("/bar%20and%20baz",""),SoftBreak,Link ("",[],[]) [Str "foo"] ("/bar%20and%20baz",""),SoftBreak,Link ("",[],[]) [Str "foo"] ("/bar%20and%20baz",""),SoftBreak,Link ("",[],[]) [Str "foo"] ("bar%20baz","title")]
-,Para [Link ("",[],[]) [Str "baz"] ("/foo%20foo",""),Space,Link ("",[],[]) [Str "bam"] ("/foo%20fee",""),Space,Link ("",[],[]) [Str "bork"] ("/foo/zee%20zob","title")]
-,Para [Link ("",[],[]) [Str "Ward\8217s",Space,Str "method."] ("http://en.wikipedia.org/wiki/Ward's_method","")]
-,Header 2 ("horizontal-rules-with-spaces-at-end",[],[]) [Str "Horizontal",Space,Str "rules",Space,Str "with",Space,Str "spaces",Space,Str "at",Space,Str "end"]
-,HorizontalRule
-,HorizontalRule
-,Header 2 ("raw-html-before-header",[],[]) [Str "Raw",Space,Str "HTML",Space,Str "before",Space,Str "header"]
-,Para [RawInline (Format "html") "",RawInline (Format "html") " "]
-,Header 3 ("my-header",[],[]) [Str "my",Space,Str "header"]
-,Header 2 ("in-math",[],[]) [Str "$",Space,Str "in",Space,Str "math"]
-,Para [Math InlineMath "\\$2 + \\$3"]
-,Para [Math InlineMath "x = \\text{the $n$th root of $y$}"]
-,Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "math:"]
-,Para [Str "$PATH",Space,Str "90",Space,Str "$PATH"]
-,Header 2 ("commented-out-list-item",[],[]) [Str "Commented-out",Space,Str "list",Space,Str "item"]
-,BulletList
- [[Plain [Str "one",SoftBreak,RawInline (Format "html") ""]]
- ,[Plain [Str "three"]]]
-,Header 2 ("indented-code-at-beginning-of-list",[],[]) [Str "Indented",Space,Str "code",Space,Str "at",Space,Str "beginning",Space,Str "of",Space,Str "list"]
-,BulletList
- [[CodeBlock ("",[],[]) "code\ncode"
- ,OrderedList (1,Decimal,Period)
- [[CodeBlock ("",[],[]) "code\ncode"]
- ,[CodeBlock ("",[],[]) "code\ncode"]]
- ,BulletList
- [[CodeBlock ("",[],[]) "code\ncode"]
- ,[Plain [Str "no",Space,Str "code"]]]]]
-,Header 2 ("backslash-newline",[],[]) [Str "Backslash",Space,Str "newline"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Header 2 ("code-spans",[],[]) [Str "Code",Space,Str "spans"]
-,Para [Code ("",[],[]) "hi\\"]
-,Para [Code ("",[],[]) "hi there"]
-,Para [Code ("",[],[]) "hi````there"]
-,Para [Str "`hi"]
-,Para [Str "there`"]
-,Header 2 ("multilingual-urls",[],[]) [Str "Multilingual",Space,Str "URLs"]
-,Para [Link ("",["uri"],[]) [Str "http://\27979.com?\27979=\27979"] ("http://\27979.com?\27979=\27979","")]
-,Para [Link ("",[],[]) [Str "foo"] ("/bar/\27979?x=\27979","title")]
-,Para [Link ("",["email"],[]) [Str "\27979@foo.\27979.baz"] ("mailto:\27979@foo.\27979.baz","")]
-,Header 2 ("numbered-examples",[],[]) [Str "Numbered",Space,Str "examples"]
-,OrderedList (1,Example,TwoParens)
- [[Plain [Str "First",Space,Str "example."]]
- ,[Plain [Str "Second",Space,Str "example."]]]
-,Para [Str "Explanation",Space,Str "of",Space,Str "examples",Space,Str "(2)",Space,Str "and",Space,Str "(3)."]
-,OrderedList (3,Example,TwoParens)
- [[Plain [Str "Third",Space,Str "example."]]]
-,Header 2 ("macros",[],[]) [Str "Macros"]
-,RawBlock (Format "tex") "\\newcommand{\\tuple}[1]{\\langle #1 \\rangle}"
-,Para [Math InlineMath "\\langle x,y \\rangle"]
-,Header 2 ("case-insensitive-references",[],[]) [Str "Case-insensitive",Space,Str "references"]
-,Para [Link ("",[],[]) [Str "Fum"] ("/fum","")]
-,Para [Link ("",[],[]) [Str "FUM"] ("/fum","")]
-,Para [Link ("",[],[]) [Str "bat"] ("/bat","")]
-,Header 2 ("curly-smart-quotes",[],[]) [Str "Curly",Space,Str "smart",Space,Str "quotes"]
-,Para [Quoted DoubleQuote [Str "Hi"]]
-,Para [Quoted SingleQuote [Str "Hi"]]
-,Header 2 ("consecutive-lists",[],[]) [Str "Consecutive",Space,Str "lists"]
-,BulletList
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]]]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]]]
-,OrderedList (1,LowerAlpha,Period)
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]]]
-,Header 2 ("implicit-header-references",[],[]) [Str "Implicit",Space,Str "header",Space,Str "references"]
-,Header 3 ("my-header-1",[],[]) [Str "My",Space,Str "header"]
-,Header 3 ("my-other-header",[],[]) [Str "My",Space,Str "other",Space,Str "header"]
-,Para [Str "A",Space,Str "link",Space,Str "to",Space,Link ("",[],[]) [Str "My",Space,Str "header"] ("#my-header-1",""),Str "."]
-,Para [Str "Another",Space,Str "link",Space,Str "to",Space,Link ("",[],[]) [Str "it"] ("#my-header-1",""),Str "."]
-,Para [Str "Should",Space,Str "be",Space,Link ("",[],[]) [Str "case",Space,Str "insensitive"] ("#my-header-1",""),Str "."]
-,Para [Str "Link",Space,Str "to",Space,Link ("",[],[]) [Str "Explicit",Space,Str "header",Space,Str "attributes"] ("#foobar",""),Str "."]
-,Para [Str "But",Space,Str "this",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "link",Space,Str "to",Space,Link ("",[],[]) [Str "My",Space,Str "other",Space,Str "header"] ("/foo",""),Str ",",Space,Str "since",Space,Str "the",Space,Str "reference",Space,Str "is",Space,Str "defined."]
-,Header 2 ("foobar",["baz"],[("key","val")]) [Str "Explicit",Space,Str "header",Space,Str "attributes"]
-,BlockQuote
- [Header 2 ("foobar",["baz"],[("key","val")]) [Str "Header",Space,Str "attributes",Space,Str "inside",Space,Str "block",Space,Str "quote"]]
-,Header 2 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"]
-,LineBlock
- [[Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be"]
- ,[Str "\160\160\160\160or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,"]
- ,[Str "\160\160\160\160\160\160\160\160when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,"]
- ,[Str "\160\160\160\160\160\160\160\160\160\160\160\160due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
- ,[]
- ,[Str "Continuation",Space,Str "line"]
- ,[Str "\160\160and",Space,Str "another"]]
-,Header 2 ("grid-tables",[],[]) [Str "Grid",Space,Str "Tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2638888888888889)
- ,(AlignDefault,ColWidth 0.16666666666666666)
- ,(AlignDefault,ColWidth 0.18055555555555555)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Headless"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2638888888888889)
- ,(AlignDefault,ColWidth 0.16666666666666666)
- ,(AlignDefault,ColWidth 0.18055555555555555)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "With",Space,Str "alignments"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidth 0.2638888888888889)
- ,(AlignLeft,ColWidth 0.16666666666666666)
- ,(AlignCenter,ColWidth 0.18055555555555555)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Headless",Space,Str "with",Space,Str "alignments"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidth 0.2638888888888889)
- ,(AlignLeft,ColWidth 0.16666666666666666)
- ,(AlignCenter,ColWidth 0.18055555555555555)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Spaces",Space,Str "at",Space,Str "ends",Space,Str "of",Space,Str "lines"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2638888888888889)
- ,(AlignDefault,ColWidth 0.16666666666666666)
- ,(AlignDefault,ColWidth 0.18055555555555555)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiple",Space,Str "blocks",Space,Str "in",Space,Str "a",Space,Str "cell"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2638888888888889)
- ,(AlignDefault,ColWidth 0.16666666666666666)
- ,(AlignDefault,ColWidth 0.18055555555555555)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Header 1 ("col-1",[],[]) [Str "col",Space,Str "1"]
- ,Plain [Str "col",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Header 1 ("col-2",[],[]) [Str "col",Space,Str "2"]
- ,Plain [Str "col",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Header 1 ("col-3",[],[]) [Str "col",Space,Str "3"]
- ,Plain [Str "col",Space,Str "3"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "r1",Space,Str "a"]
- ,Para [Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [BulletList
- [[Plain [Str "b"]]
- ,[Plain [Str "b",Space,Str "2"]]
- ,[Plain [Str "b",Space,Str "2"]]]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2",SoftBreak,Str "c",Space,Str "2"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Empty",Space,Str "cells"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 5.555555555555555e-2)
- ,(AlignDefault,ColWidth 5.555555555555555e-2)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])]
- (TableFoot ("",[],[])
- [])
-,Header 2 ("entities-in-links-and-titles",[],[]) [Str "Entities",Space,Str "in",Space,Str "links",Space,Str "and",Space,Str "titles"]
-,Para [Link ("",[],[]) [Str "link"] ("/\252rl","\246\246!")]
-,Para [Link ("",["uri"],[]) [Str "http://g\246\246gle.com"] ("http://g\246\246gle.com","")]
-,Para [Link ("",["email"],[]) [Str "me@ex\228mple.com"] ("mailto:me@ex\228mple.com","")]
-,Para [Link ("",[],[]) [Str "foobar"] ("/\252rl","\246\246!")]
-,Header 2 ("parentheses-in-urls",[],[]) [Str "Parentheses",Space,Str "in",Space,Str "URLs"]
-,Para [Link ("",[],[]) [Str "link"] ("/hi(there)","")]
-,Para [Link ("",[],[]) [Str "link"] ("/hithere)","")]
-,Para [Link ("",[],[]) [Str "linky"] ("hi_(there_(nested))","")]
-,Header 2 ("backslashes-in-link-references",[],[]) [Str "Backslashes",Space,Str "in",Space,Str "link",Space,Str "references"]
-,Para [Link ("",[],[]) [Str "*",RawInline (Format "tex") "\\a"] ("b","")]
-,Header 2 ("reference-link-fallbacks",[],[]) [Str "Reference",Space,Str "link",Space,Str "fallbacks"]
-,Para [Str "[",Emph [Str "not",Space,Str "a",Space,Str "link"],Str "]",Space,Str "[",Emph [Str "nope"],Str "]\8230"]
-,Header 2 ("reference-link-followed-by-a-citation",[],[]) [Str "Reference",Space,Str "link",Space,Str "followed",Space,Str "by",Space,Str "a",Space,Str "citation"]
-,Para [Str "MapReduce",Space,Str "is",Space,Str "a",Space,Str "paradigm",Space,Str "popularized",Space,Str "by",Space,Link ("",[],[]) [Str "Google"] ("http://google.com",""),Space,Cite [Citation {citationId = "mapreduce", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 2, citationHash = 0}] [Str "[@mapreduce]"],Space,Str "as",Space,Str "its",SoftBreak,Str "most",Space,Str "vocal",Space,Str "proponent."]
-,Header 2 ("empty-reference-links",[],[]) [Str "Empty",Space,Str "reference",Space,Str "links"]
-,Para [Str "bar"]
-,Para [Link ("",[],[]) [Str "foo2"] ("","")]
-,Header 2 ("wrapping-shouldnt-introduce-new-list-items",[],[]) [Str "Wrapping",Space,Str "shouldn\8217t",Space,Str "introduce",Space,Str "new",Space,Str "list",Space,Str "items"]
-,BulletList
- [[Plain [Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "blah",Space,Str "2015."]]]
-,Header 2 ("bracketed-spans",[],[]) [Str "Bracketed",Space,Str "spans"]
-,Para [Span ("id",["class"],[("key","val")]) [Emph [Str "foo"],Space,Str "bar",Space,Str "baz",Space,Link ("",[],[]) [Str "link"] ("url","")]]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaList
+ [ MetaInlines
+ [ Str "Author", Space, Str "One" ]
+ , MetaInlines
+ [ Str "Author", Space, Str "Two" ]
+ , MetaInlines
+ [ Str "Author", Space, Str "Three" ]
+ , MetaInlines
+ [ Str "Author", Space, Str "Four" ]
+ ]
+ )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Title"
+ , SoftBreak
+ , Str "spanning"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines"
+ ]
+ )
+ ]
+ }
+ )
+ [ Header 1
+ ( "additional-markdown-reader-tests", [], [] )
+ [ Str "Additional"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "reader"
+ , Space
+ , Str "tests"
+ ]
+ , Header 2
+ ( "blank-line-before-url-in-link-reference", [], [] )
+ [ Str "Blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "before"
+ , Space
+ , Str "URL"
+ , Space
+ , Str "in"
+ , Space
+ , Str "link"
+ , Space
+ , Str "reference"
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "/url", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url", "title" )
+ ]
+ , Header 2
+ ( "raw-context-environments", [], [] )
+ [ Str "Raw", Space, Str "ConTeXt", Space, Str "environments" ]
+ , RawBlock
+ ( Format "tex" ) "\\placeformula \\startformula"
+ , Para
+ [ Str "L_{1}"
+ , Space
+ , Str "="
+ , Space
+ , Str "L_{2}"
+ , SoftBreak
+ , RawInline
+ ( Format "tex" ) "\\stopformula"
+ ]
+ , RawBlock
+ ( Format "tex" ) "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]"
+ , Header 2
+ ( "raw-latex-environments", [], [] )
+ [ Str "Raw", Space, Str "LaTeX", Space, Str "environments" ]
+ , RawBlock
+ ( Format "tex" ) "\\begin{center}\n\\begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt]\n\\Tree [.{S} [.NP John\\index{i} ] [.VP [.V likes ] [.NP himself\\index{i,*j} ]]]\n\\end{tikzpicture}\n\\end{center}"
+ , Header 2
+ ( "urls-with-spaces-and-punctuation", [], [] )
+ [ Str "URLs"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "and"
+ , Space
+ , Str "punctuation"
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "/bar%20and%20baz", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "/bar%20and%20baz", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "/bar%20and%20baz", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "bar%20baz", "title" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "baz" ]
+ ( "/foo%20foo", "" )
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bam" ]
+ ( "/foo%20fee", "" )
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bork" ]
+ ( "/foo/zee%20zob", "title" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Ward\8217s", Space, Str "method." ]
+ ( "http://en.wikipedia.org/wiki/Ward's_method", "" )
+ ]
+ , Header 2
+ ( "horizontal-rules-with-spaces-at-end", [], [] )
+ [ Str "Horizontal"
+ , Space
+ , Str "rules"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "at"
+ , Space
+ , Str "end"
+ ]
+ , HorizontalRule
+ , HorizontalRule
+ , Header 2
+ ( "raw-html-before-header", [], [] )
+ [ Str "Raw"
+ , Space
+ , Str "HTML"
+ , Space
+ , Str "before"
+ , Space
+ , Str "header"
+ ]
+ , Para
+ [ RawInline
+ ( Format "html" ) ""
+ , RawInline
+ ( Format "html" ) " "
+ ]
+ , Header 3
+ ( "my-header", [], [] )
+ [ Str "my", Space, Str "header" ]
+ , Header 2
+ ( "in-math", [], [] )
+ [ Str "$", Space, Str "in", Space, Str "math" ]
+ , Para
+ [ Math InlineMath "\\$2 + \\$3" ]
+ , Para
+ [ Math InlineMath "x = \\text{the $n$th root of $y$}" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "math:"
+ ]
+ , Para
+ [ Str "$PATH", Space, Str "90", Space, Str "$PATH" ]
+ , Header 2
+ ( "commented-out-list-item", [], [] )
+ [ Str "Commented-out", Space, Str "list", Space, Str "item" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "one"
+ , SoftBreak
+ , RawInline
+ ( Format "html" ) ""
+ ]
+ ]
+ ,
+ [ Plain [ Str "three" ] ]
+ ]
+ , Header 2
+ ( "indented-code-at-beginning-of-list", [], [] )
+ [ Str "Indented"
+ , Space
+ , Str "code"
+ , Space
+ , Str "at"
+ , Space
+ , Str "beginning"
+ , Space
+ , Str "of"
+ , Space
+ , Str "list"
+ ]
+ , BulletList
+ [
+ [ CodeBlock
+ ( "", [], [] ) "code\ncode"
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ CodeBlock ( "", [], [] ) "code\ncode" ]
+ ,
+ [ CodeBlock ( "", [], [] ) "code\ncode" ]
+ ]
+ , BulletList
+ [
+ [ CodeBlock ( "", [], [] ) "code\ncode" ]
+ ,
+ [ Plain [ Str "no", Space, Str "code" ] ]
+ ]
+ ]
+ ]
+ , Header 2
+ ( "backslash-newline", [], [] )
+ [ Str "Backslash", Space, Str "newline" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Header 2
+ ( "code-spans", [], [] )
+ [ Str "Code", Space, Str "spans" ]
+ , Para
+ [ Code ( "", [], [] ) "hi\\" ]
+ , Para
+ [ Code ( "", [], [] ) "hi there" ]
+ , Para
+ [ Code ( "", [], [] ) "hi````there" ]
+ , Para
+ [ Str "`hi" ]
+ , Para
+ [ Str "there`" ]
+ , Header 2
+ ( "multilingual-urls", [], [] )
+ [ Str "Multilingual", Space, Str "URLs" ]
+ , Para
+ [ Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://\27979.com?\27979=\27979" ]
+ ( "http://\27979.com?\27979=\27979", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "/bar/\27979?x=\27979", "title" )
+ ]
+ , Para
+ [ Link
+ ( "", [ "email" ], [] )
+ [ Str "\27979@foo.\27979.baz" ]
+ ( "mailto:\27979@foo.\27979.baz", "" )
+ ]
+ , Header 2
+ ( "numbered-examples", [], [] )
+ [ Str "Numbered", Space, Str "examples" ]
+ , OrderedList
+ ( 1, Example, TwoParens )
+ [
+ [ Plain [ Str "First", Space, Str "example." ] ]
+ ,
+ [ Plain [ Str "Second", Space, Str "example." ] ]
+ ]
+ , Para
+ [ Str "Explanation"
+ , Space
+ , Str "of"
+ , Space
+ , Str "examples"
+ , Space
+ , Str "(2)"
+ , Space
+ , Str "and"
+ , Space
+ , Str "(3)."
+ ]
+ , OrderedList
+ ( 3, Example, TwoParens )
+ [ [ Plain [ Str "Third", Space, Str "example." ] ] ]
+ , Header 2
+ ( "macros", [], [] )
+ [ Str "Macros" ]
+ , RawBlock
+ ( Format "tex" ) "\\newcommand{\\tuple}[1]{\\langle #1 \\rangle}"
+ , Para
+ [ Math InlineMath "\\langle x,y \\rangle" ]
+ , Header 2
+ ( "case-insensitive-references", [], [] )
+ [ Str "Case-insensitive", Space, Str "references" ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "Fum" ] ( "/fum", "" ) ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "FUM" ] ( "/fum", "" ) ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "bat" ] ( "/bat", "" ) ]
+ , Header 2
+ ( "curly-smart-quotes", [], [] )
+ [ Str "Curly", Space, Str "smart", Space, Str "quotes" ]
+ , Para
+ [ Quoted DoubleQuote [ Str "Hi" ] ]
+ , Para
+ [ Quoted SingleQuote [ Str "Hi" ] ]
+ , Header 2
+ ( "consecutive-lists", [], [] )
+ [ Str "Consecutive", Space, Str "lists" ]
+ , BulletList
+ [ [ Plain [ Str "one" ] ], [ Plain [ Str "two" ] ] ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [ [ Plain [ Str "one" ] ], [ Plain [ Str "two" ] ] ]
+ , OrderedList
+ ( 1, LowerAlpha, Period )
+ [ [ Plain [ Str "one" ] ], [ Plain [ Str "two" ] ] ]
+ , Header 2
+ ( "implicit-header-references", [], [] )
+ [ Str "Implicit", Space, Str "header", Space, Str "references" ]
+ , Header 3
+ ( "my-header-1", [], [] )
+ [ Str "My", Space, Str "header" ]
+ , Header 3
+ ( "my-other-header", [], [] )
+ [ Str "My", Space, Str "other", Space, Str "header" ]
+ , Para
+ [ Str "A"
+ , Space
+ , Str "link"
+ , Space
+ , Str "to"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "My", Space, Str "header" ]
+ ( "#my-header-1", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Another"
+ , Space
+ , Str "link"
+ , Space
+ , Str "to"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "it" ]
+ ( "#my-header-1", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Should"
+ , Space
+ , Str "be"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "case", Space, Str "insensitive" ]
+ ( "#my-header-1", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Link"
+ , Space
+ , Str "to"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "Explicit", Space, Str "header", Space, Str "attributes" ]
+ ( "#foobar", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "But"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link"
+ , Space
+ , Str "to"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "My", Space, Str "other", Space, Str "header" ]
+ ( "/foo", "" )
+ , Str ","
+ , Space
+ , Str "since"
+ , Space
+ , Str "the"
+ , Space
+ , Str "reference"
+ , Space
+ , Str "is"
+ , Space
+ , Str "defined."
+ ]
+ , Header 2
+ ( "foobar", [ "baz" ], [ ( "key", "val" ) ] )
+ [ Str "Explicit", Space, Str "header", Space, Str "attributes" ]
+ , BlockQuote
+ [ Header 2
+ ( "foobar", [ "baz" ], [ ( "key", "val" ) ] )
+ [ Str "Header"
+ , Space
+ , Str "attributes"
+ , Space
+ , Str "inside"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote"
+ ]
+ ]
+ , Header 2
+ ( "line-blocks", [], [] )
+ [ Str "Line", Space, Str "blocks" ]
+ , LineBlock
+ [
+ [ Str "But"
+ , Space
+ , Str "can"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bee"
+ , Space
+ , Str "be"
+ , Space
+ , Str "said"
+ , Space
+ , Str "to"
+ , Space
+ , Str "be"
+ ]
+ ,
+ [ Str "\160\160\160\160or"
+ , Space
+ , Str "not"
+ , Space
+ , Str "to"
+ , Space
+ , Str "be"
+ , Space
+ , Str "an"
+ , Space
+ , Str "entire"
+ , Space
+ , Str "bee,"
+ ]
+ ,
+ [ Str "\160\160\160\160\160\160\160\160when"
+ , Space
+ , Str "half"
+ , Space
+ , Str "the"
+ , Space
+ , Str "bee"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bee,"
+ ]
+ ,
+ [ Str "\160\160\160\160\160\160\160\160\160\160\160\160due"
+ , Space
+ , Str "to"
+ , Space
+ , Str "some"
+ , Space
+ , Str "ancient"
+ , Space
+ , Str "injury?"
+ ]
+ , []
+ ,
+ [ Str "Continuation", Space, Str "line" ]
+ ,
+ [ Str "\160\160and", Space, Str "another" ]
+ ]
+ , Header 2
+ ( "grid-tables", [], [] )
+ [ Str "Grid", Space, Str "Tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2638888888888889 )
+ ,
+ ( AlignDefault, ColWidth 0.16666666666666666 )
+ ,
+ ( AlignDefault, ColWidth 0.18055555555555555 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "3" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "r1"
+ , Space
+ , Str "bis"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Headless" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2638888888888889 )
+ ,
+ ( AlignDefault, ColWidth 0.16666666666666666 )
+ ,
+ ( AlignDefault, ColWidth 0.18055555555555555 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "r1"
+ , Space
+ , Str "bis"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "With", Space, Str "alignments" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidth 0.2638888888888889 )
+ ,
+ ( AlignLeft, ColWidth 0.16666666666666666 )
+ ,
+ ( AlignCenter, ColWidth 0.18055555555555555 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "3" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "r1"
+ , Space
+ , Str "bis"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Headless", Space, Str "with", Space, Str "alignments" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidth 0.2638888888888889 )
+ ,
+ ( AlignLeft, ColWidth 0.16666666666666666 )
+ ,
+ ( AlignCenter, ColWidth 0.18055555555555555 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "r1"
+ , Space
+ , Str "bis"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Spaces"
+ , Space
+ , Str "at"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "of"
+ , Space
+ , Str "lines"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2638888888888889 )
+ ,
+ ( AlignDefault, ColWidth 0.16666666666666666 )
+ ,
+ ( AlignDefault, ColWidth 0.18055555555555555 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "r1"
+ , Space
+ , Str "bis"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Multiple"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "cell"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2638888888888889 )
+ ,
+ ( AlignDefault, ColWidth 0.16666666666666666 )
+ ,
+ ( AlignDefault, ColWidth 0.18055555555555555 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Header 1
+ ( "col-1", [], [] )
+ [ Str "col", Space, Str "1" ]
+ , Plain
+ [ Str "col", Space, Str "1" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Header 1
+ ( "col-2", [], [] )
+ [ Str "col", Space, Str "2" ]
+ , Plain
+ [ Str "col", Space, Str "2" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Header 1
+ ( "col-3", [], [] )
+ [ Str "col", Space, Str "3" ]
+ , Plain
+ [ Str "col", Space, Str "3" ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para
+ [ Str "r1", Space, Str "a" ]
+ , Para
+ [ Str "r1", Space, Str "bis" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ BulletList
+ [
+ [ Plain [ Str "b" ] ]
+ ,
+ [ Plain [ Str "b", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "b", Space, Str "2" ] ]
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "c"
+ , SoftBreak
+ , Str "c"
+ , Space
+ , Str "2"
+ , SoftBreak
+ , Str "c"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Empty", Space, Str "cells" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 5.555555555555555 e- 2 )
+ ,
+ ( AlignDefault, ColWidth 5.555555555555555 e- 2 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 2
+ ( "entities-in-links-and-titles", [], [] )
+ [ Str "Entities"
+ , Space
+ , Str "in"
+ , Space
+ , Str "links"
+ , Space
+ , Str "and"
+ , Space
+ , Str "titles"
+ ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "link" ] ( "/\252rl", "\246\246!" ) ]
+ , Para
+ [ Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://g\246\246gle.com" ]
+ ( "http://g\246\246gle.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [ "email" ], [] )
+ [ Str "me@ex\228mple.com" ]
+ ( "mailto:me@ex\228mple.com", "" )
+ ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "foobar" ] ( "/\252rl", "\246\246!" ) ]
+ , Header 2
+ ( "parentheses-in-urls", [], [] )
+ [ Str "Parentheses", Space, Str "in", Space, Str "URLs" ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "link" ] ( "/hi(there)", "" ) ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "link" ] ( "/hithere)", "" ) ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "linky" ]
+ ( "hi_(there_(nested))", "" )
+ ]
+ , Header 2
+ ( "backslashes-in-link-references", [], [] )
+ [ Str "Backslashes"
+ , Space
+ , Str "in"
+ , Space
+ , Str "link"
+ , Space
+ , Str "references"
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "*", RawInline ( Format "tex" ) "\\a" ]
+ ( "b", "" )
+ ]
+ , Header 2
+ ( "reference-link-fallbacks", [], [] )
+ [ Str "Reference", Space, Str "link", Space, Str "fallbacks" ]
+ , Para
+ [ Str "["
+ , Emph
+ [ Str "not", Space, Str "a", Space, Str "link" ]
+ , Str "]"
+ , Space
+ , Str "["
+ , Emph
+ [ Str "nope" ]
+ , Str "]\8230"
+ ]
+ , Header 2
+ ( "reference-link-followed-by-a-citation", [], [] )
+ [ Str "Reference"
+ , Space
+ , Str "link"
+ , Space
+ , Str "followed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "a"
+ , Space
+ , Str "citation"
+ ]
+ , Para
+ [ Str "MapReduce"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paradigm"
+ , Space
+ , Str "popularized"
+ , Space
+ , Str "by"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "Google" ]
+ ( "http://google.com", "" )
+ , Space
+ , Cite
+ [ Citation
+ { citationId = "mapreduce"
+ , citationPrefix = []
+ , citationSuffix = []
+ , citationMode = NormalCitation
+ , citationNoteNum = 2
+ , citationHash = 0
+ }
+ ]
+ [ Str "[@mapreduce]" ]
+ , Space
+ , Str "as"
+ , Space
+ , Str "its"
+ , SoftBreak
+ , Str "most"
+ , Space
+ , Str "vocal"
+ , Space
+ , Str "proponent."
+ ]
+ , Header 2
+ ( "empty-reference-links", [], [] )
+ [ Str "Empty", Space, Str "reference", Space, Str "links" ]
+ , Para
+ [ Str "bar" ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "foo2" ] ( "", "" ) ]
+ , Header 2
+ ( "wrapping-shouldnt-introduce-new-list-items", [], [] )
+ [ Str "Wrapping"
+ , Space
+ , Str "shouldn\8217t"
+ , Space
+ , Str "introduce"
+ , Space
+ , Str "new"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "blah"
+ , Space
+ , Str "2015."
+ ]
+ ]
+ ]
+ , Header 2
+ ( "bracketed-spans", [], [] )
+ [ Str "Bracketed", Space, Str "spans" ]
+ , Para
+ [ Span
+ ( "id", [ "class" ], [ ( "key", "val" ) ] )
+ [ Emph
+ [ Str "foo" ]
+ , Space
+ , Str "bar"
+ , Space
+ , Str "baz"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link" ]
+ ( "url", "" )
+ ]
+ ]
+ ]
diff --git a/test/mediawiki-reader.native b/test/mediawiki-reader.native
index d7ac63215..0a1e1c29d 100644
--- a/test/mediawiki-reader.native
+++ b/test/mediawiki-reader.native
@@ -1,418 +1,1444 @@
-Pandoc (Meta {unMeta = fromList []})
-[Header 1 ("header",[],[]) [Str "header"]
-,Header 2 ("header_level_two",[],[]) [Str "header",Space,Str "level",Space,Str "two"]
-,Header 3 ("header_level_3",[],[]) [Str "header",Space,Str "level",Space,Str "3"]
-,Header 4 ("header_level_four",[],[]) [Str "header",Space,Emph [Str "level"],Space,Str "four"]
-,Header 5 ("header_level_5",[],[]) [Str "header",Space,Str "level",Space,Str "5"]
-,Header 6 ("header_level_6",[],[]) [Str "header",Space,Str "level",Space,Str "6"]
-,Para [Str "=======",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "========"]
-,Para [Code ("",[],[]) "==\160not\160a\160header\160=="]
-,Header 2 ("emph_and_strong",[],[]) [Str "emph",Space,Str "and",Space,Str "strong"]
-,Para [Emph [Str "emph"],Space,Strong [Str "strong"]]
-,Para [Strong [Emph [Str "strong",Space,Str "and",Space,Str "emph"]]]
-,Para [Strong [Emph [Str "emph",Space,Str "inside"],Space,Str "strong"]]
-,Para [Strong [Str "strong",Space,Str "with",Space,Emph [Str "emph"]]]
-,Para [Emph [Strong [Str "strong",Space,Str "inside"],Space,Str "emph"]]
-,Header 2 ("horizontal_rule",[],[]) [Str "horizontal",Space,Str "rule"]
-,Para [Str "top"]
-,HorizontalRule
-,Para [Str "bottom"]
-,HorizontalRule
-,Header 2 ("nowiki",[],[]) [Str "nowiki"]
-,Para [Str "''not",Space,Str "emph''"]
-,Header 2 ("strikeout",[],[]) [Str "strikeout"]
-,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "struck",Space,Str "out"]]]
-,Header 2 ("entities",[],[]) [Str "entities"]
-,Para [Str "hi",Space,Str "&",Space,Str "low"]
-,Para [Str "hi",Space,Str "&",Space,Str "low"]
-,Para [Str "G\246del"]
-,Para [Str "\777\2730"]
-,Header 2 ("comments",[],[]) [Str "comments"]
-,Para [Str "inline",Space,Str "comment"]
-,Para [Str "between",Space,Str "blocks"]
-,Header 2 ("linebreaks",[],[]) [Str "linebreaks"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Header 2 ("indents",[],[]) [Str ":",Space,Str "indents"]
-,Para [Str "hi"]
-,DefinitionList
- [([],
- [[Plain [Str "there"]]])]
-,Para [Str "bud"]
-,Para [Str "hi"]
-,DefinitionList
- [([],
- [[DefinitionList
- [([],
- [[Plain [Str "there"]]])]]])]
-,Para [Str "bud"]
-,Header 2 ("p_tags",[],[]) [Str "p",Space,Str "tags"]
-,Para [Str "hi",Space,Str "there"]
-,Para [Str "bud"]
-,Para [Str "another"]
-,Header 2 ("raw_html",[],[]) [Str "raw",Space,Str "html"]
-,Para [Str "hi",Space,RawInline (Format "html") "",Emph [Str "there"],RawInline (Format "html") " ",Str "."]
-,Para [RawInline (Format "html") "",Str "inserted",RawInline (Format "html") " "]
-,RawBlock (Format "html") ""
-,Para [Str "hi",Space,Emph [Str "there"]]
-,RawBlock (Format "html") "
"
-,Header 2 ("sup_sub_del",[],[]) [Str "sup,",Space,Str "sub,",Space,Str "del"]
-,Para [Str "H",Subscript [Str "2"],Str "O",Space,Str "base",Superscript [Emph [Str "exponent"]],SoftBreak,Strikeout [Str "hello"]]
-,Header 2 ("inline_code",[],[]) [Str "inline",Space,Str "code"]
-,Para [Code ("",[],[]) "*\8594*",Space,Code ("",[],[]) "typed",Space,Code ("",["haskell"],[]) ">>="]
-,Header 2 ("code_blocks",[],[]) [Str "code",Space,Str "blocks"]
-,CodeBlock ("",[],[]) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
-,CodeBlock ("",["haskell"],[]) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
-,CodeBlock ("",["ruby","numberLines"],[("startFrom","100")]) "widgets.each do |w|\n print w.price\nend"
-,Header 2 ("block_quotes",[],[]) [Str "block",Space,Str "quotes"]
-,Para [Str "Regular",Space,Str "paragraph"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote."]
- ,Para [Str "With",Space,Str "two",Space,Str "paragraphs."]]
-,Para [Str "Nother",Space,Str "paragraph."]
-,Header 2 ("external_links",[],[]) [Str "external",Space,Str "links"]
-,Para [Link ("",[],[]) [Emph [Str "Google"],Space,Str "search",Space,Str "engine"] ("http://google.com","")]
-,Para [Link ("",[],[]) [Str "http://pandoc.org"] ("http://pandoc.org","")]
-,Para [Link ("",[],[]) [Str "1"] ("http://google.com",""),Space,Link ("",[],[]) [Str "2"] ("http://yahoo.com","")]
-,Para [Link ("",[],[]) [Str "email",Space,Str "me"] ("mailto:info@example.org","")]
-,Header 2 ("internal_links",[],[]) [Str "internal",Space,Str "links"]
-,Para [Link ("",[],[]) [Str "Help"] ("Help","wikilink")]
-,Para [Link ("",[],[]) [Str "the",Space,Str "help",Space,Str "page"] ("Help","wikilink")]
-,Para [Link ("",[],[]) [Str "Helpers"] ("Help","wikilink")]
-,Para [Link ("",[],[]) [Str "Help"] ("Help","wikilink"),Str "ers"]
-,Para [Link ("",[],[]) [Str "Contents"] ("Help:Contents","wikilink")]
-,Para [Link ("",[],[]) [Str "#My",Space,Str "anchor"] ("#My_anchor","wikilink")]
-,Para [Link ("",[],[]) [Str "and",Space,Str "text"] ("Page#with_anchor","wikilink")]
-,Header 2 ("images",[],[]) [Str "images"]
-,Para [Image ("",[],[]) [Str "caption"] ("example.jpg","fig:caption")]
-,Para [Image ("",[],[]) [Str "the",Space,Emph [Str "caption"],Space,Str "with",Space,Link ("",[],[]) [Str "external",Space,Str "link"] ("http://google.com","")] ("example.jpg","fig:the caption with external link")]
-,Para [Image ("",[],[("width","30"),("height","40")]) [Str "caption"] ("example.jpg","fig:caption")]
-,Para [Image ("",[],[("width","30")]) [Str "caption"] ("example.jpg","fig:caption")]
-,Para [Image ("",[],[("width","30")]) [Str "caption"] ("example.jpg","fig:caption")]
-,Para [Image ("",[],[]) [Str "example.jpg"] ("example.jpg","fig:example.jpg")]
-,Para [Image ("",[],[]) [Str "example_es.jpg"] ("example_es.jpg","fig:example_es.jpg")]
-,Header 2 ("lists",[],[]) [Str "lists"]
-,BulletList
- [[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
- ,[Plain [Str "with",Space,Str "an",Space,Str "asterisk",Space,Str "(*)."]
- ,BulletList
- [[Plain [Str "More",Space,Str "asterisks",Space,Str "gives",Space,Str "deeper"]
- ,BulletList
- [[Plain [Str "and",Space,Str "deeper",Space,Str "levels."]]]]]]
- ,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]
- ,BulletList
- [[BulletList
- [[Plain [Str "But",Space,Str "jumping",Space,Str "levels",Space,Str "creates",Space,Str "empty",Space,Str "space."]]]]]]]
-,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "ends",Space,Str "the",Space,Str "list."]
-,BulletList
- [[BulletList
- [[Plain [Str "two"]]]]
- ,[Plain [Str "one"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
- ,[Plain [Str "with",Space,Str "a",Space,Str "number",Space,Str "sign",Space,Str "(#)."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "More",Space,Str "number",Space,Str "signs",Space,Str "gives",Space,Str "deeper"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "and",Space,Str "deeper"]]
- ,[Plain [Str "levels."]]]]]]
- ,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "But",Space,Str "jumping",Space,Str "levels",Space,Str "creates",Space,Str "empty",Space,Str "space."]]]]]]
- ,[Plain [Str "Blank",Space,Str "lines"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "end",Space,Str "the",Space,Str "list",Space,Str "and",Space,Str "start",Space,Str "another."]]]
-,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "also",SoftBreak,Str "ends",Space,Str "the",Space,Str "list."]
-,DefinitionList
- [([Str "item",Space,Str "1"],
- [[Plain [Str "definition",Space,Str "1"]]])
- ,([Str "item",Space,Str "2"],
- [[Plain [Str "definition",Space,Str "2-1"]]
- ,[Plain [Str "definition",Space,Str "2-2"]]])]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]
- ,BulletList
- [[Plain [Str "two",Space,Str "point",Space,Str "one"]]
- ,[Plain [Str "two",Space,Str "point",Space,Str "two"]]]]
- ,[Plain [Str "three"]
- ,DefinitionList
- [([Str "three",Space,Str "item",Space,Str "one"],
- [[Plain [Str "three",Space,Str "def",Space,Str "one"]]])]]
- ,[Plain [Str "four"]
- ,DefinitionList
- [([],
- [[Plain [Str "four",Space,Str "def",Space,Str "one"]]
- ,[Plain [Str "this",Space,Str "looks",Space,Str "like",Space,Str "a",Space,Str "continuation"]]
- ,[Plain [Str "and",Space,Str "is",Space,Str "often",Space,Str "used"]]
- ,[Plain [Str "instead",LineBreak,Str "of",Space,Str " "]]])]]
- ,[Plain [RawInline (Format "mediawiki") "{{{template\n|author=John\n|title=My Book\n}}}"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "five",Space,Str "sub",Space,Str "1"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "five",Space,Str "sub",Space,Str "1",Space,Str "sub",Space,Str "1"]]]]
- ,[Plain [Str "five",Space,Str "sub",Space,Str "2"]]]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "list",Space,Str "item",Space,Emph [Str "emph"]]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "list",Space,Str "item",Space,Str "B1"]]
- ,[Plain [Str "list",Space,Str "item",Space,Str "B2"]]]
- ,Para [Str "continuing",Space,Str "list",Space,Str "item",Space,Str "A1"]]
- ,[Plain [Str "list",Space,Str "item",Space,Str "A2"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "abc"]]
- ,[Plain [Str "def"]]
- ,[Plain [Str "ghi"]]]
-,OrderedList (9,DefaultStyle,DefaultDelim)
- [[Plain [Str "Amsterdam"]]
- ,[Plain [Str "Rotterdam"]]
- ,[Plain [Str "The",Space,Str "Hague"]]]
-,Header 2 ("math",[],[]) [Str "math"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Math InlineMath "x=\\frac{y^\\pi}{z}",Str "."]
-,Para [Str "With",Space,Str "spaces:",Space,Math InlineMath "x=\\frac{y^\\pi}{z}",Str "."]
-,Header 2 ("preformatted_blocks",[],[]) [Str "preformatted",Space,Str "blocks"]
-,Para [Code ("",[],[]) "Start\160each\160line\160with\160a\160space.",LineBreak,Code ("",[],[]) "Text\160is\160",Strong [Code ("",[],[]) "preformatted"],Code ("",[],[]) "\160and",LineBreak,Emph [Code ("",[],[]) "markups"],Code ("",[],[]) "\160",Strong [Emph [Code ("",[],[]) "can"]],Code ("",[],[]) "\160be\160done."]
-,Para [Code ("",[],[]) "\160hell\160\160\160\160\160\160yeah"]
-,Para [Code ("",[],[]) "Start\160with\160a\160space\160in\160the\160first\160column,",LineBreak,Code ("",[],[]) "(before\160the\160).",LineBreak,Code ("",[],[]) "",LineBreak,Code ("",[],[]) "Then\160your\160block\160format\160will\160be",LineBreak,Code ("",[],[]) "\160\160\160\160maintained.",LineBreak,Code ("",[],[]) "",LineBreak,Code ("",[],[]) "This\160is\160good\160for\160copying\160in\160code\160blocks:",LineBreak,Code ("",[],[]) "",LineBreak,Code ("",[],[]) "def\160function():",LineBreak,Code ("",[],[]) "\160\160\160\160\"\"\"documentation\160string\"\"\"",LineBreak,Code ("",[],[]) "",LineBreak,Code ("",[],[]) "\160\160\160\160if\160True:",LineBreak,Code ("",[],[]) "\160\160\160\160\160\160\160\160print\160True",LineBreak,Code ("",[],[]) "\160\160\160\160else:",LineBreak,Code ("",[],[]) "\160\160\160\160\160\160\160\160print\160False"]
-,Para [Str "Not"]
-,RawBlock (Format "html") " "
-,Para [Str "preformatted"]
-,Para [Str "Don't",Space,Str "need"]
-,Para [Code ("",[],[]) "a\160blank\160line"]
-,Para [Str "around",Space,Str "a",Space,Str "preformatted",Space,Str "block."]
-,Header 2 ("templates",[],[]) [Str "templates"]
-,RawBlock (Format "mediawiki") "{{Welcome}}"
-,RawBlock (Format "mediawiki") "{{Foo:Bar}}"
-,RawBlock (Format "mediawiki") "{{Thankyou|all your effort|Me}}"
-,Para [Str "Written",Space,RawInline (Format "mediawiki") "{{{date}}}",Space,Str "by",Space,RawInline (Format "mediawiki") "{{{name}}}",Str "."]
-,Header 2 ("tables",[],[]) [Str "tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Apple"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Pie"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Food",Space,Str "complements"]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Apple"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Pie"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Food",Space,Str "complements"]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Apple"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Bread"]
- ,Para [Str "and",Space,Str "cheese"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Pie"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "apple"]]
- ,[Plain [Str "carrot"]]]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "more"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Pie"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "more"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Ice",Space,Str "cream"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "and",Space,Str "more"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidth 0.25)
- ,(AlignRight,ColWidth 0.125)
- ,(AlignCenter,ColWidth 0.125)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Center"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "15.00"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "centered"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "more"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "2.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "more"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Apple"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "fruit"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "topping"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Orange"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Paragraph",Space,Str "after",Space,Str "the",Space,Str "table."]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "fruit"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "topping"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 2 ("notes",[],[]) [Str "notes"]
-,Para [Str "My",Space,Str "note!",Note [Plain [Str "This."]]]
-,Para [Str "URL",Space,Str "note.",Note [Plain [Link ("",[],[]) [Str "http://docs.python.org/library/functions.html#range"] ("http://docs.python.org/library/functions.html#range","")]]]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Header 1
+ ( "header", [], [] )
+ [ Str "header" ]
+ , Header 2
+ ( "header_level_two", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "two" ]
+ , Header 3
+ ( "header_level_3", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "3" ]
+ , Header 4
+ ( "header_level_four", [], [] )
+ [ Str "header", Space, Emph [ Str "level" ], Space, Str "four" ]
+ , Header 5
+ ( "header_level_5", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "5" ]
+ , Header 6
+ ( "header_level_6", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "6" ]
+ , Para
+ [ Str "======="
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ , Space
+ , Str "========"
+ ]
+ , Para
+ [ Code ( "", [], [] ) "==\160not\160a\160header\160==" ]
+ , Header 2
+ ( "emph_and_strong", [], [] )
+ [ Str "emph", Space, Str "and", Space, Str "strong" ]
+ , Para
+ [ Emph [ Str "emph" ], Space, Strong [ Str "strong" ] ]
+ , Para
+ [ Strong
+ [ Emph [ Str "strong", Space, Str "and", Space, Str "emph" ] ]
+ ]
+ , Para
+ [ Strong
+ [ Emph [ Str "emph", Space, Str "inside" ], Space, Str "strong" ]
+ ]
+ , Para
+ [ Strong
+ [ Str "strong", Space, Str "with", Space, Emph [ Str "emph" ] ]
+ ]
+ , Para
+ [ Emph
+ [ Strong
+ [ Str "strong", Space, Str "inside" ]
+ , Space
+ , Str "emph"
+ ]
+ ]
+ , Header 2
+ ( "horizontal_rule", [], [] )
+ [ Str "horizontal", Space, Str "rule" ]
+ , Para
+ [ Str "top" ]
+ , HorizontalRule
+ , Para
+ [ Str "bottom" ]
+ , HorizontalRule
+ , Header 2
+ ( "nowiki", [], [] )
+ [ Str "nowiki" ]
+ , Para
+ [ Str "''not", Space, Str "emph''" ]
+ , Header 2
+ ( "strikeout", [], [] )
+ [ Str "strikeout" ]
+ , Para
+ [ Strikeout
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "struck", Space, Str "out" ]
+ ]
+ ]
+ , Header 2
+ ( "entities", [], [] )
+ [ Str "entities" ]
+ , Para
+ [ Str "hi", Space, Str "&", Space, Str "low" ]
+ , Para
+ [ Str "hi", Space, Str "&", Space, Str "low" ]
+ , Para
+ [ Str "G\246del" ]
+ , Para
+ [ Str "\777\2730" ]
+ , Header 2
+ ( "comments", [], [] )
+ [ Str "comments" ]
+ , Para
+ [ Str "inline", Space, Str "comment" ]
+ , Para
+ [ Str "between", Space, Str "blocks" ]
+ , Header 2
+ ( "linebreaks", [], [] )
+ [ Str "linebreaks" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Header 2
+ ( "indents", [], [] )
+ [ Str ":", Space, Str "indents" ]
+ , Para
+ [ Str "hi" ]
+ , DefinitionList
+ [ ( [], [ [ Plain [ Str "there" ] ] ] ) ]
+ , Para
+ [ Str "bud" ]
+ , Para
+ [ Str "hi" ]
+ , DefinitionList
+ [
+ ( []
+ ,
+ [ [ DefinitionList [ ( [], [ [ Plain [ Str "there" ] ] ] ) ] ] ]
+ )
+ ]
+ , Para
+ [ Str "bud" ]
+ , Header 2
+ ( "p_tags", [], [] )
+ [ Str "p", Space, Str "tags" ]
+ , Para
+ [ Str "hi", Space, Str "there" ]
+ , Para
+ [ Str "bud" ]
+ , Para
+ [ Str "another" ]
+ , Header 2
+ ( "raw_html", [], [] )
+ [ Str "raw", Space, Str "html" ]
+ , Para
+ [ Str "hi"
+ , Space
+ , RawInline
+ ( Format "html" ) ""
+ , Emph
+ [ Str "there" ]
+ , RawInline
+ ( Format "html" ) " "
+ , Str "."
+ ]
+ , Para
+ [ RawInline
+ ( Format "html" ) ""
+ , Str "inserted"
+ , RawInline
+ ( Format "html" ) " "
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "hi", Space, Emph [ Str "there" ] ]
+ , RawBlock
+ ( Format "html" ) "
"
+ , Header 2
+ ( "sup_sub_del", [], [] )
+ [ Str "sup,", Space, Str "sub,", Space, Str "del" ]
+ , Para
+ [ Str "H"
+ , Subscript
+ [ Str "2" ]
+ , Str "O"
+ , Space
+ , Str "base"
+ , Superscript
+ [ Emph [ Str "exponent" ] ]
+ , SoftBreak
+ , Strikeout
+ [ Str "hello" ]
+ ]
+ , Header 2
+ ( "inline_code", [], [] )
+ [ Str "inline", Space, Str "code" ]
+ , Para
+ [ Code
+ ( "", [], [] ) "*\8594*"
+ , Space
+ , Code
+ ( "", [], [] ) "typed"
+ , Space
+ , Code
+ ( "", [ "haskell" ], [] ) ">>="
+ ]
+ , Header 2
+ ( "code_blocks", [], [] )
+ [ Str "code", Space, Str "blocks" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
+ , CodeBlock
+ ( ""
+ , [ "haskell" ]
+ , []
+ ) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
+ , CodeBlock
+ ( ""
+ ,
+ [ "ruby", "numberLines" ]
+ ,
+ [ ( "startFrom", "100" ) ]
+ ) "widgets.each do |w|\n print w.price\nend"
+ , Header 2
+ ( "block_quotes", [], [] )
+ [ Str "block", Space, Str "quotes" ]
+ , Para
+ [ Str "Regular", Space, Str "paragraph" ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ ]
+ , Para
+ [ Str "With", Space, Str "two", Space, Str "paragraphs." ]
+ ]
+ , Para
+ [ Str "Nother", Space, Str "paragraph." ]
+ , Header 2
+ ( "external_links", [], [] )
+ [ Str "external", Space, Str "links" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Emph
+ [ Str "Google" ]
+ , Space
+ , Str "search"
+ , Space
+ , Str "engine"
+ ]
+ ( "http://google.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://pandoc.org" ]
+ ( "http://pandoc.org", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "1" ]
+ ( "http://google.com", "" )
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "2" ]
+ ( "http://yahoo.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "email", Space, Str "me" ]
+ ( "mailto:info@example.org", "" )
+ ]
+ , Header 2
+ ( "internal_links", [], [] )
+ [ Str "internal", Space, Str "links" ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "Help" ] ( "Help", "wikilink" ) ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "the", Space, Str "help", Space, Str "page" ]
+ ( "Help", "wikilink" )
+ ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "Helpers" ] ( "Help", "wikilink" ) ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Help" ]
+ ( "Help", "wikilink" )
+ , Str "ers"
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Contents" ]
+ ( "Help:Contents", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "#My", Space, Str "anchor" ]
+ ( "#My_anchor", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "and", Space, Str "text" ]
+ ( "Page#with_anchor", "wikilink" )
+ ]
+ , Header 2
+ ( "images", [], [] )
+ [ Str "images" ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "caption" ]
+ ( "example.jpg", "fig:caption" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "the"
+ , Space
+ , Emph
+ [ Str "caption" ]
+ , Space
+ , Str "with"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "external", Space, Str "link" ]
+ ( "http://google.com", "" )
+ ]
+ ( "example.jpg", "fig:the caption with external link" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [ ( "width", "30" ), ( "height", "40" ) ] )
+ [ Str "caption" ]
+ ( "example.jpg", "fig:caption" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [ ( "width", "30" ) ] )
+ [ Str "caption" ]
+ ( "example.jpg", "fig:caption" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [ ( "width", "30" ) ] )
+ [ Str "caption" ]
+ ( "example.jpg", "fig:caption" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "example.jpg" ]
+ ( "example.jpg", "fig:example.jpg" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "example_es.jpg" ]
+ ( "example_es.jpg", "fig:example_es.jpg" )
+ ]
+ , Header 2
+ ( "lists", [], [] )
+ [ Str "lists" ]
+ , BulletList
+ [
+ [ Plain [ Str "Start", Space, Str "each", Space, Str "line" ] ]
+ ,
+ [ Plain
+ [ Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "asterisk"
+ , Space
+ , Str "(*)."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "More"
+ , Space
+ , Str "asterisks"
+ , Space
+ , Str "gives"
+ , Space
+ , Str "deeper"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "and", Space, Str "deeper", Space, Str "levels." ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , LineBreak
+ , Str "don't"
+ , Space
+ , Str "break"
+ , Space
+ , Str "levels."
+ ]
+ , BulletList
+ [
+ [ BulletList
+ [
+ [ Plain
+ [ Str "But"
+ , Space
+ , Str "jumping"
+ , Space
+ , Str "levels"
+ , Space
+ , Str "creates"
+ , Space
+ , Str "empty"
+ , Space
+ , Str "space."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "other"
+ , Space
+ , Str "start"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list."
+ ]
+ , BulletList
+ [
+ [ BulletList [ [ Plain [ Str "two" ] ] ] ]
+ ,
+ [ Plain [ Str "one" ] ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Start", Space, Str "each", Space, Str "line" ] ]
+ ,
+ [ Plain
+ [ Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "number"
+ , Space
+ , Str "sign"
+ , Space
+ , Str "(#)."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "More"
+ , Space
+ , Str "number"
+ , Space
+ , Str "signs"
+ , Space
+ , Str "gives"
+ , Space
+ , Str "deeper"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "and", Space, Str "deeper" ] ]
+ ,
+ [ Plain [ Str "levels." ] ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , LineBreak
+ , Str "don't"
+ , Space
+ , Str "break"
+ , Space
+ , Str "levels."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "But"
+ , Space
+ , Str "jumping"
+ , Space
+ , Str "levels"
+ , Space
+ , Str "creates"
+ , Space
+ , Str "empty"
+ , Space
+ , Str "space."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Blank", Space, Str "lines" ] ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "end"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "and"
+ , Space
+ , Str "start"
+ , Space
+ , Str "another."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "other"
+ , Space
+ , Str "start"
+ , Space
+ , Str "also"
+ , SoftBreak
+ , Str "ends"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list."
+ ]
+ , DefinitionList
+ [
+ (
+ [ Str "item", Space, Str "1" ]
+ ,
+ [ [ Plain [ Str "definition", Space, Str "1" ] ] ]
+ )
+ ,
+ (
+ [ Str "item", Space, Str "2" ]
+ ,
+ [
+ [ Plain [ Str "definition", Space, Str "2-1" ] ]
+ ,
+ [ Plain [ Str "definition", Space, Str "2-2" ] ]
+ ]
+ )
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "one" ] ]
+ ,
+ [ Plain
+ [ Str "two" ]
+ , BulletList
+ [
+ [ Plain [ Str "two", Space, Str "point", Space, Str "one" ] ]
+ ,
+ [ Plain [ Str "two", Space, Str "point", Space, Str "two" ] ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "three" ]
+ , DefinitionList
+ [
+ (
+ [ Str "three", Space, Str "item", Space, Str "one" ]
+ ,
+ [
+ [ Plain
+ [ Str "three", Space, Str "def", Space, Str "one" ]
+ ]
+ ]
+ )
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "four" ]
+ , DefinitionList
+ [
+ ( []
+ ,
+ [
+ [ Plain
+ [ Str "four", Space, Str "def", Space, Str "one" ]
+ ]
+ ,
+ [ Plain
+ [ Str "this"
+ , Space
+ , Str "looks"
+ , Space
+ , Str "like"
+ , Space
+ , Str "a"
+ , Space
+ , Str "continuation"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "and"
+ , Space
+ , Str "is"
+ , Space
+ , Str "often"
+ , Space
+ , Str "used"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "instead"
+ , LineBreak
+ , Str "of"
+ , Space
+ , Str " "
+ ]
+ ]
+ ]
+ )
+ ]
+ ]
+ ,
+ [ Plain
+ [ RawInline
+ ( Format "mediawiki" ) "{{{template\n|author=John\n|title=My Book\n}}}"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "five", Space, Str "sub", Space, Str "1" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "five"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "1"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "five", Space, Str "sub", Space, Str "2" ] ]
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "list", Space, Str "item", Space, Emph [ Str "emph" ] ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "list", Space, Str "item", Space, Str "B1" ] ]
+ ,
+ [ Plain [ Str "list", Space, Str "item", Space, Str "B2" ] ]
+ ]
+ , Para
+ [ Str "continuing"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "A1"
+ ]
+ ]
+ ,
+ [ Plain [ Str "list", Space, Str "item", Space, Str "A2" ] ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "abc" ] ]
+ ,
+ [ Plain [ Str "def" ] ]
+ ,
+ [ Plain [ Str "ghi" ] ]
+ ]
+ , OrderedList
+ ( 9, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Amsterdam" ] ]
+ ,
+ [ Plain [ Str "Rotterdam" ] ]
+ ,
+ [ Plain [ Str "The", Space, Str "Hague" ] ]
+ ]
+ , Header 2
+ ( "math", [], [] )
+ [ Str "math" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Math InlineMath "x=\\frac{y^\\pi}{z}"
+ , Str "."
+ ]
+ , Para
+ [ Str "With"
+ , Space
+ , Str "spaces:"
+ , Space
+ , Math InlineMath "x=\\frac{y^\\pi}{z}"
+ , Str "."
+ ]
+ , Header 2
+ ( "preformatted_blocks", [], [] )
+ [ Str "preformatted", Space, Str "blocks" ]
+ , Para
+ [ Code
+ ( "", [], [] ) "Start\160each\160line\160with\160a\160space."
+ , LineBreak
+ , Code
+ ( "", [], [] ) "Text\160is\160"
+ , Strong
+ [ Code ( "", [], [] ) "preformatted" ]
+ , Code
+ ( "", [], [] ) "\160and"
+ , LineBreak
+ , Emph
+ [ Code ( "", [], [] ) "markups" ]
+ , Code
+ ( "", [], [] ) "\160"
+ , Strong
+ [ Emph [ Code ( "", [], [] ) "can" ] ]
+ , Code
+ ( "", [], [] ) "\160be\160done."
+ ]
+ , Para
+ [ Code ( "", [], [] ) "\160hell\160\160\160\160\160\160yeah" ]
+ , Para
+ [ Code
+ ( ""
+ , []
+ , []
+ ) "Start\160with\160a\160space\160in\160the\160first\160column,"
+ , LineBreak
+ , Code
+ ( "", [], [] ) "(before\160the\160)."
+ , LineBreak
+ , Code
+ ( "", [], [] ) ""
+ , LineBreak
+ , Code
+ ( "", [], [] ) "Then\160your\160block\160format\160will\160be"
+ , LineBreak
+ , Code
+ ( "", [], [] ) "\160\160\160\160maintained."
+ , LineBreak
+ , Code
+ ( "", [], [] ) ""
+ , LineBreak
+ , Code
+ ( ""
+ , []
+ , []
+ ) "This\160is\160good\160for\160copying\160in\160code\160blocks:"
+ , LineBreak
+ , Code
+ ( "", [], [] ) ""
+ , LineBreak
+ , Code
+ ( "", [], [] ) "def\160function():"
+ , LineBreak
+ , Code
+ ( ""
+ , []
+ , []
+ ) "\160\160\160\160\"\"\"documentation\160string\"\"\""
+ , LineBreak
+ , Code
+ ( "", [], [] ) ""
+ , LineBreak
+ , Code
+ ( "", [], [] ) "\160\160\160\160if\160True:"
+ , LineBreak
+ , Code
+ ( "", [], [] ) "\160\160\160\160\160\160\160\160print\160True"
+ , LineBreak
+ , Code
+ ( "", [], [] ) "\160\160\160\160else:"
+ , LineBreak
+ , Code
+ ( "", [], [] ) "\160\160\160\160\160\160\160\160print\160False"
+ ]
+ , Para
+ [ Str "Not" ]
+ , RawBlock
+ ( Format "html" ) " "
+ , Para
+ [ Str "preformatted" ]
+ , Para
+ [ Str "Don't", Space, Str "need" ]
+ , Para
+ [ Code ( "", [], [] ) "a\160blank\160line" ]
+ , Para
+ [ Str "around"
+ , Space
+ , Str "a"
+ , Space
+ , Str "preformatted"
+ , Space
+ , Str "block."
+ ]
+ , Header 2
+ ( "templates", [], [] )
+ [ Str "templates" ]
+ , RawBlock
+ ( Format "mediawiki" ) "{{Welcome}}"
+ , RawBlock
+ ( Format "mediawiki" ) "{{Foo:Bar}}"
+ , RawBlock
+ ( Format "mediawiki" ) "{{Thankyou|all your effort|Me}}"
+ , Para
+ [ Str "Written"
+ , Space
+ , RawInline
+ ( Format "mediawiki" ) "{{{date}}}"
+ , Space
+ , Str "by"
+ , Space
+ , RawInline
+ ( Format "mediawiki" ) "{{{name}}}"
+ , Str "."
+ ]
+ , Header 2
+ ( "tables", [], [] )
+ [ Str "tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Apple" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Pie" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain [ Str "Food", Space, Str "complements" ] ]
+ )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Apple" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Pie" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain [ Str "Food", Space, Str "complements" ] ]
+ )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Apple" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para
+ [ Str "Bread" ]
+ , Para
+ [ Str "and", Space, Str "cheese" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para
+ [ Str "Pie" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Plain [ Str "apple" ] ], [ Plain [ Str "carrot" ] ] ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Apple" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "more" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Pie" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "more" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Ice", Space, Str "cream" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "and", Space, Str "more" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignLeft, ColWidth 0.25 )
+ ,
+ ( AlignRight, ColWidth 0.125 )
+ ,
+ ( AlignCenter, ColWidth 0.125 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Center" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "15.00" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "centered" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "more" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "2.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "more" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Apple" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "fruit" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "topping" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "apple" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignDefault, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Orange" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Paragraph"
+ , Space
+ , Str "after"
+ , Space
+ , Str "the"
+ , Space
+ , Str "table."
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "fruit" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "topping" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "apple" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 2
+ ( "notes", [], [] )
+ [ Str "notes" ]
+ , Para
+ [ Str "My", Space, Str "note!", Note [ Plain [ Str "This." ] ] ]
+ , Para
+ [ Str "URL"
+ , Space
+ , Str "note."
+ , Note
+ [ Plain
+ [ Link
+ ( "", [], [] )
+ [ Str "http://docs.python.org/library/functions.html#range" ]
+ ( "http://docs.python.org/library/functions.html#range", "" )
+ ]
+ ]
+ ]
+ ]
diff --git a/test/opml-reader.native b/test/opml-reader.native
index 0819116ab..bbb54e068 100644
--- a/test/opml-reader.native
+++ b/test/opml-reader.native
@@ -1,66 +1,232 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "Dave",Space,Str "Winer"]]),("date",MetaInlines [Str "Thu,",Space,Str "14",Space,Str "Jul",Space,Str "2005",Space,Str "23:41:05",Space,Str "GMT"]),("title",MetaInlines [Str "States"])]})
-[Header 1 ("",[],[]) [Str "United",Space,Str "States"]
-,Header 2 ("",[],[]) [Str "Far",Space,Str "West"]
-,Header 3 ("",[],[]) [Str "Alaska"]
-,Header 3 ("",[],[]) [Str "California"]
-,Header 3 ("",[],[]) [Str "Hawaii"]
-,Header 3 ("",[],[]) [Strong [Str "Nevada"]]
-,Para [Str "I",Space,Str "lived",Space,Str "here",Space,Emph [Str "once"],Str "."]
-,Para [Str "Loved",Space,Str "it."]
-,Header 4 ("",[],[]) [Link ("",[],[]) [Str "Reno"] ("http://www.reno.gov","")]
-,Header 4 ("",[],[]) [Str "Las",Space,Str "Vegas"]
-,Header 4 ("",[],[]) [Str "Ely"]
-,Header 4 ("",[],[]) [Str "Gerlach"]
-,Header 3 ("",[],[]) [Str "Oregon"]
-,Header 3 ("",[],[]) [Str "Washington"]
-,Header 2 ("",[],[]) [Str "Great",Space,Str "Plains"]
-,Header 3 ("",[],[]) [Str "Kansas"]
-,Header 3 ("",[],[]) [Str "Nebraska"]
-,Header 3 ("",[],[]) [Str "North",Space,Str "Dakota"]
-,Header 3 ("",[],[]) [Str "Oklahoma"]
-,Header 3 ("",[],[]) [Str "South",Space,Str "Dakota"]
-,Header 2 ("",[],[]) [Str "Mid-Atlantic"]
-,Header 3 ("",[],[]) [Str "Delaware"]
-,Header 3 ("",[],[]) [Str "Maryland"]
-,Header 3 ("",[],[]) [Str "New",Space,Str "Jersey"]
-,Header 3 ("",[],[]) [Str "New",Space,Str "York"]
-,Header 3 ("",[],[]) [Str "Pennsylvania"]
-,Header 2 ("",[],[]) [Str "Midwest"]
-,Header 3 ("",[],[]) [Str "Illinois"]
-,Header 3 ("",[],[]) [Str "Indiana"]
-,Header 3 ("",[],[]) [Str "Iowa"]
-,Header 3 ("",[],[]) [Str "Kentucky"]
-,Header 3 ("",[],[]) [Str "Michigan"]
-,Header 3 ("",[],[]) [Str "Minnesota"]
-,Header 3 ("",[],[]) [Str "Missouri"]
-,Header 3 ("",[],[]) [Str "Ohio"]
-,Header 3 ("",[],[]) [Str "West",Space,Str "Virginia"]
-,Header 3 ("",[],[]) [Str "Wisconsin"]
-,Header 2 ("",[],[]) [Str "Mountains"]
-,Header 3 ("",[],[]) [Str "Colorado"]
-,Header 3 ("",[],[]) [Str "Idaho"]
-,Header 3 ("",[],[]) [Str "Montana"]
-,Header 3 ("",[],[]) [Str "Utah"]
-,Header 3 ("",[],[]) [Str "Wyoming"]
-,Header 2 ("",[],[]) [Str "New",Space,Str "England"]
-,Header 3 ("",[],[]) [Str "Connecticut"]
-,Header 3 ("",[],[]) [Str "Maine"]
-,Header 3 ("",[],[]) [Str "Massachusetts"]
-,Header 3 ("",[],[]) [Str "New",Space,Str "Hampshire"]
-,Header 3 ("",[],[]) [Str "Rhode",Space,Str "Island"]
-,Header 3 ("",[],[]) [Str "Vermont"]
-,Header 2 ("",[],[]) [Str "South"]
-,Header 3 ("",[],[]) [Str "Alabama"]
-,Header 3 ("",[],[]) [Str "Arkansas"]
-,Header 3 ("",[],[]) [Str "Florida"]
-,Header 3 ("",[],[]) [Str "Georgia"]
-,Header 3 ("",[],[]) [Str "Louisiana"]
-,Header 3 ("",[],[]) [Str "Mississippi"]
-,Header 3 ("",[],[]) [Str "North",Space,Str "Carolina"]
-,Header 3 ("",[],[]) [Str "South",Space,Str "Carolina"]
-,Header 3 ("",[],[]) [Str "Tennessee"]
-,Header 3 ("",[],[]) [Str "Virginia"]
-,Header 2 ("",[],[]) [Str "Southwest"]
-,Header 3 ("",[],[]) [Str "Arizona"]
-,Header 3 ("",[],[]) [Str "New",Space,Str "Mexico"]
-,Header 3 ("",[],[]) [Str "Texas"]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaList
+ [ MetaInlines [ Str "Dave", Space, Str "Winer" ] ]
+ )
+ ,
+ ( "date"
+ , MetaInlines
+ [ Str "Thu,"
+ , Space
+ , Str "14"
+ , Space
+ , Str "Jul"
+ , Space
+ , Str "2005"
+ , Space
+ , Str "23:41:05"
+ , Space
+ , Str "GMT"
+ ]
+ )
+ ,
+ ( "title", MetaInlines [ Str "States" ] )
+ ]
+ }
+ )
+ [ Header 1
+ ( "", [], [] )
+ [ Str "United", Space, Str "States" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Far", Space, Str "West" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Alaska" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "California" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Hawaii" ]
+ , Header 3
+ ( "", [], [] )
+ [ Strong [ Str "Nevada" ] ]
+ , Para
+ [ Str "I"
+ , Space
+ , Str "lived"
+ , Space
+ , Str "here"
+ , Space
+ , Emph
+ [ Str "once" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Loved", Space, Str "it." ]
+ , Header 4
+ ( "", [], [] )
+ [ Link ( "", [], [] ) [ Str "Reno" ] ( "http://www.reno.gov", "" ) ]
+ , Header 4
+ ( "", [], [] )
+ [ Str "Las", Space, Str "Vegas" ]
+ , Header 4
+ ( "", [], [] )
+ [ Str "Ely" ]
+ , Header 4
+ ( "", [], [] )
+ [ Str "Gerlach" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Oregon" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Washington" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Great", Space, Str "Plains" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Kansas" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Nebraska" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "North", Space, Str "Dakota" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Oklahoma" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "South", Space, Str "Dakota" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Mid-Atlantic" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Delaware" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Maryland" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "New", Space, Str "Jersey" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "New", Space, Str "York" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Pennsylvania" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Midwest" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Illinois" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Indiana" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Iowa" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Kentucky" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Michigan" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Minnesota" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Missouri" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Ohio" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "West", Space, Str "Virginia" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Wisconsin" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Mountains" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Colorado" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Idaho" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Montana" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Utah" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Wyoming" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "New", Space, Str "England" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Connecticut" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Maine" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Massachusetts" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "New", Space, Str "Hampshire" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Rhode", Space, Str "Island" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Vermont" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "South" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Alabama" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Arkansas" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Florida" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Georgia" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Louisiana" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Mississippi" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "North", Space, Str "Carolina" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "South", Space, Str "Carolina" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Tennessee" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Virginia" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Southwest" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Arizona" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "New", Space, Str "Mexico" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Texas" ]
+ ]
diff --git a/test/org-select-tags.native b/test/org-select-tags.native
index 5fbfd92d1..a94c70abe 100644
--- a/test/org-select-tags.native
+++ b/test/org-select-tags.native
@@ -1,7 +1,99 @@
-Pandoc (Meta {unMeta = fromList []})
-[Header 1 ("will-appear-because-it-is-the-ancestor-of-something-tagged-yes",[],[]) [Str "Will",Space,Str "appear",Space,Str "because",Space,Str "it",Space,Str "is",Space,Str "the",Space,Str "ancestor",Space,Str "of",Space,Str "something",Space,Str "tagged",Space,Str "\"yes\""]
-,Header 2 ("will-appear",[],[]) [Str "Will",Space,Str "appear",Space,Span ("",["tag"],[("tag-name","yes")]) [SmallCaps [Str "yes"]]]
-,Header 3 ("will-appear-since-the-entire-subtree-of-something-selected-will-appear",[],[]) [Str "Will",Space,Str "appear",Space,Str "since",Space,Str "the",Space,Str "entire",Space,Str "subtree",Space,Str "of",Space,Str "something",Space,Str "selected",Space,Str "will",Space,Str "appear"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Para [Str "Will",Space,Str "appear"]]]
-,Header 2 ("will-appear-because-it-is-the-ancestor-of-something-listed-in-select-tags",[],[]) [Str "Will",Space,Str "appear",Space,Str "because",Space,Str "it",Space,Str "is",Space,Str "the",Space,Str "ancestor",Space,Str "of",Space,Str "something",Space,Str "listed",Space,Str "in",Space,Str "SELECT-TAGS"]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Header 1
+ ( "will-appear-because-it-is-the-ancestor-of-something-tagged-yes"
+ , []
+ , []
+ )
+ [ Str "Will"
+ , Space
+ , Str "appear"
+ , Space
+ , Str "because"
+ , Space
+ , Str "it"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "ancestor"
+ , Space
+ , Str "of"
+ , Space
+ , Str "something"
+ , Space
+ , Str "tagged"
+ , Space
+ , Str "\"yes\""
+ ]
+ , Header 2
+ ( "will-appear", [], [] )
+ [ Str "Will"
+ , Space
+ , Str "appear"
+ , Space
+ , Span
+ ( "", [ "tag" ], [ ( "tag-name", "yes" ) ] )
+ [ SmallCaps [ Str "yes" ] ]
+ ]
+ , Header 3
+ ( "will-appear-since-the-entire-subtree-of-something-selected-will-appear"
+ , []
+ , []
+ )
+ [ Str "Will"
+ , Space
+ , Str "appear"
+ , Space
+ , Str "since"
+ , Space
+ , Str "the"
+ , Space
+ , Str "entire"
+ , Space
+ , Str "subtree"
+ , Space
+ , Str "of"
+ , Space
+ , Str "something"
+ , Space
+ , Str "selected"
+ , Space
+ , Str "will"
+ , Space
+ , Str "appear"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Para [ Str "Will", Space, Str "appear" ] ] ]
+ , Header 2
+ ( "will-appear-because-it-is-the-ancestor-of-something-listed-in-select-tags"
+ , []
+ , []
+ )
+ [ Str "Will"
+ , Space
+ , Str "appear"
+ , Space
+ , Str "because"
+ , Space
+ , Str "it"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "ancestor"
+ , Space
+ , Str "of"
+ , Space
+ , Str "something"
+ , Space
+ , Str "listed"
+ , Space
+ , Str "in"
+ , Space
+ , Str "SELECT-TAGS"
+ ]
+ ]
diff --git a/test/pipe-tables.native b/test/pipe-tables.native
index 249eec17e..e678053d2 100644
--- a/test/pipe-tables.native
+++ b/test/pipe-tables.native
@@ -1,326 +1,850 @@
-[Para [Str "Simplest",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."]])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Headerless",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Table",Space,Str "without",Space,Str "sides:"]
-,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 "Quantity"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "17"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "pear"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "302"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "One-column:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "hi"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "lo"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Header-less",Space,Str "one-column:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "hi"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Indented",Space,Str "left",Space,Str "column:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Number",Space,Str "of",Space,Str "siblings"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Salary"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "33"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "44"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Long",Space,Str "pipe",Space,Str "table",Space,Str "with",Space,Str "relative",Space,Str "widths:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.15517241379310345)
- ,(AlignDefault,ColWidth 0.1724137931034483)
- ,(AlignDefault,ColWidth 0.6724137931034483)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "this",Space,Str "is",Space,Str "a",Space,Str "table",Space,Str "cell"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "and",Space,Str "this",Space,Str "is",Space,Str "a",Space,Str "really",Space,Str "long",Space,Str "table",Space,Str "cell",Space,Str "that",Space,Str "will",Space,Str "probably",Space,Str "need",Space,Str "wrapping"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Pipe",Space,Str "table",Space,Str "with",Space,Str "no",Space,Str "body:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Header"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Pipe",Space,Str "table",Space,Str "with",Space,Str "tricky",Space,Str "cell",Space,Str "contents",Space,Str "(see",Space,Str "#2765):"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "IP_gene8-_1st"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "IP_gene8+_1st"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "IP_gene8-_1st"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1.0000000"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "0.4357325"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "IP_gene8+_1st"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "0.4357325"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1.0000000"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "foo",Code ("",[],[]) "bar|baz"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "and|escaped"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3.0000000"]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Para
+ [ Str "Simplest"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default3" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Simple", Space, Str "table", Space, Str "with", Space, Str "caption:" ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain
+ [ Str "Demonstration"
+ , Space
+ , Str "of"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "syntax."
+ ]
+ ]
+ )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Headerless"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Table", Space, Str "without", Space, Str "sides:" ]
+, 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 "Quantity" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "apple" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "17" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "pear" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "302" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "One-column:" ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignDefault, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "hi" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "lo" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Header-less", Space, Str "one-column:" ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignCenter, ColWidthDefault ) ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "hi" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Indented", Space, Str "left", Space, Str "column:" ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignRight, ColWidthDefault ), ( AlignLeft, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Number", Space, Str "of", Space, Str "siblings" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Salary" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "33" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "44" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Long"
+ , Space
+ , Str "pipe"
+ , Space
+ , Str "table"
+ , Space
+ , Str "with"
+ , Space
+ , Str "relative"
+ , Space
+ , Str "widths:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.15517241379310345 )
+ ,
+ ( AlignDefault, ColWidth 0.1724137931034483 )
+ ,
+ ( AlignDefault, ColWidth 0.6724137931034483 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default3" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "table"
+ , Space
+ , Str "cell"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "and"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "really"
+ , Space
+ , Str "long"
+ , Space
+ , Str "table"
+ , Space
+ , Str "cell"
+ , Space
+ , Str "that"
+ , Space
+ , Str "will"
+ , Space
+ , Str "probably"
+ , Space
+ , Str "need"
+ , Space
+ , Str "wrapping"
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Pipe"
+ , Space
+ , Str "table"
+ , Space
+ , Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "body:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignDefault, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Header" ] ]
+ ]
+ ]
+ )
+ [ TableBody ( "", [], [] ) ( RowHeadColumns 0 ) [] [] ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Pipe"
+ , Space
+ , Str "table"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tricky"
+ , Space
+ , Str "cell"
+ , Space
+ , Str "contents"
+ , Space
+ , Str "(see"
+ , Space
+ , Str "#2765):"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignRight, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "IP_gene8-_1st" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "IP_gene8+_1st" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "IP_gene8-_1st" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1.0000000" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "0.4357325" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "IP_gene8+_1st" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "0.4357325" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1.0000000" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "foo", Code ( "", [], [] ) "bar|baz" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "and|escaped" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3.0000000" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+]
diff --git a/test/rst-reader.native b/test/rst-reader.native
index 9f8d5ab3e..7a5c3d812 100644
--- a/test/rst-reader.native
+++ b/test/rst-reader.native
@@ -1,443 +1,1874 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("revision",MetaBlocks [Para [Str "3"]]),("subtitle",MetaInlines [Str "Subtitle"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
-[Header 1 ("level-one-header",[],[]) [Str "Level",Space,Str "one",Space,Str "header"]
-,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",SoftBreak,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
-,Header 2 ("level-two-header",[],[]) [Str "Level",Space,Str "two",Space,Str "header"]
-,Header 3 ("level-three",[],[]) [Str "Level",Space,Str "three"]
-,Header 4 ("level-four-with-emphasis",[],[]) [Str "Level",Space,Str "four",Space,Str "with",Space,Emph [Str "emphasis"]]
-,Header 5 ("level-five",[],[]) [Str "Level",Space,Str "five"]
-,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
-,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",SoftBreak,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",SoftBreak,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",SoftBreak,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",SoftBreak,Str "list",Space,Str "item."]
-,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",SoftBreak,Str "*",Space,Str "criminey."]
-,Para [Str "Horizontal",Space,Str "rule:"]
-,HorizontalRule
-,Para [Str "Another:"]
-,HorizontalRule
-,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "block",Space,Str "quote:"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",SoftBreak,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
-,Para [Str "Here\8217s",Space,Str "another,",Space,Str "differently",Space,Str "indented:"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",SoftBreak,Str "It\8217s",Space,Str "indented",Space,Str "with",Space,Str "a",Space,Str "tab."]
- ,Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
- ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
- ,Para [Str "List",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
- ,OrderedList (1,Decimal,Period)
- [[Plain [Str "item",Space,Str "one"]]
- ,[Plain [Str "item",Space,Str "two"]]]
- ,Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
- ,BlockQuote
- [Para [Str "nested"]
- ,BlockQuote
- [Para [Str "nested"]]]]
-,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}"
-,CodeBlock ("",[],[]) "this code block is indented by one tab"
-,Para [Str "And:"]
-,CodeBlock ("",[],[]) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
-,Para [Str "And:"]
-,CodeBlock ("",["python"],[]) "def my_function(x):\n return x + 1"
-,Para [Str "If",Space,Str "we",Space,Str "use",Space,Str "the",Space,Str "highlight",Space,Str "directive,",Space,Str "we",Space,Str "can",Space,Str "specify",Space,Str "a",Space,Str "default",Space,Str "language",SoftBreak,Str "for",Space,Str "literate",Space,Str "blocks."]
-,CodeBlock ("",["haskell"],[]) "-- this code is in haskell\ndata Tree = Leaf | Node Tree Tree"
-,CodeBlock ("",["haskell"],[]) "-- this code is in haskell too\ndata Nat = Zero | Succ Nat"
-,CodeBlock ("",["javascript"],[]) "-- this code is in javascript\nlet f = (x, y) => x + y"
-,Header 1 ("lists",[],[]) [Str "Lists"]
-,Header 2 ("unordered",[],[]) [Str "Unordered"]
-,Para [Str "Asterisks",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "asterisk",Space,Str "1"]]
- ,[Plain [Str "asterisk",Space,Str "2"]]
- ,[Plain [Str "asterisk",Space,Str "3"]]]
-,Para [Str "Asterisks",Space,Str "loose:"]
-,BulletList
- [[Plain [Str "asterisk",Space,Str "1"]]
- ,[Plain [Str "asterisk",Space,Str "2"]]
- ,[Plain [Str "asterisk",Space,Str "3"]]]
-,Para [Str "Pluses",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "Plus",Space,Str "1"]]
- ,[Plain [Str "Plus",Space,Str "2"]]
- ,[Plain [Str "Plus",Space,Str "3"]]]
-,Para [Str "Pluses",Space,Str "loose:"]
-,BulletList
- [[Plain [Str "Plus",Space,Str "1"]]
- ,[Plain [Str "Plus",Space,Str "2"]]
- ,[Plain [Str "Plus",Space,Str "3"]]]
-,Para [Str "Minuses",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "Minus",Space,Str "1"]]
- ,[Plain [Str "Minus",Space,Str "2"]]
- ,[Plain [Str "Minus",Space,Str "3"]]]
-,Para [Str "Minuses",Space,Str "loose:"]
-,BulletList
- [[Plain [Str "Minus",Space,Str "1"]]
- ,[Plain [Str "Minus",Space,Str "2"]]
- ,[Plain [Str "Minus",Space,Str "3"]]]
-,Header 2 ("ordered",[],[]) [Str "Ordered"]
-,Para [Str "Tight:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second"]]
- ,[Plain [Str "Third"]]]
-,Para [Str "and:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "One"]]
- ,[Plain [Str "Two"]]
- ,[Plain [Str "Three"]]]
-,Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second"]]
- ,[Plain [Str "Third"]]]
-,Para [Str "and",Space,Str "using",Space,Str "spaces:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "One"]]
- ,[Plain [Str "Two"]]
- ,[Plain [Str "Three"]]]
-,Para [Str "Multiple",Space,Str "paragraphs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
- ,Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog\8217s",SoftBreak,Str "back."]]
- ,[Para [Str "Item",Space,Str "2."]]
- ,[Para [Str "Item",Space,Str "3."]]]
-,Para [Str "Nested:"]
-,BulletList
- [[Plain [Str "Tab"]
- ,BulletList
- [[Plain [Str "Tab"]
- ,BulletList
- [[Plain [Str "Tab"]]]]]]]
-,Para [Str "Here\8217s",Space,Str "another:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second:"]
- ,BlockQuote
- [BulletList
- [[Plain [Str "Fee"]]
- ,[Plain [Str "Fie"]]
- ,[Plain [Str "Foe"]]]]]
- ,[Para [Str "Third"]]]
-,Header 2 ("fancy-list-markers",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
-,OrderedList (2,Decimal,TwoParens)
- [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
- ,[Para [Str "and",Space,Str "now",Space,Str "3"]
- ,Para [Str "with",Space,Str "a",Space,Str "continuation"]
- ,OrderedList (4,LowerRoman,Period)
- [[Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"]]
- ,[Plain [Str "more",Space,Str "items"]
- ,OrderedList (1,UpperAlpha,TwoParens)
- [[Plain [Str "a",Space,Str "subsublist"]]
- ,[Plain [Str "a",Space,Str "subsublist"]]]]]]]
-,Para [Str "Nesting:"]
-,OrderedList (1,UpperAlpha,Period)
- [[Plain [Str "Upper",Space,Str "Alpha"]
- ,OrderedList (1,UpperRoman,Period)
- [[Plain [Str "Upper",Space,Str "Roman."]
- ,OrderedList (6,Decimal,TwoParens)
- [[Plain [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
- ,OrderedList (3,LowerAlpha,OneParen)
- [[Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
-,Para [Str "Autonumbering:"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Autonumber."]]
- ,[Plain [Str "More."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Nested."]]]]]
-,Para [Str "Autonumbering",Space,Str "with",Space,Str "explicit",Space,Str "start:"]
-,OrderedList (4,LowerAlpha,TwoParens)
- [[Plain [Str "item",Space,Str "1"]]
- ,[Plain [Str "item",Space,Str "2"]]]
-,Header 2 ("definition",[],[]) [Str "Definition"]
-,DefinitionList
- [([Str "term",Space,Str "1"],
- [[Para [Str "Definition",Space,Str "1."]]])
- ,([Str "term",Space,Str "2"],
- [[Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "1."]
- ,Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."]]])
- ,([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
- [[Para [Str "Definition",Space,Str "3."]]])]
-,Header 1 ("field-lists",[],[]) [Str "Field",Space,Str "Lists"]
-,BlockQuote
- [DefinitionList
- [([Str "address"],
- [[Para [Str "61",Space,Str "Main",Space,Str "St."]]])
- ,([Str "city"],
- [[Para [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",SoftBreak,Str "USA"]]])
- ,([Str "phone"],
- [[Para [Str "123-4567"]]])]]
-,DefinitionList
- [([Str "address"],
- [[Para [Str "61",Space,Str "Main",Space,Str "St."]]])
- ,([Str "city"],
- [[Para [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",SoftBreak,Str "USA"]]])
- ,([Str "phone"],
- [[Para [Str "123-4567"]]])]
-,Header 1 ("html-blocks",[],[]) [Str "HTML",Space,Str "Blocks"]
-,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
-,RawBlock (Format "html") "foo
"
-,Para [Str "Now,",Space,Str "nested:"]
-,RawBlock (Format "html") ""
-,Header 1 ("latex-block",[],[]) [Str "LaTeX",Space,Str "Block"]
-,RawBlock (Format "latex") "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
-,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
-,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str "."]
-,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "",Str "."]
-,Para [Str "This",Space,Str "is",Subscript [Str "subscripted"],Space,Str "and",Space,Str "this",Space,Str "is",Space,Superscript [Str "superscripted"],Str "."]
-,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
-,BulletList
- [[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
- ,[Plain [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
- ,[Plain [Str "section:",Space,Str "\167"]]
- ,[Plain [Str "set",Space,Str "membership:",Space,Str "\8712"]]
- ,[Plain [Str "copyright:",Space,Str "\169"]]]
-,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
-,Para [Str "This",Space,Str "&",Space,Str "that."]
-,Para [Str "4",Space,Str "<",Space,Str "5."]
-,Para [Str "6",Space,Str ">",Space,Str "5."]
-,Para [Str "Backslash:",Space,Str "\\"]
-,Para [Str "Backtick:",Space,Str "`"]
-,Para [Str "Asterisk:",Space,Str "*"]
-,Para [Str "Underscore:",Space,Str "_"]
-,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
-,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
-,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
-,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
-,Para [Str "Left",Space,Str "paren:",Space,Str "("]
-,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
-,Para [Str "Greater-than:",Space,Str ">"]
-,Para [Str "Hash:",Space,Str "#"]
-,Para [Str "Period:",Space,Str "."]
-,Para [Str "Bang:",Space,Str "!"]
-,Para [Str "Plus:",Space,Str "+"]
-,Para [Str "Minus:",Space,Str "-"]
-,Header 1 ("links",[],[]) [Str "Links"]
-,Para [Str "Explicit:",Space,Str "a",Space,Link ("",[],[]) [Str "URL"] ("/url/",""),Str "."]
-,Para [Str "Explicit",Space,Str "with",Space,Str "no",Space,Str "label:",Space,Link ("",[],[]) [Str "foo"] ("foo",""),Str "."]
-,Para [Str "Two",Space,Str "anonymous",Space,Str "links:",Space,Link ("",[],[]) [Str "the",Space,Str "first"] ("/url1/",""),Space,Str "and",Space,Link ("",[],[]) [Str "the",Space,Str "second"] ("/url2/","")]
-,Para [Str "Reference",Space,Str "links:",Space,Link ("",[],[]) [Str "link1"] ("/url1/",""),Space,Str "and",Space,Link ("",[],[]) [Str "link2"] ("/url2/",""),Space,Str "and",Space,Link ("",[],[]) [Str "link1"] ("/url1/",""),Space,Str "again."]
-,Para [Str "Another",Space,Link ("",[],[]) [Str "style",Space,Str "of",Space,Str "reference",Space,Str "link"] ("/url1/",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "a",Space,Link ("",[],[]) [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link ("",[],[]) [Str "AT&T"] ("/url/",""),Str "."]
-,Para [Str "Autolinks:",Space,Link ("",[],[]) [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2",""),Space,Str "and",Space,Link ("",[],[]) [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net",""),Str "."]
-,Para [Str "But",Space,Str "not",Space,Str "here:"]
-,CodeBlock ("",[],[]) "http://example.com/"
-,Header 1 ("images",[],[]) [Str "Images"]
-,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
-,Para [Image ("",[],[]) [Str "image"] ("lalune.jpg","")]
-,Para [Image ("",[],[("height","2343px")]) [Str "Voyage dans la Lune"] ("lalune.jpg","")]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image ("",[],[]) [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
-,Para [Str "And",Space,Str "an",Space,Link ("",[],[]) [Image ("",[],[]) [Str "A movie"] ("movie.jpg","")] ("/url",""),Str "."]
-,Header 1 ("comments",[],[]) [Str "Comments"]
-,Para [Str "First",Space,Str "paragraph"]
-,Para [Str "Another",Space,Str "paragraph"]
-,Para [Str "A",Space,Str "third",Space,Str "paragraph"]
-,Header 1 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"]
-,LineBlock
- [[Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be"]
- ,[Str "\160\160\160\160or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,"]
- ,[Str "\160\160\160\160\160\160\160\160when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,"]
- ,[Str "\160\160\160\160\160\160\160\160\160\160\160\160due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
- ,[]
- ,[Str "Continuation",Space,Str "line"]
- ,[Str "\160\160and",Space,Str "another"]]
-,Header 1 ("simple-tables",[],[]) [Str "Simple",Space,Str "Tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Headless"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 1 ("grid-tables",[],[]) [Str "Grid",Space,Str "Tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2375)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.1625)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "col",Space,Str "3"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Headless"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2375)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.1625)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Spaces",Space,Str "at",Space,Str "ends",Space,Str "of",Space,Str "lines"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2375)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.1625)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "r2",Space,Str "d"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiple",Space,Str "blocks",Space,Str "in",Space,Str "a",Space,Str "cell"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.2375)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.1625)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "r1",Space,Str "a"]
- ,Para [Str "r1",Space,Str "bis"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [BulletList
- [[Plain [Str "b"]]
- ,[Plain [Str "b",Space,Str "2"]]
- ,[Plain [Str "b",Space,Str "2"]]]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c",SoftBreak,Str "c",Space,Str "2",SoftBreak,Str "c",Space,Str "2"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
-,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "one",Space,Str "line."]]]
-,Para [Note [Para [Str "Note",Space,Str "with",SoftBreak,Str "continuation",Space,Str "line."]]]
-,Para [Note [Para [Str "Note",Space,Str "with"],Para [Str "continuation",Space,Str "block."]]]
-,Para [Note [Para [Str "Note",Space,Str "with",SoftBreak,Str "continuation",Space,Str "line"],Para [Str "and",Space,Str "a",Space,Str "second",Space,Str "para."]]]
-,Para [Str "Not",Space,Str "in",Space,Str "note."]
-,Header 1 ("math",[],[]) [Str "Math"]
-,Para [Str "Some",Space,Str "inline",Space,Str "math",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Now",Space,Str "some",SoftBreak,Str "display",Space,Str "math:"]
-,Para [Math DisplayMath "E=mc^2"]
-,Para [Math DisplayMath "E = mc^2"]
-,Para [Math DisplayMath "E = mc^2",Math DisplayMath "\\alpha = \\beta"]
-,Para [Math DisplayMath "\\begin{aligned}\nE &= mc^2\\\\\nF &= \\pi E\n\\end{aligned}",Math DisplayMath "F &= \\gamma \\alpha^2"]
-,Para [Str "All",Space,Str "done."]
-,Header 1 ("default-role",[],[]) [Str "Default-Role"]
-,Para [Str "Try",Space,Str "changing",Space,Str "the",Space,Str "default",Space,Str "role",Space,Str "to",Space,Str "a",Space,Str "few",Space,Str "different",Space,Str "things."]
-,Header 2 ("doesnt-break-title-parsing",[],[]) [Str "Doesn\8217t",Space,Str "Break",Space,Str "Title",Space,Str "Parsing"]
-,Para [Str "Inline",Space,Str "math:",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Str ".",SoftBreak,Str "Other",Space,Str "roles:",Space,Superscript [Str "super"],Str ",",Space,Subscript [Str "sub"],Str "."]
-,Para [Math DisplayMath "\\alpha = beta",Math DisplayMath "E = mc^2"]
-,Para [Str "Some",Space,Superscript [Str "of"],Space,Str "these",Space,Superscript [Str "words"],Space,Str "are",Space,Str "in",Space,Superscript [Str "superscript"],Str "."]
-,Para [Str "Reset",Space,Str "default-role",Space,Str "to",Space,Str "the",Space,Str "default",Space,Str "default."]
-,Para [Str "And",Space,Str "now",Space,Span ("",["title-ref"],[]) [Str "some-invalid-string-3231231"],Space,Str "is",Space,Str "nonsense."]
-,Para [Str "And",Space,Str "now",Space,Str "with",Space,RawInline (Format "html") "inline HTML ",Str "."]
-,Para [Str "And",Space,Str "some",Space,Str "inline",Space,Str "haskell",Space,Code ("",["haskell"],[]) "fmap id [1,2..10]",Str "."]
-,Para [Str "Indirect",Space,Str "python",Space,Str "role",Space,Code ("",["py","python","indirect"],[]) "[x*x for x in [1,2,3,4,5]]",Str "."]
-,Para [Str "Different",Space,Str "indirect",Space,Str "C",Space,Code ("",["c","different-indirect"],[]) "int x = 15;",Str "."]
-,Header 2 ("literal-symbols",[],[]) [Str "Literal",Space,Str "symbols"]
-,Para [Str "2*2",Space,Str "=",Space,Str "4*1"]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaList
+ [ MetaInlines
+ [ Str "John", Space, Str "MacFarlane" ]
+ , MetaInlines
+ [ Str "Anonymous" ]
+ ]
+ )
+ ,
+ ( "date"
+ , MetaInlines
+ [ Str "July", Space, Str "17,", Space, Str "2006" ]
+ )
+ ,
+ ( "revision", MetaBlocks [ Para [ Str "3" ] ] )
+ ,
+ ( "subtitle", MetaInlines [ Str "Subtitle" ] )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Pandoc", Space, Str "Test", Space, Str "Suite" ]
+ )
+ ]
+ }
+ )
+ [ Header 1
+ ( "level-one-header", [], [] )
+ [ Str "Level", Space, Str "one", Space, Str "header" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "set"
+ , Space
+ , Str "of"
+ , Space
+ , Str "tests"
+ , Space
+ , Str "for"
+ , Space
+ , Str "pandoc."
+ , Space
+ , Str "Most"
+ , Space
+ , Str "of"
+ , Space
+ , Str "them"
+ , Space
+ , Str "are"
+ , Space
+ , Str "adapted"
+ , Space
+ , Str "from"
+ , SoftBreak
+ , Str "John"
+ , Space
+ , Str "Gruber\8217s"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "test"
+ , Space
+ , Str "suite."
+ ]
+ , Header 2
+ ( "level-two-header", [], [] )
+ [ Str "Level", Space, Str "two", Space, Str "header" ]
+ , Header 3
+ ( "level-three", [], [] )
+ [ Str "Level", Space, Str "three" ]
+ , Header 4
+ ( "level-four-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "four"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Header 5
+ ( "level-five", [], [] )
+ [ Str "Level", Space, Str "five" ]
+ , Header 1
+ ( "paragraphs", [], [] )
+ [ Str "Paragraphs" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "regular"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "In"
+ , Space
+ , Str "Markdown"
+ , Space
+ , Str "1.0.0"
+ , Space
+ , Str "and"
+ , Space
+ , Str "earlier."
+ , Space
+ , Str "Version"
+ , SoftBreak
+ , Str "8."
+ , Space
+ , Str "This"
+ , Space
+ , Str "line"
+ , Space
+ , Str "turns"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item."
+ , SoftBreak
+ , Str "Because"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard-wrapped"
+ , Space
+ , Str "line"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "middle"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "looked"
+ , Space
+ , Str "like"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "list"
+ , Space
+ , Str "item."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bullet."
+ , SoftBreak
+ , Str "*"
+ , Space
+ , Str "criminey."
+ ]
+ , Para
+ [ Str "Horizontal", Space, Str "rule:" ]
+ , HorizontalRule
+ , Para
+ [ Str "Another:" ]
+ , HorizontalRule
+ , Header 1
+ ( "block-quotes", [], [] )
+ [ Str "Block", Space, Str "Quotes" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ , SoftBreak
+ , Str "It"
+ , Space
+ , Str "is"
+ , Space
+ , Str "pretty"
+ , Space
+ , Str "short."
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "another,"
+ , Space
+ , Str "differently"
+ , Space
+ , Str "indented:"
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ , SoftBreak
+ , Str "It\8217s"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "tab."
+ ]
+ , Para
+ [ Str "Code"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "sub status {\n print \"working\";\n}"
+ , Para
+ [ Str "List"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "item", Space, Str "one" ] ]
+ ,
+ [ Plain [ Str "item", Space, Str "two" ] ]
+ ]
+ , Para
+ [ Str "Nested", Space, Str "block", Space, Str "quotes:" ]
+ , BlockQuote
+ [ Para [ Str "nested" ], BlockQuote [ Para [ Str "nested" ] ] ]
+ ]
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "Code", Space, Str "Blocks" ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}"
+ , CodeBlock
+ ( "", [], [] ) "this code block is indented by one tab"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( "", [ "python" ], [] ) "def my_function(x):\n return x + 1"
+ , Para
+ [ Str "If"
+ , Space
+ , Str "we"
+ , Space
+ , Str "use"
+ , Space
+ , Str "the"
+ , Space
+ , Str "highlight"
+ , Space
+ , Str "directive,"
+ , Space
+ , Str "we"
+ , Space
+ , Str "can"
+ , Space
+ , Str "specify"
+ , Space
+ , Str "a"
+ , Space
+ , Str "default"
+ , Space
+ , Str "language"
+ , SoftBreak
+ , Str "for"
+ , Space
+ , Str "literate"
+ , Space
+ , Str "blocks."
+ ]
+ , CodeBlock
+ ( ""
+ , [ "haskell" ]
+ , []
+ ) "-- this code is in haskell\ndata Tree = Leaf | Node Tree Tree"
+ , CodeBlock
+ ( ""
+ , [ "haskell" ]
+ , []
+ ) "-- this code is in haskell too\ndata Nat = Zero | Succ Nat"
+ , CodeBlock
+ ( ""
+ , [ "javascript" ]
+ , []
+ ) "-- this code is in javascript\nlet f = (x, y) => x + y"
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "Lists" ]
+ , Header 2
+ ( "unordered", [], [] )
+ [ Str "Unordered" ]
+ , Para
+ [ Str "Asterisks", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Asterisks", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Plain [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Header 2
+ ( "ordered", [], [] )
+ [ Str "Ordered" ]
+ , Para
+ [ Str "Tight:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain [ Str "Second" ] ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "One" ] ]
+ ,
+ [ Plain [ Str "Two" ] ]
+ ,
+ [ Plain [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Loose", Space, Str "using", Space, Str "tabs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain [ Str "Second" ] ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and", Space, Str "using", Space, Str "spaces:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "One" ] ]
+ ,
+ [ Plain [ Str "Two" ] ]
+ ,
+ [ Plain [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "paragraphs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para
+ [ Str "Item", Space, Str "1,", Space, Str "graf", Space, Str "one." ]
+ , Para
+ [ Str "Item"
+ , Space
+ , Str "1."
+ , Space
+ , Str "graf"
+ , Space
+ , Str "two."
+ , Space
+ , Str "The"
+ , Space
+ , Str "quick"
+ , Space
+ , Str "brown"
+ , Space
+ , Str "fox"
+ , Space
+ , Str "jumped"
+ , Space
+ , Str "over"
+ , Space
+ , Str "the"
+ , Space
+ , Str "lazy"
+ , Space
+ , Str "dog\8217s"
+ , SoftBreak
+ , Str "back."
+ ]
+ ]
+ ,
+ [ Para [ Str "Item", Space, Str "2." ] ]
+ ,
+ [ Para [ Str "Item", Space, Str "3." ] ]
+ ]
+ , Para
+ [ Str "Nested:" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Tab" ]
+ , BulletList
+ [ [ Plain [ Str "Tab" ], BulletList [ [ Plain [ Str "Tab" ] ] ] ] ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s", Space, Str "another:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BlockQuote
+ [ BulletList
+ [
+ [ Plain [ Str "Fee" ] ]
+ ,
+ [ Plain [ Str "Fie" ] ]
+ ,
+ [ Plain [ Str "Foe" ] ]
+ ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "fancy-list-markers", [], [] )
+ [ Str "Fancy", Space, Str "list", Space, Str "markers" ]
+ , OrderedList
+ ( 2, Decimal, TwoParens )
+ [
+ [ Para [ Str "begins", Space, Str "with", Space, Str "2" ] ]
+ ,
+ [ Para
+ [ Str "and", Space, Str "now", Space, Str "3" ]
+ , Para
+ [ Str "with", Space, Str "a", Space, Str "continuation" ]
+ , OrderedList
+ ( 4, LowerRoman, Period )
+ [
+ [ Plain
+ [ Str "sublist"
+ , Space
+ , Str "with"
+ , Space
+ , Str "roman"
+ , Space
+ , Str "numerals,"
+ , Space
+ , Str "starting"
+ , Space
+ , Str "with"
+ , Space
+ , Str "4"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "more", Space, Str "items" ]
+ , OrderedList
+ ( 1, UpperAlpha, TwoParens )
+ [
+ [ Plain [ Str "a", Space, Str "subsublist" ] ]
+ ,
+ [ Plain [ Str "a", Space, Str "subsublist" ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Nesting:" ]
+ , OrderedList
+ ( 1, UpperAlpha, Period )
+ [
+ [ Plain
+ [ Str "Upper", Space, Str "Alpha" ]
+ , OrderedList
+ ( 1, UpperRoman, Period )
+ [
+ [ Plain
+ [ Str "Upper", Space, Str "Roman." ]
+ , OrderedList
+ ( 6, Decimal, TwoParens )
+ [
+ [ Plain
+ [ Str "Decimal"
+ , Space
+ , Str "start"
+ , Space
+ , Str "with"
+ , Space
+ , Str "6"
+ ]
+ , OrderedList
+ ( 3, LowerAlpha, OneParen )
+ [
+ [ Plain
+ [ Str "Lower"
+ , Space
+ , Str "alpha"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paren"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Autonumbering:" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Autonumber." ] ]
+ ,
+ [ Plain
+ [ Str "More." ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Plain [ Str "Nested." ] ] ]
+ ]
+ ]
+ , Para
+ [ Str "Autonumbering"
+ , Space
+ , Str "with"
+ , Space
+ , Str "explicit"
+ , Space
+ , Str "start:"
+ ]
+ , OrderedList
+ ( 4, LowerAlpha, TwoParens )
+ [
+ [ Plain [ Str "item", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "item", Space, Str "2" ] ]
+ ]
+ , Header 2
+ ( "definition", [], [] )
+ [ Str "Definition" ]
+ , DefinitionList
+ [
+ (
+ [ Str "term", Space, Str "1" ]
+ ,
+ [ [ Para [ Str "Definition", Space, Str "1." ] ] ]
+ )
+ ,
+ (
+ [ Str "term", Space, Str "2" ]
+ ,
+ [
+ [ Para
+ [ Str "Definition"
+ , Space
+ , Str "2,"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "1."
+ ]
+ , Para
+ [ Str "Definition"
+ , Space
+ , Str "2,"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "2."
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "term", Space, Str "with", Space, Emph [ Str "emphasis" ] ]
+ ,
+ [ [ Para [ Str "Definition", Space, Str "3." ] ] ]
+ )
+ ]
+ , Header 1
+ ( "field-lists", [], [] )
+ [ Str "Field", Space, Str "Lists" ]
+ , BlockQuote
+ [ DefinitionList
+ [
+ (
+ [ Str "address" ]
+ ,
+ [ [ Para [ Str "61", Space, Str "Main", Space, Str "St." ] ] ]
+ )
+ ,
+ (
+ [ Str "city" ]
+ ,
+ [
+ [ Para
+ [ Emph
+ [ Str "Nowhere" ]
+ , Str ","
+ , Space
+ , Str "MA,"
+ , SoftBreak
+ , Str "USA"
+ ]
+ ]
+ ]
+ )
+ ,
+ ( [ Str "phone" ], [ [ Para [ Str "123-4567" ] ] ] )
+ ]
+ ]
+ , DefinitionList
+ [
+ (
+ [ Str "address" ]
+ ,
+ [ [ Para [ Str "61", Space, Str "Main", Space, Str "St." ] ] ]
+ )
+ ,
+ (
+ [ Str "city" ]
+ ,
+ [
+ [ Para
+ [ Emph
+ [ Str "Nowhere" ]
+ , Str ","
+ , Space
+ , Str "MA,"
+ , SoftBreak
+ , Str "USA"
+ ]
+ ]
+ ]
+ )
+ ,
+ ( [ Str "phone" ], [ [ Para [ Str "123-4567" ] ] ] )
+ ]
+ , Header 1
+ ( "html-blocks", [], [] )
+ [ Str "HTML", Space, Str "Blocks" ]
+ , Para
+ [ Str "Simple"
+ , Space
+ , Str "block"
+ , Space
+ , Str "on"
+ , Space
+ , Str "one"
+ , Space
+ , Str "line:"
+ ]
+ , RawBlock
+ ( Format "html" ) "foo
"
+ , Para
+ [ Str "Now,", Space, Str "nested:" ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Header 1
+ ( "latex-block", [], [] )
+ [ Str "LaTeX", Space, Str "Block" ]
+ , RawBlock
+ ( Format "latex" ) "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
+ , Header 1
+ ( "inline-markup", [], [] )
+ [ Str "Inline", Space, Str "Markup" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "emphasized" ]
+ , Str "."
+ , Space
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "code:"
+ , Space
+ , Code
+ ( "", [], [] ) ">"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) ""
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Subscript
+ [ Str "subscripted" ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Superscript
+ [ Str "superscripted" ]
+ , Str "."
+ ]
+ , Header 1
+ ( "special-characters", [], [] )
+ [ Str "Special", Space, Str "Characters" ]
+ , Para
+ [ Str "Here", Space, Str "is", Space, Str "some", Space, Str "unicode:" ]
+ , BulletList
+ [
+ [ Plain [ Str "I", Space, Str "hat:", Space, Str "\206" ] ]
+ ,
+ [ Plain [ Str "o", Space, Str "umlaut:", Space, Str "\246" ] ]
+ ,
+ [ Plain [ Str "section:", Space, Str "\167" ] ]
+ ,
+ [ Plain [ Str "set", Space, Str "membership:", Space, Str "\8712" ] ]
+ ,
+ [ Plain [ Str "copyright:", Space, Str "\169" ] ]
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "has"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "their"
+ , Space
+ , Str "name."
+ ]
+ , Para
+ [ Str "This", Space, Str "&", Space, Str "that." ]
+ , Para
+ [ Str "4", Space, Str "<", Space, Str "5." ]
+ , Para
+ [ Str "6", Space, Str ">", Space, Str "5." ]
+ , Para
+ [ Str "Backslash:", Space, Str "\\" ]
+ , Para
+ [ Str "Backtick:", Space, Str "`" ]
+ , Para
+ [ Str "Asterisk:", Space, Str "*" ]
+ , Para
+ [ Str "Underscore:", Space, Str "_" ]
+ , Para
+ [ Str "Left", Space, Str "brace:", Space, Str "{" ]
+ , Para
+ [ Str "Right", Space, Str "brace:", Space, Str "}" ]
+ , Para
+ [ Str "Left", Space, Str "bracket:", Space, Str "[" ]
+ , Para
+ [ Str "Right", Space, Str "bracket:", Space, Str "]" ]
+ , Para
+ [ Str "Left", Space, Str "paren:", Space, Str "(" ]
+ , Para
+ [ Str "Right", Space, Str "paren:", Space, Str ")" ]
+ , Para
+ [ Str "Greater-than:", Space, Str ">" ]
+ , Para
+ [ Str "Hash:", Space, Str "#" ]
+ , Para
+ [ Str "Period:", Space, Str "." ]
+ , Para
+ [ Str "Bang:", Space, Str "!" ]
+ , Para
+ [ Str "Plus:", Space, Str "+" ]
+ , Para
+ [ Str "Minus:", Space, Str "-" ]
+ , Header 1
+ ( "links", [], [] )
+ [ Str "Links" ]
+ , Para
+ [ Str "Explicit:"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "URL" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Explicit"
+ , Space
+ , Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "label:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "foo" ]
+ ( "foo", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Two"
+ , Space
+ , Str "anonymous"
+ , Space
+ , Str "links:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "the", Space, Str "first" ]
+ ( "/url1/", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "the", Space, Str "second" ]
+ ( "/url2/", "" )
+ ]
+ , Para
+ [ Str "Reference"
+ , Space
+ , Str "links:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link1" ]
+ ( "/url1/", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link2" ]
+ ( "/url2/", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link1" ]
+ ( "/url1/", "" )
+ , Space
+ , Str "again."
+ ]
+ , Para
+ [ Str "Another"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "style"
+ , Space
+ , Str "of"
+ , Space
+ , Str "reference"
+ , Space
+ , Str "link"
+ ]
+ ( "/url1/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "URL"
+ ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "amersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "link"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "AT&T" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Autolinks:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://example.com/?foo=1&bar=2" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "nobody@nowhere.net" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "But", Space, Str "not", Space, Str "here:" ]
+ , CodeBlock
+ ( "", [], [] ) "http://example.com/"
+ , Header 1
+ ( "images", [], [] )
+ [ Str "Images" ]
+ , Para
+ [ Str "From"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "Voyage", Space, Str "dans", Space, Str "la", Space, Str "Lune" ]
+ , Space
+ , Str "by"
+ , Space
+ , Str "Georges"
+ , Space
+ , Str "Melies"
+ , Space
+ , Str "(1902):"
+ ]
+ , Para
+ [ Image ( "", [], [] ) [ Str "image" ] ( "lalune.jpg", "" ) ]
+ , Para
+ [ Image
+ ( "", [], [ ( "height", "2343px" ) ] )
+ [ Str "Voyage dans la Lune" ]
+ ( "lalune.jpg", "" )
+ ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "movie"
+ , Space
+ , Image
+ ( "", [], [] )
+ [ Str "movie" ]
+ ( "movie.jpg", "" )
+ , Space
+ , Str "icon."
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Image ( "", [], [] ) [ Str "A movie" ] ( "movie.jpg", "" ) ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Header 1
+ ( "comments", [], [] )
+ [ Str "Comments" ]
+ , Para
+ [ Str "First", Space, Str "paragraph" ]
+ , Para
+ [ Str "Another", Space, Str "paragraph" ]
+ , Para
+ [ Str "A", Space, Str "third", Space, Str "paragraph" ]
+ , Header 1
+ ( "line-blocks", [], [] )
+ [ Str "Line", Space, Str "blocks" ]
+ , LineBlock
+ [
+ [ Str "But"
+ , Space
+ , Str "can"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bee"
+ , Space
+ , Str "be"
+ , Space
+ , Str "said"
+ , Space
+ , Str "to"
+ , Space
+ , Str "be"
+ ]
+ ,
+ [ Str "\160\160\160\160or"
+ , Space
+ , Str "not"
+ , Space
+ , Str "to"
+ , Space
+ , Str "be"
+ , Space
+ , Str "an"
+ , Space
+ , Str "entire"
+ , Space
+ , Str "bee,"
+ ]
+ ,
+ [ Str "\160\160\160\160\160\160\160\160when"
+ , Space
+ , Str "half"
+ , Space
+ , Str "the"
+ , Space
+ , Str "bee"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bee,"
+ ]
+ ,
+ [ Str "\160\160\160\160\160\160\160\160\160\160\160\160due"
+ , Space
+ , Str "to"
+ , Space
+ , Str "some"
+ , Space
+ , Str "ancient"
+ , Space
+ , Str "injury?"
+ ]
+ , []
+ ,
+ [ Str "Continuation", Space, Str "line" ]
+ ,
+ [ Str "\160\160and", Space, Str "another" ]
+ ]
+ , Header 1
+ ( "simple-tables", [], [] )
+ [ Str "Simple", Space, Str "Tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "3" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r1", Space, Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Headless" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r1", Space, Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 1
+ ( "grid-tables", [], [] )
+ [ Str "Grid", Space, Str "Tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2375 )
+ ,
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "col", Space, Str "3" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1", Space, Str "a", SoftBreak, Str "r1", Space, Str "bis" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Headless" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2375 )
+ ,
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1", Space, Str "a", SoftBreak, Str "r1", Space, Str "bis" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Spaces"
+ , Space
+ , Str "at"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "of"
+ , Space
+ , Str "lines"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2375 )
+ ,
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "r1", Space, Str "a", SoftBreak, Str "r1", Space, Str "bis" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b", SoftBreak, Str "b", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c", SoftBreak, Str "c", Space, Str "2" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "r2", Space, Str "d" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "Multiple"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "cell"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.2375 )
+ ,
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para
+ [ Str "r1", Space, Str "a" ]
+ , Para
+ [ Str "r1", Space, Str "bis" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ BulletList
+ [
+ [ Plain [ Str "b" ] ]
+ ,
+ [ Plain [ Str "b", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "b", Space, Str "2" ] ]
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "c"
+ , SoftBreak
+ , Str "c"
+ , Space
+ , Str "2"
+ , SoftBreak
+ , Str "c"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 1
+ ( "footnotes", [], [] )
+ [ Str "Footnotes" ]
+ , Para
+ [ Note
+ [ Para
+ [ Str "Note", Space, Str "with", Space, Str "one", Space, Str "line." ]
+ ]
+ ]
+ , Para
+ [ Note
+ [ Para
+ [ Str "Note"
+ , Space
+ , Str "with"
+ , SoftBreak
+ , Str "continuation"
+ , Space
+ , Str "line."
+ ]
+ ]
+ ]
+ , Para
+ [ Note
+ [ Para
+ [ Str "Note", Space, Str "with" ]
+ , Para
+ [ Str "continuation", Space, Str "block." ]
+ ]
+ ]
+ , Para
+ [ Note
+ [ Para
+ [ Str "Note"
+ , Space
+ , Str "with"
+ , SoftBreak
+ , Str "continuation"
+ , Space
+ , Str "line"
+ ]
+ , Para
+ [ Str "and", Space, Str "a", Space, Str "second", Space, Str "para." ]
+ ]
+ ]
+ , Para
+ [ Str "Not", Space, Str "in", Space, Str "note." ]
+ , Header 1
+ ( "math", [], [] )
+ [ Str "Math" ]
+ , Para
+ [ Str "Some"
+ , Space
+ , Str "inline"
+ , Space
+ , Str "math"
+ , Space
+ , Math InlineMath "E=mc^2"
+ , Str "."
+ , Space
+ , Str "Now"
+ , Space
+ , Str "some"
+ , SoftBreak
+ , Str "display"
+ , Space
+ , Str "math:"
+ ]
+ , Para
+ [ Math DisplayMath "E=mc^2" ]
+ , Para
+ [ Math DisplayMath "E = mc^2" ]
+ , Para
+ [ Math DisplayMath "E = mc^2", Math DisplayMath "\\alpha = \\beta" ]
+ , Para
+ [ Math DisplayMath "\\begin{aligned}\nE &= mc^2\\\\\nF &= \\pi E\n\\end{aligned}"
+ , Math DisplayMath "F &= \\gamma \\alpha^2"
+ ]
+ , Para
+ [ Str "All", Space, Str "done." ]
+ , Header 1
+ ( "default-role", [], [] )
+ [ Str "Default-Role" ]
+ , Para
+ [ Str "Try"
+ , Space
+ , Str "changing"
+ , Space
+ , Str "the"
+ , Space
+ , Str "default"
+ , Space
+ , Str "role"
+ , Space
+ , Str "to"
+ , Space
+ , Str "a"
+ , Space
+ , Str "few"
+ , Space
+ , Str "different"
+ , Space
+ , Str "things."
+ ]
+ , Header 2
+ ( "doesnt-break-title-parsing", [], [] )
+ [ Str "Doesn\8217t"
+ , Space
+ , Str "Break"
+ , Space
+ , Str "Title"
+ , Space
+ , Str "Parsing"
+ ]
+ , Para
+ [ Str "Inline"
+ , Space
+ , Str "math:"
+ , Space
+ , Math InlineMath "E=mc^2"
+ , Space
+ , Str "or"
+ , Space
+ , Math InlineMath "E=mc^2"
+ , Space
+ , Str "or"
+ , Space
+ , Math InlineMath "E=mc^2"
+ , Str "."
+ , SoftBreak
+ , Str "Other"
+ , Space
+ , Str "roles:"
+ , Space
+ , Superscript
+ [ Str "super" ]
+ , Str ","
+ , Space
+ , Subscript
+ [ Str "sub" ]
+ , Str "."
+ ]
+ , Para
+ [ Math DisplayMath "\\alpha = beta", Math DisplayMath "E = mc^2" ]
+ , Para
+ [ Str "Some"
+ , Space
+ , Superscript
+ [ Str "of" ]
+ , Space
+ , Str "these"
+ , Space
+ , Superscript
+ [ Str "words" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "in"
+ , Space
+ , Superscript
+ [ Str "superscript" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Reset"
+ , Space
+ , Str "default-role"
+ , Space
+ , Str "to"
+ , Space
+ , Str "the"
+ , Space
+ , Str "default"
+ , Space
+ , Str "default."
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "now"
+ , Space
+ , Span
+ ( "", [ "title-ref" ], [] )
+ [ Str "some-invalid-string-3231231" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "nonsense."
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "now"
+ , Space
+ , Str "with"
+ , Space
+ , RawInline
+ ( Format "html" ) "inline HTML "
+ , Str "."
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "some"
+ , Space
+ , Str "inline"
+ , Space
+ , Str "haskell"
+ , Space
+ , Code
+ ( "", [ "haskell" ], [] ) "fmap id [1,2..10]"
+ , Str "."
+ ]
+ , Para
+ [ Str "Indirect"
+ , Space
+ , Str "python"
+ , Space
+ , Str "role"
+ , Space
+ , Code
+ ( "", [ "py", "python", "indirect" ], [] ) "[x*x for x in [1,2,3,4,5]]"
+ , Str "."
+ ]
+ , Para
+ [ Str "Different"
+ , Space
+ , Str "indirect"
+ , Space
+ , Str "C"
+ , Space
+ , Code
+ ( "", [ "c", "different-indirect" ], [] ) "int x = 15;"
+ , Str "."
+ ]
+ , Header 2
+ ( "literal-symbols", [], [] )
+ [ Str "Literal", Space, Str "symbols" ]
+ , Para
+ [ Str "2*2", Space, Str "=", Space, Str "4*1" ]
+ ]
diff --git a/test/rtf/accent.native b/test/rtf/accent.native
index bea6364de..67eb654fe 100644
--- a/test/rtf/accent.native
+++ b/test/rtf/accent.native
@@ -1,2 +1,18 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Str "le",Space,Str "caf\233",Space,Str "o\249",Space,Str "on",Space,Str "ne",Space,Str "fume",Space,Str "pas"]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para
+ [ Str "le"
+ , Space
+ , Str "caf\233"
+ , Space
+ , Str "o\249"
+ , Space
+ , Str "on"
+ , Space
+ , Str "ne"
+ , Space
+ , Str "fume"
+ , Space
+ , Str "pas"
+ ]
+ ]
diff --git a/test/rtf/bookmark.native b/test/rtf/bookmark.native
index f142f1c5c..765bf29d0 100644
--- a/test/rtf/bookmark.native
+++ b/test/rtf/bookmark.native
@@ -1,3 +1,11 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Span ("bookmark_1",[],[]) [Str "Bookmark_1"]]
-,Para [Link ("",[],[]) [Str "click",Space,Str "me"] ("#bookmark_1","")]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para
+ [ Span ( "bookmark_1", [], [] ) [ Str "Bookmark_1" ] ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "click", Space, Str "me" ]
+ ( "#bookmark_1", "" )
+ ]
+ ]
diff --git a/test/rtf/footnote.native b/test/rtf/footnote.native
index f2893be7e..cfea5f4a1 100644
--- a/test/rtf/footnote.native
+++ b/test/rtf/footnote.native
@@ -1,2 +1,130 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Str "Mead's",Space,Str "landmark",Space,Str "study",Space,Str "has",Space,Str "been",Space,Str "amply",Space,Str "annotated.",Note [Para [Str "See",Space,Str "Sahlins,",Space,Str "Bateson,",Space,Str "and",Space,Str "Geertz",Space,Str "for",Space,Str "a",Space,Str "complete",Space,Str "bibliography."]],Space,Str "It",Space,Str "was",Space,Str "her",Space,Str "work",Space,Str "in",Space,Str "America",Space,Str "during",Space,Str "the",Space,Str "Second",Space,Str "World",Space,Str "War,",Space,Str "however,",Space,Str "that",Space,Str "forms",Space,Str "the",Space,Str "basis",Space,Str "for",Space,Str "the",Space,Str "paper.",Space,Str "As",Space,Str "others",Space,Str "have",Space,Str "noted,",Note [Para [Str "A",Space,Str "complete",Space,Str "bibliography",Space,Str "will",Space,Str "be",Space,Str "found",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "this",Space,Str "chapter."]],Space,Str "this",Space,Str "period",Space,Str "was",Space,Str "a",Space,Str "turning",Space,Str "point",Space,Str "for",Space,Str "Margaret",Space,Str "Mead."]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para
+ [ Str "Mead's"
+ , Space
+ , Str "landmark"
+ , Space
+ , Str "study"
+ , Space
+ , Str "has"
+ , Space
+ , Str "been"
+ , Space
+ , Str "amply"
+ , Space
+ , Str "annotated."
+ , Note
+ [ Para
+ [ Str "See"
+ , Space
+ , Str "Sahlins,"
+ , Space
+ , Str "Bateson,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "Geertz"
+ , Space
+ , Str "for"
+ , Space
+ , Str "a"
+ , Space
+ , Str "complete"
+ , Space
+ , Str "bibliography."
+ ]
+ ]
+ , Space
+ , Str "It"
+ , Space
+ , Str "was"
+ , Space
+ , Str "her"
+ , Space
+ , Str "work"
+ , Space
+ , Str "in"
+ , Space
+ , Str "America"
+ , Space
+ , Str "during"
+ , Space
+ , Str "the"
+ , Space
+ , Str "Second"
+ , Space
+ , Str "World"
+ , Space
+ , Str "War,"
+ , Space
+ , Str "however,"
+ , Space
+ , Str "that"
+ , Space
+ , Str "forms"
+ , Space
+ , Str "the"
+ , Space
+ , Str "basis"
+ , Space
+ , Str "for"
+ , Space
+ , Str "the"
+ , Space
+ , Str "paper."
+ , Space
+ , Str "As"
+ , Space
+ , Str "others"
+ , Space
+ , Str "have"
+ , Space
+ , Str "noted,"
+ , Note
+ [ Para
+ [ Str "A"
+ , Space
+ , Str "complete"
+ , Space
+ , Str "bibliography"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "found"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "this"
+ , Space
+ , Str "chapter."
+ ]
+ ]
+ , Space
+ , Str "this"
+ , Space
+ , Str "period"
+ , Space
+ , Str "was"
+ , Space
+ , Str "a"
+ , Space
+ , Str "turning"
+ , Space
+ , Str "point"
+ , Space
+ , Str "for"
+ , Space
+ , Str "Margaret"
+ , Space
+ , Str "Mead."
+ ]
+ ]
diff --git a/test/rtf/formatting.native b/test/rtf/formatting.native
index 54e61bf97..6e5001de3 100644
--- a/test/rtf/formatting.native
+++ b/test/rtf/formatting.native
@@ -1,10 +1,51 @@
-Pandoc (Meta {unMeta = fromList [("operator",MetaInlines [Str "John",Space,Str "MacFarlane"])]})
-[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "test",Space,Str "of",Space,Str "FORMATTING.",Space,Str "This",Space,Str "is",Space,Str "hidden:",Space,Str "."]
-,Para [SmallCaps [Str "Small",Space,Str "Caps"]]
-,Para [Strong [Str "bold"]]
-,Para [Emph [Str "italics"]]
-,Para [Strong [Str "bold",Space,Emph [Str "and",Space,Str "italics"]]]
-,Para [Underline [Str "underlined"]]
-,Para [Strikeout [Str "strikeout"]]
-,Para [Str "x",Superscript [Str "superscript"]]
-,Para [Str "x",Subscript [Str "subscript"]]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "operator"
+ , MetaInlines
+ [ Str "John", Space, Str "MacFarlane" ]
+ )
+ ]
+ }
+ )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "test"
+ , Space
+ , Str "of"
+ , Space
+ , Str "FORMATTING."
+ , Space
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "hidden:"
+ , Space
+ , Str "."
+ ]
+ , Para
+ [ SmallCaps [ Str "Small", Space, Str "Caps" ] ]
+ , Para
+ [ Strong [ Str "bold" ] ]
+ , Para
+ [ Emph [ Str "italics" ] ]
+ , Para
+ [ Strong
+ [ Str "bold", Space, Emph [ Str "and", Space, Str "italics" ] ]
+ ]
+ , Para
+ [ Underline [ Str "underlined" ] ]
+ , Para
+ [ Strikeout [ Str "strikeout" ] ]
+ , Para
+ [ Str "x", Superscript [ Str "superscript" ] ]
+ , Para
+ [ Str "x", Subscript [ Str "subscript" ] ]
+ ]
diff --git a/test/rtf/heading.native b/test/rtf/heading.native
index fbda9ef51..27d5d455e 100644
--- a/test/rtf/heading.native
+++ b/test/rtf/heading.native
@@ -1,5 +1,14 @@
-Pandoc (Meta {unMeta = fromList []})
-[Header 1 ("",[],[]) [Str "Heading",Space,Str "1"]
-,Header 2 ("",[],[]) [Str "Heading",Space,Str "2"]
-,Header 3 ("",[],[]) [Str "Heading",Space,Str "3"]
-,Para [Str "Paragraph"]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Header 1
+ ( "", [], [] )
+ [ Str "Heading", Space, Str "1" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Heading", Space, Str "2" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Heading", Space, Str "3" ]
+ , Para
+ [ Str "Paragraph" ]
+ ]
diff --git a/test/rtf/image.native b/test/rtf/image.native
index e730859af..551a0f95c 100644
--- a/test/rtf/image.native
+++ b/test/rtf/image.native
@@ -1,2 +1,9 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Image ("",[],[("width","2.0in"),("height","2.0in")]) [Str "image"] ("f9d88c3dbe18f6a7f5670e994a947d51216cdf0e.jpg","")]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para
+ [ Image
+ ( "", [], [ ( "width", "2.0in" ), ( "height", "2.0in" ) ] )
+ [ Str "image" ]
+ ( "f9d88c3dbe18f6a7f5670e994a947d51216cdf0e.jpg", "" )
+ ]
+ ]
diff --git a/test/rtf/link.native b/test/rtf/link.native
index e9e08dc86..9902760e1 100644
--- a/test/rtf/link.native
+++ b/test/rtf/link.native
@@ -1,2 +1,5 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Link ("",[],[]) [Str "pandoc"] ("http://pandoc.org","")]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para
+ [ Link ( "", [], [] ) [ Str "pandoc" ] ( "http://pandoc.org", "" ) ]
+ ]
diff --git a/test/rtf/list_complex.native b/test/rtf/list_complex.native
index 53ffdf9bd..73e2e14f8 100644
--- a/test/rtf/list_complex.native
+++ b/test/rtf/list_complex.native
@@ -1,24 +1,84 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaInlines [Str "Cynthia",Space,Str "Johnson"]),("operator",MetaInlines [Str "John",Space,Str "MacFarlane"]),("title",MetaInlines [Str "Text",Space,Str "before",Space,Str "list"])]})
-[OrderedList (1,Decimal,Period)
- [[Para [Str "One"]]
- ,[Para [Str "Two"]
- ,OrderedList (1,LowerAlpha,Period)
- [[Para [Str "Three"]]
- ,[Para [Str "Four"]
- ,OrderedList (1,LowerRoman,Period)
- [[Para [Str "Five"]]
- ,[Para [Str "Six"]
- ,OrderedList (1,UpperAlpha,Period)
- [[Para [Str "Seven"]]
- ,[Para [Str "Eight"]
- ,OrderedList (1,UpperRoman,Period)
- [[Para [Str "Nine"]]
- ,[Para [Str "Ten"]
- ,BulletList
- [[Para [Str "Eleven"]]
- ,[Para [Str "Twelve"]]]]]]]]]]]]]
-,Para [Str "Out",Space,Str "of",Space,Str "list!"]
-,Para [Str "Start",Space,Str "with"]
-,OrderedList (7,Decimal,Period)
- [[Para [Str "Seven",Space,Str "Start"]]
- ,[Para [Str "Eight",Space,Str "Continue"]]]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaInlines
+ [ Str "Cynthia", Space, Str "Johnson" ]
+ )
+ ,
+ ( "operator"
+ , MetaInlines
+ [ Str "John", Space, Str "MacFarlane" ]
+ )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Text", Space, Str "before", Space, Str "list" ]
+ )
+ ]
+ }
+ )
+ [ OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "One" ] ]
+ ,
+ [ Para
+ [ Str "Two" ]
+ , OrderedList
+ ( 1, LowerAlpha, Period )
+ [
+ [ Para [ Str "Three" ] ]
+ ,
+ [ Para
+ [ Str "Four" ]
+ , OrderedList
+ ( 1, LowerRoman, Period )
+ [
+ [ Para [ Str "Five" ] ]
+ ,
+ [ Para
+ [ Str "Six" ]
+ , OrderedList
+ ( 1, UpperAlpha, Period )
+ [
+ [ Para [ Str "Seven" ] ]
+ ,
+ [ Para
+ [ Str "Eight" ]
+ , OrderedList
+ ( 1, UpperRoman, Period )
+ [
+ [ Para [ Str "Nine" ] ]
+ ,
+ [ Para
+ [ Str "Ten" ]
+ , BulletList
+ [
+ [ Para [ Str "Eleven" ] ]
+ ,
+ [ Para [ Str "Twelve" ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Out", Space, Str "of", Space, Str "list!" ]
+ , Para
+ [ Str "Start", Space, Str "with" ]
+ , OrderedList
+ ( 7, Decimal, Period )
+ [
+ [ Para [ Str "Seven", Space, Str "Start" ] ]
+ ,
+ [ Para [ Str "Eight", Space, Str "Continue" ] ]
+ ]
+ ]
diff --git a/test/rtf/list_simple.native b/test/rtf/list_simple.native
index 9281b285a..dc5b65b97 100644
--- a/test/rtf/list_simple.native
+++ b/test/rtf/list_simple.native
@@ -1,8 +1,11 @@
-Pandoc (Meta {unMeta = fromList []})
-[BulletList
- [[Para [Str "one"]]
- ,[Para [Str "two"]
- ,BulletList
- [[Para [Str "sub"]]]]]
-,BulletList
- [[Para [Str "new",Space,Str "list"]]]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ BulletList
+ [
+ [ Para [ Str "one" ] ]
+ ,
+ [ Para [ Str "two" ], BulletList [ [ Para [ Str "sub" ] ] ] ]
+ ]
+ , BulletList
+ [ [ Para [ Str "new", Space, Str "list" ] ] ]
+ ]
diff --git a/test/rtf/table_error_codes.native b/test/rtf/table_error_codes.native
index bc75d4f81..35d774065 100644
--- a/test/rtf/table_error_codes.native
+++ b/test/rtf/table_error_codes.native
@@ -1,146 +1,369 @@
-Pandoc (Meta {unMeta = fromList []})
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Code"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "Error"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocFailOnWarningError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocAppError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "5"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocTemplateError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "6"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocOptionError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "21"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocUnknownReaderError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "22"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocUnknownWriterError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "23"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocUnsupportedExtensionError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "24"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocCiteprocError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "31"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocEpubSubdirectoryError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "43"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocPDFError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "44"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocXMLError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "47"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocPDFProgramNotFoundError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "61"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocHttpError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "62"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocShouldNeverHappenError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "63"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocSomeError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "64"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocParseError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "65"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocParsecError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "66"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocMakePDFError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "67"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocSyntaxMapError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "83"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocFilterError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "91"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocMacroLoop"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "92"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocUTF8DecodingError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "93"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocIpynbDecodingError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "94"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocUnsupportedCharsetError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "97"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocCouldNotFindDataFileError"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "99"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "PandocResourceNotFound"]]]])]
- (TableFoot ("",[],[])
- [])]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Code" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "Error" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocFailOnWarningError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocAppError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "5" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocTemplateError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "6" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocOptionError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "21" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocUnknownReaderError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "22" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocUnknownWriterError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "23" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocUnsupportedExtensionError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "24" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocCiteprocError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "31" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocEpubSubdirectoryError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "43" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocPDFError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "44" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocXMLError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "47" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocPDFProgramNotFoundError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "61" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocHttpError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "62" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocShouldNeverHappenError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "63" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocSomeError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "64" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocParseError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "65" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocParsecError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "66" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocMakePDFError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "67" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocSyntaxMapError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "83" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocFilterError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "91" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocMacroLoop" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "92" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocUTF8DecodingError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "93" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocIpynbDecodingError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "94" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocUnsupportedCharsetError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "97" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocCouldNotFindDataFileError" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "99" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "PandocResourceNotFound" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
diff --git a/test/rtf/table_simple.native b/test/rtf/table_simple.native
index 3cff9ac38..05e736829 100644
--- a/test/rtf/table_simple.native
+++ b/test/rtf/table_simple.native
@@ -1,31 +1,68 @@
-Pandoc (Meta {unMeta = fromList []})
-[Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "A"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "B"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "C"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "D"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "E"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "F"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "G"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Para [Str "H"]]]])]
- (TableFoot ("",[],[])
- [])]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "A" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "B" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "C" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "D" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "E" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "F" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "G" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Para [ Str "H" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
diff --git a/test/rtf/unicode.native b/test/rtf/unicode.native
index fc104491d..4e2340b84 100644
--- a/test/rtf/unicode.native
+++ b/test/rtf/unicode.native
@@ -1,2 +1,3 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Str "\8220hi\8221\8216hi\8217\61623\945\228"]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para [ Str "\8220hi\8221\8216hi\8217\61623\945\228" ] ]
diff --git a/test/tables-rstsubset.native b/test/tables-rstsubset.native
index 2536ff954..dce2c9406 100644
--- a/test/tables-rstsubset.native
+++ b/test/tables-rstsubset.native
@@ -1,301 +1,913 @@
-[Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Simple",Space,Str "table",Space,Str "indented",Space,Str "two",Space,Str "spaces:"]
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."]])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiline",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Here\8217s",Space,Str "the",Space,Str "caption.",Space,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines."]])
- [(AlignDefault,ColWidth 0.1375)
- ,(AlignDefault,ColWidth 0.125)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.3375)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Centered",SoftBreak,Str "Header"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default",Space,Str "aligned"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",SoftBreak,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",SoftBreak,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",SoftBreak,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.1375)
- ,(AlignDefault,ColWidth 0.125)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.3375)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Centered",SoftBreak,Str "Header"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default",Space,Str "aligned"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",SoftBreak,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",SoftBreak,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",SoftBreak,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidth 0.1375)
- ,(AlignDefault,ColWidth 0.125)
- ,(AlignDefault,ColWidth 0.15)
- ,(AlignDefault,ColWidth 0.3375)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",SoftBreak,Str "spans",Space,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",SoftBreak,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",SoftBreak,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Para
+ [ Str "Simple", Space, Str "table", Space, Str "with", Space, Str "caption:" ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain
+ [ Str "Demonstration"
+ , Space
+ , Str "of"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "syntax."
+ ]
+ ]
+ )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "two"
+ , Space
+ , Str "spaces:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain
+ [ Str "Demonstration"
+ , Space
+ , Str "of"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "syntax."
+ ]
+ ]
+ )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Multiline"
+ , Space
+ , Str "table"
+ , Space
+ , Str "with"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "the"
+ , Space
+ , Str "caption."
+ , Space
+ , Str "It"
+ , Space
+ , Str "may"
+ , Space
+ , Str "span"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ )
+ [
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1375 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ,
+ ( AlignDefault, ColWidth 0.35 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Centered", SoftBreak, Str "Header" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default", Space, Str "aligned" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , SoftBreak
+ , Str "spans"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , SoftBreak
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Multiline"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1375 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ,
+ ( AlignDefault, ColWidth 0.35 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Centered", SoftBreak, Str "Header" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default", Space, Str "aligned" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , SoftBreak
+ , Str "spans"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , SoftBreak
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "column"
+ , Space
+ , Str "headers:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Multiline"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "column"
+ , Space
+ , Str "headers:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidth 0.15 )
+ ,
+ ( AlignDefault, ColWidth 0.1375 )
+ ,
+ ( AlignDefault, ColWidth 0.1625 )
+ ,
+ ( AlignDefault, ColWidth 0.35 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , SoftBreak
+ , Str "spans"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , SoftBreak
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+]
diff --git a/test/tables.haddock b/test/tables.haddock
index fcc26d27e..e6d5c8308 100644
--- a/test/tables.haddock
+++ b/test/tables.haddock
@@ -40,33 +40,33 @@ Demonstration of simple table syntax.
Multiline table with caption:
-+----------+---------+-----------+--------------------------+
-| Centered | Left | Right | Default aligned |
-| Header | Aligned | Aligned | |
-+==========+=========+===========+==========================+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| Centered | Left | Right | Default aligned |
+| Header | Aligned | Aligned | |
++===========+==========+============+===========================+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
Here’s the caption. It may span multiple lines.
Multiline table without caption:
-+----------+---------+-----------+--------------------------+
-| Centered | Left | Right | Default aligned |
-| Header | Aligned | Aligned | |
-+==========+=========+===========+==========================+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| Centered | Left | Right | Default aligned |
+| Header | Aligned | Aligned | |
++===========+==========+============+===========================+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
Table without column headers:
@@ -80,11 +80,11 @@ Table without column headers:
Multiline table without column headers:
-+----------+---------+-----------+--------------------------+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
diff --git a/test/tables.markdown b/test/tables.markdown
index 7f89bfc08..97ffd82d7 100644
--- a/test/tables.markdown
+++ b/test/tables.markdown
@@ -28,33 +28,33 @@ Simple table indented two spaces:
Multiline table with caption:
- --------------------------------------------------------------
+ ---------------------------------------------------------------
Centered Left Right Default aligned
Header Aligned Aligned
- ----------- ---------- ------------ --------------------------
- First row 12.0 Example of a row that
- spans multiple lines.
+ ----------- ---------- ------------ ---------------------------
+ First row 12.0 Example of a row that spans
+ multiple lines.
Second row 5.0 Here's another one. Note
the blank line between
rows.
- --------------------------------------------------------------
+ ---------------------------------------------------------------
: Here's the caption. It may span multiple lines.
Multiline table without caption:
- --------------------------------------------------------------
+ ---------------------------------------------------------------
Centered Left Right Default aligned
Header Aligned Aligned
- ----------- ---------- ------------ --------------------------
- First row 12.0 Example of a row that
- spans multiple lines.
+ ----------- ---------- ------------ ---------------------------
+ First row 12.0 Example of a row that spans
+ multiple lines.
Second row 5.0 Here's another one. Note
the blank line between
rows.
- --------------------------------------------------------------
+ ---------------------------------------------------------------
Table without column headers:
@@ -66,11 +66,11 @@ Table without column headers:
Multiline table without column headers:
- ----------- ---------- ------------ --------------------------
- First row 12.0 Example of a row that
- spans multiple lines.
+ ----------- ---------- ------------ ---------------------------
+ First row 12.0 Example of a row that spans
+ multiple lines.
Second row 5.0 Here's another one. Note
the blank line between
rows.
- ----------- ---------- ------------ --------------------------
+ ----------- ---------- ------------ ---------------------------
diff --git a/test/tables.muse b/test/tables.muse
index 98e721cf0..6b3af561d 100644
--- a/test/tables.muse
+++ b/test/tables.muse
@@ -23,24 +23,24 @@ Simple table indented two spaces:
Multiline table with caption:
-+----------+---------+-----------+--------------------------+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
Multiline table without caption:
-+----------+---------+-----------+--------------------------+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
Table without column headers:
12 | 12 | 12 | 12
@@ -49,11 +49,11 @@ Table without column headers:
Multiline table without column headers:
-+----------+---------+-----------+--------------------------+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
diff --git a/test/tables.native b/test/tables.native
index dc74826e0..c3a2537cb 100644
--- a/test/tables.native
+++ b/test/tables.native
@@ -1,293 +1,891 @@
-[Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,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 ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Simple",Space,Str "table",Space,Str "indented",Space,Str "two",Space,Str "spaces:"]
-,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 ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Center"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiline",Space,Str "table",Space,Str "with",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [Plain [Str "Here\8217s",Space,Str "the",Space,Str "caption.",SoftBreak,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines."]])
- [(AlignCenter,ColWidth 0.15)
- ,(AlignLeft,ColWidth 0.1375)
- ,(AlignRight,ColWidth 0.1625)
- ,(AlignLeft,ColWidth 0.35)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Centered",SoftBreak,Str "Header"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default",Space,Str "aligned"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",SoftBreak,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",SoftBreak,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "caption:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidth 0.15)
- ,(AlignLeft,ColWidth 0.1375)
- ,(AlignRight,ColWidth 0.1625)
- ,(AlignLeft,ColWidth 0.35)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Centered",SoftBreak,Str "Header"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Left",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Right",SoftBreak,Str "Aligned"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Default",Space,Str "aligned"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",SoftBreak,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",SoftBreak,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "123"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidth 0.15)
- ,(AlignLeft,ColWidth 0.1375)
- ,(AlignRight,ColWidth 0.1625)
- ,(AlignDefault,ColWidth 0.35)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "First"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "12.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Example",Space,Str "of",Space,Str "a",Space,Str "row",Space,Str "that",Space,Str "spans",SoftBreak,Str "multiple",Space,Str "lines."]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Second"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "row"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5.0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Here\8217s",Space,Str "another",Space,Str "one.",Space,Str "Note",SoftBreak,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]])]
- (TableFoot ("",[],[])
- [])]
+[ Para
+ [ Str "Simple", Space, Str "table", Space, Str "with", Space, Str "caption:" ]
+, 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
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Simple"
+ , Space
+ , Str "table"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "two"
+ , Space
+ , Str "spaces:"
+ ]
+, 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
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Center" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Multiline"
+ , Space
+ , Str "table"
+ , Space
+ , Str "with"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "the"
+ , Space
+ , Str "caption."
+ , SoftBreak
+ , Str "It"
+ , Space
+ , Str "may"
+ , Space
+ , Str "span"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ )
+ [
+ ( AlignCenter, ColWidth 0.15 )
+ ,
+ ( AlignLeft, ColWidth 0.1375 )
+ ,
+ ( AlignRight, ColWidth 0.1625 )
+ ,
+ ( AlignLeft, ColWidth 0.35 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Centered", SoftBreak, Str "Header" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default", Space, Str "aligned" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , Space
+ , Str "spans"
+ , SoftBreak
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , Space
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Multiline"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "caption:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidth 0.15 )
+ ,
+ ( AlignLeft, ColWidth 0.1375 )
+ ,
+ ( AlignRight, ColWidth 0.1625 )
+ ,
+ ( AlignLeft, ColWidth 0.35 )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Centered", SoftBreak, Str "Header" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Left", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Right", SoftBreak, Str "Aligned" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Default", Space, Str "aligned" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , Space
+ , Str "spans"
+ , SoftBreak
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , Space
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "column"
+ , Space
+ , Str "headers:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignRight, ColWidthDefault )
+ ,
+ ( AlignLeft, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignRight, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "123" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+, Para
+ [ Str "Multiline"
+ , Space
+ , Str "table"
+ , Space
+ , Str "without"
+ , Space
+ , Str "column"
+ , Space
+ , Str "headers:"
+ ]
+, Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidth 0.15 )
+ ,
+ ( AlignLeft, ColWidth 0.1375 )
+ ,
+ ( AlignRight, ColWidth 0.1625 )
+ ,
+ ( AlignDefault, ColWidth 0.35 )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "First" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "12.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "row"
+ , Space
+ , Str "that"
+ , Space
+ , Str "spans"
+ , SoftBreak
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Second" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "row" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5.0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "another"
+ , Space
+ , Str "one."
+ , Space
+ , Str "Note"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , Space
+ , Str "rows."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+]
diff --git a/test/tables.opendocument b/test/tables.opendocument
index cda121dd4..5216dc613 100644
--- a/test/tables.opendocument
+++ b/test/tables.opendocument
@@ -201,8 +201,8 @@ syntax.
Multiline table with
caption:
-Here’s the caption. It may span
-multiple lines.
+Here’s the caption. It may span multiple
+lines.
diff --git a/test/tables.plain b/test/tables.plain
index e46317a6f..f1d304cda 100644
--- a/test/tables.plain
+++ b/test/tables.plain
@@ -28,33 +28,33 @@ Simple table indented two spaces:
Multiline table with caption:
- --------------------------------------------------------------
+ ---------------------------------------------------------------
Centered Left Right Default aligned
Header Aligned Aligned
- ----------- ---------- ------------ --------------------------
- First row 12.0 Example of a row that
- spans multiple lines.
+ ----------- ---------- ------------ ---------------------------
+ First row 12.0 Example of a row that spans
+ multiple lines.
Second row 5.0 Here’s another one. Note
the blank line between
rows.
- --------------------------------------------------------------
+ ---------------------------------------------------------------
: Here’s the caption. It may span multiple lines.
Multiline table without caption:
- --------------------------------------------------------------
+ ---------------------------------------------------------------
Centered Left Right Default aligned
Header Aligned Aligned
- ----------- ---------- ------------ --------------------------
- First row 12.0 Example of a row that
- spans multiple lines.
+ ----------- ---------- ------------ ---------------------------
+ First row 12.0 Example of a row that spans
+ multiple lines.
Second row 5.0 Here’s another one. Note
the blank line between
rows.
- --------------------------------------------------------------
+ ---------------------------------------------------------------
Table without column headers:
@@ -66,11 +66,11 @@ Table without column headers:
Multiline table without column headers:
- ----------- ---------- ------------ --------------------------
- First row 12.0 Example of a row that
- spans multiple lines.
+ ----------- ---------- ------------ ---------------------------
+ First row 12.0 Example of a row that spans
+ multiple lines.
Second row 5.0 Here’s another one. Note
the blank line between
rows.
- ----------- ---------- ------------ --------------------------
+ ----------- ---------- ------------ ---------------------------
diff --git a/test/tables.rst b/test/tables.rst
index 660df61d4..4b475c0b6 100644
--- a/test/tables.rst
+++ b/test/tables.rst
@@ -36,31 +36,31 @@ Multiline table with caption:
.. table:: Here’s the caption. It may span multiple lines.
- +----------+---------+-----------+--------------------------+
- | Centered | Left | Right | Default aligned |
- | Header | Aligned | Aligned | |
- +==========+=========+===========+==========================+
- | First | row | 12.0 | Example of a row that |
- | | | | spans multiple lines. |
- +----------+---------+-----------+--------------------------+
- | Second | row | 5.0 | Here’s another one. Note |
- | | | | the blank line between |
- | | | | rows. |
- +----------+---------+-----------+--------------------------+
+ +-----------+----------+------------+---------------------------+
+ | Centered | Left | Right | Default aligned |
+ | Header | Aligned | Aligned | |
+ +===========+==========+============+===========================+
+ | First | row | 12.0 | Example of a row that |
+ | | | | spans multiple lines. |
+ +-----------+----------+------------+---------------------------+
+ | Second | row | 5.0 | Here’s another one. Note |
+ | | | | the blank line between |
+ | | | | rows. |
+ +-----------+----------+------------+---------------------------+
Multiline table without caption:
-+----------+---------+-----------+--------------------------+
-| Centered | Left | Right | Default aligned |
-| Header | Aligned | Aligned | |
-+==========+=========+===========+==========================+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| Centered | Left | Right | Default aligned |
+| Header | Aligned | Aligned | |
++===========+==========+============+===========================+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
Table without column headers:
@@ -72,11 +72,11 @@ Table without column headers:
Multiline table without column headers:
-+----------+---------+-----------+--------------------------+
-| First | row | 12.0 | Example of a row that |
-| | | | spans multiple lines. |
-+----------+---------+-----------+--------------------------+
-| Second | row | 5.0 | Here’s another one. Note |
-| | | | the blank line between |
-| | | | rows. |
-+----------+---------+-----------+--------------------------+
++-----------+----------+------------+---------------------------+
+| First | row | 12.0 | Example of a row that |
+| | | | spans multiple lines. |
++-----------+----------+------------+---------------------------+
+| Second | row | 5.0 | Here’s another one. Note |
+| | | | the blank line between |
+| | | | rows. |
++-----------+----------+------------+---------------------------+
diff --git a/test/tables/planets.latex b/test/tables/planets.latex
index b22c3adeb..1e703143d 100644
--- a/test/tables/planets.latex
+++ b/test/tables/planets.latex
@@ -18,13 +18,13 @@
& & Earth & 5.97 & 12,756 & 5514 & 9.8 & 24.0 & 149.6 & 15 & 1 & Our world \\
& & Mars & 0.642 & 6,792 & 3933 & 3.7 & 24.7 & 227.9 & -65 & 2 & The red
planet \\
-\multirow{4}{*}{Jovian planets} & \multirow{2}{*}{Gas giants} & Jupiter & 1898
-& 142,984 & 1326 & 23.1 & 9.9 & 778.6 & -110 & 67 & The largest planet \\
+\multirow{4}{*}{Jovian planets} & \multirow{2}{*}{Gas giants} & Jupiter & 1898 &
+142,984 & 1326 & 23.1 & 9.9 & 778.6 & -110 & 67 & The largest planet \\
& & Saturn & 568 & 120,536 & 687 & 9.0 & 10.7 & 1433.5 & -140 & 62 & \\
& \multirow{2}{*}{Ice giants} & Uranus & 86.8 & 51,118 & 1271 & 8.7 & 17.2 &
2872.5 & -195 & 27 & \\
& & Neptune & 102 & 49,528 & 1638 & 11.0 & 16.1 & 4495.1 & -200 & 14 & \\
-\multicolumn{2}{c}{Dwarf planets} & Pluto & 0.0146 & 2,370 & 2095 & 0.7 &
-153.3 & 5906.4 & -225 & 5 & Declassified as a planet in 2006. \\
+\multicolumn{2}{c}{Dwarf planets} & Pluto & 0.0146 & 2,370 & 2095 & 0.7 & 153.3
+& 5906.4 & -225 & 5 & Declassified as a planet in 2006. \\
\bottomrule
\end{longtable}
diff --git a/test/testsuite.native b/test/testsuite.native
index f9132c797..d6b91ca69 100644
--- a/test/testsuite.native
+++ b/test/testsuite.native
@@ -1,409 +1,2491 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
-[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",SoftBreak,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
-,HorizontalRule
-,Header 1 ("headers",[],[]) [Str "Headers"]
-,Header 2 ("level-2-with-an-embedded-link",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link ("",[],[]) [Str "embedded",Space,Str "link"] ("/url","")]
-,Header 3 ("level-3-with-emphasis",[],[]) [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
-,Header 4 ("level-4",[],[]) [Str "Level",Space,Str "4"]
-,Header 5 ("level-5",[],[]) [Str "Level",Space,Str "5"]
-,Header 1 ("level-1",[],[]) [Str "Level",Space,Str "1"]
-,Header 2 ("level-2-with-emphasis",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
-,Header 3 ("level-3",[],[]) [Str "Level",Space,Str "3"]
-,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
-,Header 2 ("level-2",[],[]) [Str "Level",Space,Str "2"]
-,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
-,HorizontalRule
-,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
-,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",SoftBreak,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",SoftBreak,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",SoftBreak,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",SoftBreak,Str "list",Space,Str "item."]
-,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",SoftBreak,Str "*",Space,Str "criminey."]
-,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."]
-,HorizontalRule
-,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
-,Para [Str "E-mail",Space,Str "style:"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",SoftBreak,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
-,BlockQuote
- [Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
- ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
- ,Para [Str "A",Space,Str "list:"]
- ,OrderedList (1,Decimal,Period)
- [[Plain [Str "item",Space,Str "one"]]
- ,[Plain [Str "item",Space,Str "two"]]]
- ,Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
- ,BlockQuote
- [Para [Str "nested"]]
- ,BlockQuote
- [Para [Str "nested"]]]
-,Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "block",Space,Str "quote:",Space,Str "2",SoftBreak,Str ">",Space,Str "1."]
-,Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
-,HorizontalRule
-,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
-,Para [Str "And:"]
-,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
-,HorizontalRule
-,Header 1 ("lists",[],[]) [Str "Lists"]
-,Header 2 ("unordered",[],[]) [Str "Unordered"]
-,Para [Str "Asterisks",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "asterisk",Space,Str "1"]]
- ,[Plain [Str "asterisk",Space,Str "2"]]
- ,[Plain [Str "asterisk",Space,Str "3"]]]
-,Para [Str "Asterisks",Space,Str "loose:"]
-,BulletList
- [[Para [Str "asterisk",Space,Str "1"]]
- ,[Para [Str "asterisk",Space,Str "2"]]
- ,[Para [Str "asterisk",Space,Str "3"]]]
-,Para [Str "Pluses",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "Plus",Space,Str "1"]]
- ,[Plain [Str "Plus",Space,Str "2"]]
- ,[Plain [Str "Plus",Space,Str "3"]]]
-,Para [Str "Pluses",Space,Str "loose:"]
-,BulletList
- [[Para [Str "Plus",Space,Str "1"]]
- ,[Para [Str "Plus",Space,Str "2"]]
- ,[Para [Str "Plus",Space,Str "3"]]]
-,Para [Str "Minuses",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "Minus",Space,Str "1"]]
- ,[Plain [Str "Minus",Space,Str "2"]]
- ,[Plain [Str "Minus",Space,Str "3"]]]
-,Para [Str "Minuses",Space,Str "loose:"]
-,BulletList
- [[Para [Str "Minus",Space,Str "1"]]
- ,[Para [Str "Minus",Space,Str "2"]]
- ,[Para [Str "Minus",Space,Str "3"]]]
-,Header 2 ("ordered",[],[]) [Str "Ordered"]
-,Para [Str "Tight:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second"]]
- ,[Plain [Str "Third"]]]
-,Para [Str "and:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "One"]]
- ,[Plain [Str "Two"]]
- ,[Plain [Str "Three"]]]
-,Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second"]]
- ,[Para [Str "Third"]]]
-,Para [Str "and",Space,Str "using",Space,Str "spaces:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "One"]]
- ,[Para [Str "Two"]]
- ,[Para [Str "Three"]]]
-,Para [Str "Multiple",Space,Str "paragraphs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
- ,Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog\8217s",SoftBreak,Str "back."]]
- ,[Para [Str "Item",Space,Str "2."]]
- ,[Para [Str "Item",Space,Str "3."]]]
-,Header 2 ("nested",[],[]) [Str "Nested"]
-,BulletList
- [[Plain [Str "Tab"]
- ,BulletList
- [[Plain [Str "Tab"]
- ,BulletList
- [[Plain [Str "Tab"]]]]]]]
-,Para [Str "Here\8217s",Space,Str "another:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second:"]
- ,BulletList
- [[Plain [Str "Fee"]]
- ,[Plain [Str "Fie"]]
- ,[Plain [Str "Foe"]]]]
- ,[Plain [Str "Third"]]]
-,Para [Str "Same",Space,Str "thing",Space,Str "but",Space,Str "with",Space,Str "paragraphs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second:"]
- ,BulletList
- [[Plain [Str "Fee"]]
- ,[Plain [Str "Fie"]]
- ,[Plain [Str "Foe"]]]]
- ,[Para [Str "Third"]]]
-,Header 2 ("tabs-and-spaces",[],[]) [Str "Tabs",Space,Str "and",Space,Str "spaces"]
-,BulletList
- [[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "tabs"]]
- ,[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "spaces"]
- ,BulletList
- [[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "tabs"]]
- ,[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "spaces"]]]]]
-,Header 2 ("fancy-list-markers",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
-,OrderedList (2,Decimal,TwoParens)
- [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
- ,[Para [Str "and",Space,Str "now",Space,Str "3"]
- ,Para [Str "with",Space,Str "a",Space,Str "continuation"]
- ,OrderedList (4,LowerRoman,Period)
- [[Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",SoftBreak,Str "starting",Space,Str "with",Space,Str "4"]]
- ,[Plain [Str "more",Space,Str "items"]
- ,OrderedList (1,UpperAlpha,TwoParens)
- [[Plain [Str "a",Space,Str "subsublist"]]
- ,[Plain [Str "a",Space,Str "subsublist"]]]]]]]
-,Para [Str "Nesting:"]
-,OrderedList (1,UpperAlpha,Period)
- [[Plain [Str "Upper",Space,Str "Alpha"]
- ,OrderedList (1,UpperRoman,Period)
- [[Plain [Str "Upper",Space,Str "Roman."]
- ,OrderedList (6,Decimal,TwoParens)
- [[Plain [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
- ,OrderedList (3,LowerAlpha,OneParen)
- [[Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
-,Para [Str "Autonumbering:"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Autonumber."]]
- ,[Plain [Str "More."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Nested."]]]]]
-,Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"]
-,Para [Str "M.A.\160\&2007"]
-,Para [Str "B.",Space,Str "Williams"]
-,HorizontalRule
-,Header 1 ("definition-lists",[],[]) [Str "Definition",Space,Str "Lists"]
-,Para [Str "Tight",Space,Str "using",Space,Str "spaces:"]
-,DefinitionList
- [([Str "apple"],
- [[Plain [Str "red",Space,Str "fruit"]]])
- ,([Str "orange"],
- [[Plain [Str "orange",Space,Str "fruit"]]])
- ,([Str "banana"],
- [[Plain [Str "yellow",Space,Str "fruit"]]])]
-,Para [Str "Tight",Space,Str "using",Space,Str "tabs:"]
-,DefinitionList
- [([Str "apple"],
- [[Plain [Str "red",Space,Str "fruit"]]])
- ,([Str "orange"],
- [[Plain [Str "orange",Space,Str "fruit"]]])
- ,([Str "banana"],
- [[Plain [Str "yellow",Space,Str "fruit"]]])]
-,Para [Str "Loose:"]
-,DefinitionList
- [([Str "apple"],
- [[Para [Str "red",Space,Str "fruit"]]])
- ,([Str "orange"],
- [[Para [Str "orange",Space,Str "fruit"]]])
- ,([Str "banana"],
- [[Para [Str "yellow",Space,Str "fruit"]]])]
-,Para [Str "Multiple",Space,Str "blocks",Space,Str "with",Space,Str "italics:"]
-,DefinitionList
- [([Emph [Str "apple"]],
- [[Para [Str "red",Space,Str "fruit"]
- ,Para [Str "contains",Space,Str "seeds,",SoftBreak,Str "crisp,",Space,Str "pleasant",Space,Str "to",Space,Str "taste"]]])
- ,([Emph [Str "orange"]],
- [[Para [Str "orange",Space,Str "fruit"]
- ,CodeBlock ("",[],[]) "{ orange code block }"
- ,BlockQuote
- [Para [Str "orange",Space,Str "block",Space,Str "quote"]]]])]
-,Para [Str "Multiple",Space,Str "definitions,",Space,Str "tight:"]
-,DefinitionList
- [([Str "apple"],
- [[Plain [Str "red",Space,Str "fruit"]]
- ,[Plain [Str "computer"]]])
- ,([Str "orange"],
- [[Plain [Str "orange",Space,Str "fruit"]]
- ,[Plain [Str "bank"]]])]
-,Para [Str "Multiple",Space,Str "definitions,",Space,Str "loose:"]
-,DefinitionList
- [([Str "apple"],
- [[Para [Str "red",Space,Str "fruit"]]
- ,[Para [Str "computer"]]])
- ,([Str "orange"],
- [[Para [Str "orange",Space,Str "fruit"]]
- ,[Para [Str "bank"]]])]
-,Para [Str "Blank",Space,Str "line",Space,Str "after",Space,Str "term,",Space,Str "indented",Space,Str "marker,",Space,Str "alternate",Space,Str "markers:"]
-,DefinitionList
- [([Str "apple"],
- [[Para [Str "red",Space,Str "fruit"]]
- ,[Para [Str "computer"]]])
- ,([Str "orange"],
- [[Para [Str "orange",Space,Str "fruit"]
- ,OrderedList (1,Decimal,Period)
- [[Plain [Str "sublist"]]
- ,[Plain [Str "sublist"]]]]])]
-,Header 1 ("html-blocks",[],[]) [Str "HTML",Space,Str "Blocks"]
-,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
-,Div ("",[],[])
- [Plain [Str "foo"]]
-,Para [Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
-,Div ("",[],[])
- [Div ("",[],[])
- [Div ("",[],[])
- [Para [Str "foo"]]]
- ,Div ("",[],[])
- [Plain [Str "bar"]]]
-,Para [Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
-,RawBlock (Format "html") ""
-,RawBlock (Format "html") ""
-,RawBlock (Format "html") ""
-,Plain [Str "This",Space,Str "is",Space,Emph [Str "emphasized"]]
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") ""
-,Plain [Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"]]
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") "
"
-,RawBlock (Format "html") ""
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "simple",Space,Str "block:"]
-,Div ("",[],[])
- [Para [Str "foo"]]
-,Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"]
-,CodeBlock ("",[],[]) "\n foo\n
"
-,Para [Str "As",Space,Str "should",Space,Str "this:"]
-,CodeBlock ("",[],[]) "foo
"
-,Para [Str "Now,",Space,Str "nested:"]
-,Div ("",[],[])
- [Div ("",[],[])
- [Div ("",[],[])
- [Plain [Str "foo"]]]]
-,Para [Str "This",Space,Str "should",Space,Str "just",Space,Str "be",Space,Str "an",Space,Str "HTML",Space,Str "comment:"]
-,RawBlock (Format "html") ""
-,Para [Str "Multiline:"]
-,RawBlock (Format "html") ""
-,RawBlock (Format "html") ""
-,Para [Str "Code",Space,Str "block:"]
-,CodeBlock ("",[],[]) ""
-,Para [Str "Just",Space,Str "plain",Space,Str "comment,",Space,Str "with",Space,Str "trailing",Space,Str "spaces",Space,Str "on",Space,Str "the",Space,Str "line:"]
-,RawBlock (Format "html") ""
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) " "
-,Para [Str "Hr\8217s:"]
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,HorizontalRule
-,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
-,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
-,Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
-,Para [Str "An",Space,Emph [Link ("",[],[]) [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
-,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
-,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
-,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
-,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
-,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "",Str "."]
-,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]]
-,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello\160there"],Str "."]
-,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many\160of\160them"],Str "O."]
-,Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",SoftBreak,Str "because",Space,Str "of",Space,Str "the",Space,Str "unescaped",Space,Str "spaces:",Space,Str "a^b",Space,Str "c^d,",Space,Str "a~b",Space,Str "c~d."]
-,HorizontalRule
-,Header 1 ("smart-quotes-ellipses-dashes",[],[]) [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
-,Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Quoted DoubleQuote [Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name."]]
-,Para [Quoted SingleQuote [Str "A"],Str ",",Space,Quoted SingleQuote [Str "B"],Str ",",Space,Str "and",Space,Quoted SingleQuote [Str "C"],Space,Str "are",Space,Str "letters."]
-,Para [Quoted SingleQuote [Str "Oak,"],Space,Quoted SingleQuote [Str "elm,"],Space,Str "and",Space,Quoted SingleQuote [Str "beech"],Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",SoftBreak,Str "So",Space,Str "is",Space,Quoted SingleQuote [Str "pine."]]
-,Para [Quoted SingleQuote [Str "He",Space,Str "said,",Space,Quoted DoubleQuote [Str "I",Space,Str "want",Space,Str "to",Space,Str "go."]],Space,Str "Were",Space,Str "you",Space,Str "alive",Space,Str "in",Space,Str "the",SoftBreak,Str "70\8217s?"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "quoted",Space,Quoted SingleQuote [Code ("",[],[]) "code"],Space,Str "and",Space,Str "a",Space,Quoted DoubleQuote [Link ("",[],[]) [Str "quoted",Space,Str "link"] ("http://example.com/?foo=1&bar=2","")],Str "."]
-,Para [Str "Some",Space,Str "dashes:",Space,Str "one\8212two",Space,Str "\8212",Space,Str "three\8212four",Space,Str "\8212",Space,Str "five."]
-,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
-,Para [Str "Ellipses\8230and\8230and\8230."]
-,HorizontalRule
-,Header 1 ("latex",[],[]) [Str "LaTeX"]
-,BulletList
- [[Plain [RawInline (Format "tex") "\\cite[22-23]{smith.1899}"]]
- ,[Plain [Math InlineMath "2+2=4"]]
- ,[Plain [Math InlineMath "x \\in y"]]
- ,[Plain [Math InlineMath "\\alpha \\wedge \\omega"]]
- ,[Plain [Math InlineMath "223"]]
- ,[Plain [Math InlineMath "p",Str "-Tree"]]
- ,[Plain [Str "Here\8217s",Space,Str "some",Space,Str "display",Space,Str "math:",SoftBreak,Math DisplayMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"]]
- ,[Plain [Str "Here\8217s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",Space,Math InlineMath "\\alpha + \\omega \\times x^2",Str "."]]]
-,Para [Str "These",Space,Str "shouldn\8217t",Space,Str "be",Space,Str "math:"]
-,BulletList
- [[Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code ("",[],[]) "$e = mc^2$",Str "."]]
- ,[Plain [Str "$22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money.",Space,Str "So",Space,Str "is",Space,Str "$34,000.",SoftBreak,Str "(It",Space,Str "worked",Space,Str "if",Space,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized.)"]]
- ,[Plain [Str "Shoes",Space,Str "($20)",Space,Str "and",Space,Str "socks",Space,Str "($5)."]]
- ,[Plain [Str "Escaped",Space,Code ("",[],[]) "$",Str ":",Space,Str "$73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23$."]]]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
-,RawBlock (Format "tex") "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
-,HorizontalRule
-,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
-,BulletList
- [[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
- ,[Plain [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
- ,[Plain [Str "section:",Space,Str "\167"]]
- ,[Plain [Str "set",Space,Str "membership:",Space,Str "\8712"]]
- ,[Plain [Str "copyright:",Space,Str "\169"]]]
-,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
-,Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it."]
-,Para [Str "This",Space,Str "&",Space,Str "that."]
-,Para [Str "4",Space,Str "<",Space,Str "5."]
-,Para [Str "6",Space,Str ">",Space,Str "5."]
-,Para [Str "Backslash:",Space,Str "\\"]
-,Para [Str "Backtick:",Space,Str "`"]
-,Para [Str "Asterisk:",Space,Str "*"]
-,Para [Str "Underscore:",Space,Str "_"]
-,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
-,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
-,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
-,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
-,Para [Str "Left",Space,Str "paren:",Space,Str "("]
-,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
-,Para [Str "Greater-than:",Space,Str ">"]
-,Para [Str "Hash:",Space,Str "#"]
-,Para [Str "Period:",Space,Str "."]
-,Para [Str "Bang:",Space,Str "!"]
-,Para [Str "Plus:",Space,Str "+"]
-,Para [Str "Minus:",Space,Str "-"]
-,HorizontalRule
-,Header 1 ("links",[],[]) [Str "Links"]
-,Header 2 ("explicit",[],[]) [Str "Explicit"]
-,Para [Str "Just",Space,Str "a",Space,Link ("",[],[]) [Str "URL"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title"),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title preceded by two spaces"),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title preceded by a tab"),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title with \"quotes\" in it")]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title with single quotes")]
-,Para [Link ("",[],[]) [Str "with_underscore"] ("/url/with_underscore","")]
-,Para [Link ("",[],[]) [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
-,Para [Link ("",[],[]) [Str "Empty"] ("",""),Str "."]
-,Header 2 ("reference",[],[]) [Str "Reference"]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
-,Para [Str "With",Space,Link ("",[],[]) [Str "embedded",Space,Str "[brackets]"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "b"] ("/url/",""),Space,Str "by",Space,Str "itself",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "link."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "once"] ("/url",""),Str "."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "twice"] ("/url",""),Str "."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "thrice"] ("/url",""),Str "."]
-,Para [Str "This",Space,Str "should",Space,Str "[not][]",Space,Str "be",Space,Str "a",Space,Str "link."]
-,CodeBlock ("",[],[]) "[not]: /url"
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/","Title with \"quotes\" inside"),Str "."]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "biz"] ("/url/","Title with \"quote\" inside"),Str "."]
-,Header 2 ("with-ampersands",[],[]) [Str "With",Space,Str "ampersands"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Link ("",[],[]) [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link ("",[],[]) [Str "AT&T"] ("http://att.com/","AT&T"),Str "."]
-,Para [Str "Here\8217s",Space,Str "an",Space,Link ("",[],[]) [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "an",Space,Link ("",[],[]) [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
-,Header 2 ("autolinks",[],[]) [Str "Autolinks"]
-,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link ("",["uri"],[]) [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
-,BulletList
- [[Plain [Str "In",Space,Str "a",Space,Str "list?"]]
- ,[Plain [Link ("",["uri"],[]) [Str "http://example.com/"] ("http://example.com/","")]]
- ,[Plain [Str "It",Space,Str "should."]]]
-,Para [Str "An",Space,Str "e-mail",Space,Str "address:",Space,Link ("",["email"],[]) [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
-,BlockQuote
- [Para [Str "Blockquoted:",Space,Link ("",["uri"],[]) [Str "http://example.com/"] ("http://example.com/","")]]
-,Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code ("",[],[]) " "]
-,CodeBlock ("",[],[]) "or here: "
-,HorizontalRule
-,Header 1 ("images",[],[]) [Str "Images"]
-,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
-,Para [Image ("",[],[]) [Str "lalune"] ("lalune.jpg","fig:Voyage dans la Lune")]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image ("",[],[]) [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
-,HorizontalRule
-,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Note [Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "after",Space,Str "the",Space,Str "footnote",SoftBreak,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],Space,Str "and",Space,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",SoftBreak,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",SoftBreak,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",SoftBreak,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],SoftBreak,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",SoftBreak,Str "contains",Space,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",Space,Str "note.",Note [Para [Str "This",SoftBreak,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",SoftBreak,Link ("",[],[]) [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",SoftBreak,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
-,BlockQuote
- [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
-,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaList
+ [ MetaInlines
+ [ Str "John", Space, Str "MacFarlane" ]
+ , MetaInlines
+ [ Str "Anonymous" ]
+ ]
+ )
+ ,
+ ( "date"
+ , MetaInlines
+ [ Str "July", Space, Str "17,", Space, Str "2006" ]
+ )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Pandoc", Space, Str "Test", Space, Str "Suite" ]
+ )
+ ]
+ }
+ )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "set"
+ , Space
+ , Str "of"
+ , Space
+ , Str "tests"
+ , Space
+ , Str "for"
+ , Space
+ , Str "pandoc."
+ , Space
+ , Str "Most"
+ , Space
+ , Str "of"
+ , Space
+ , Str "them"
+ , Space
+ , Str "are"
+ , Space
+ , Str "adapted"
+ , Space
+ , Str "from"
+ , SoftBreak
+ , Str "John"
+ , Space
+ , Str "Gruber\8217s"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "test"
+ , Space
+ , Str "suite."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "headers", [], [] )
+ [ Str "Headers" ]
+ , Header 2
+ ( "level-2-with-an-embedded-link", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "link" ]
+ ( "/url", "" )
+ ]
+ , Header 3
+ ( "level-3-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "3"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Header 4
+ ( "level-4", [], [] )
+ [ Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "level-5", [], [] )
+ [ Str "Level", Space, Str "5" ]
+ , Header 1
+ ( "level-1", [], [] )
+ [ Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "level-2-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Header 3
+ ( "level-3", [], [] )
+ [ Str "Level", Space, Str "3" ]
+ , Para
+ [ Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ ]
+ , Header 2
+ ( "level-2", [], [] )
+ [ Str "Level", Space, Str "2" ]
+ , Para
+ [ Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "paragraphs", [], [] )
+ [ Str "Paragraphs" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "regular"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "In"
+ , Space
+ , Str "Markdown"
+ , Space
+ , Str "1.0.0"
+ , Space
+ , Str "and"
+ , Space
+ , Str "earlier."
+ , Space
+ , Str "Version"
+ , SoftBreak
+ , Str "8."
+ , Space
+ , Str "This"
+ , Space
+ , Str "line"
+ , Space
+ , Str "turns"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item."
+ , SoftBreak
+ , Str "Because"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard-wrapped"
+ , Space
+ , Str "line"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "middle"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "looked"
+ , Space
+ , Str "like"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "list"
+ , Space
+ , Str "item."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bullet."
+ , SoftBreak
+ , Str "*"
+ , Space
+ , Str "criminey."
+ ]
+ , Para
+ [ Str "There"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ , LineBreak
+ , Str "here."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "block-quotes", [], [] )
+ [ Str "Block", Space, Str "Quotes" ]
+ , Para
+ [ Str "E-mail", Space, Str "style:" ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ , SoftBreak
+ , Str "It"
+ , Space
+ , Str "is"
+ , Space
+ , Str "pretty"
+ , Space
+ , Str "short."
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Code"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "sub status {\n print \"working\";\n}"
+ , Para
+ [ Str "A", Space, Str "list:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "item", Space, Str "one" ] ]
+ ,
+ [ Plain [ Str "item", Space, Str "two" ] ]
+ ]
+ , Para
+ [ Str "Nested", Space, Str "block", Space, Str "quotes:" ]
+ , BlockQuote
+ [ Para [ Str "nested" ] ]
+ , BlockQuote
+ [ Para [ Str "nested" ] ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ , Space
+ , Str "2"
+ , SoftBreak
+ , Str ">"
+ , Space
+ , Str "1."
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "a"
+ , Space
+ , Str "following"
+ , Space
+ , Str "paragraph."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "Code", Space, Str "Blocks" ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
+ , HorizontalRule
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "Lists" ]
+ , Header 2
+ ( "unordered", [], [] )
+ [ Str "Unordered" ]
+ , Para
+ [ Str "Asterisks", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Asterisks", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Header 2
+ ( "ordered", [], [] )
+ [ Str "Ordered" ]
+ , Para
+ [ Str "Tight:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain [ Str "Second" ] ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "One" ] ]
+ ,
+ [ Plain [ Str "Two" ] ]
+ ,
+ [ Plain [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Loose", Space, Str "using", Space, Str "tabs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para [ Str "Second" ] ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and", Space, Str "using", Space, Str "spaces:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "One" ] ]
+ ,
+ [ Para [ Str "Two" ] ]
+ ,
+ [ Para [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "paragraphs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para
+ [ Str "Item"
+ , Space
+ , Str "1,"
+ , Space
+ , Str "graf"
+ , Space
+ , Str "one."
+ ]
+ , Para
+ [ Str "Item"
+ , Space
+ , Str "1."
+ , Space
+ , Str "graf"
+ , Space
+ , Str "two."
+ , Space
+ , Str "The"
+ , Space
+ , Str "quick"
+ , Space
+ , Str "brown"
+ , Space
+ , Str "fox"
+ , Space
+ , Str "jumped"
+ , Space
+ , Str "over"
+ , Space
+ , Str "the"
+ , Space
+ , Str "lazy"
+ , Space
+ , Str "dog\8217s"
+ , SoftBreak
+ , Str "back."
+ ]
+ ]
+ ,
+ [ Para [ Str "Item", Space, Str "2." ] ]
+ ,
+ [ Para [ Str "Item", Space, Str "3." ] ]
+ ]
+ , Header 2
+ ( "nested", [], [] )
+ [ Str "Nested" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Tab" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Tab" ]
+ , BulletList
+ [ [ Plain [ Str "Tab" ] ] ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s", Space, Str "another:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Fee" ] ]
+ ,
+ [ Plain [ Str "Fie" ] ]
+ ,
+ [ Plain [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "Same"
+ , Space
+ , Str "thing"
+ , Space
+ , Str "but"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paragraphs:"
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Fee" ] ]
+ ,
+ [ Plain [ Str "Fie" ] ]
+ ,
+ [ Plain [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "tabs-and-spaces", [], [] )
+ [ Str "Tabs", Space, Str "and", Space, Str "spaces" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tabs"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ ]
+ , BulletList
+ [
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "example"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tabs"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "example"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Header 2
+ ( "fancy-list-markers", [], [] )
+ [ Str "Fancy", Space, Str "list", Space, Str "markers" ]
+ , OrderedList
+ ( 2, Decimal, TwoParens )
+ [
+ [ Para [ Str "begins", Space, Str "with", Space, Str "2" ] ]
+ ,
+ [ Para
+ [ Str "and", Space, Str "now", Space, Str "3" ]
+ , Para
+ [ Str "with", Space, Str "a", Space, Str "continuation" ]
+ , OrderedList
+ ( 4, LowerRoman, Period )
+ [
+ [ Plain
+ [ Str "sublist"
+ , Space
+ , Str "with"
+ , Space
+ , Str "roman"
+ , Space
+ , Str "numerals,"
+ , SoftBreak
+ , Str "starting"
+ , Space
+ , Str "with"
+ , Space
+ , Str "4"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "more", Space, Str "items" ]
+ , OrderedList
+ ( 1, UpperAlpha, TwoParens )
+ [
+ [ Plain [ Str "a", Space, Str "subsublist" ] ]
+ ,
+ [ Plain [ Str "a", Space, Str "subsublist" ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Nesting:" ]
+ , OrderedList
+ ( 1, UpperAlpha, Period )
+ [
+ [ Plain
+ [ Str "Upper", Space, Str "Alpha" ]
+ , OrderedList
+ ( 1, UpperRoman, Period )
+ [
+ [ Plain
+ [ Str "Upper", Space, Str "Roman." ]
+ , OrderedList
+ ( 6, Decimal, TwoParens )
+ [
+ [ Plain
+ [ Str "Decimal"
+ , Space
+ , Str "start"
+ , Space
+ , Str "with"
+ , Space
+ , Str "6"
+ ]
+ , OrderedList
+ ( 3, LowerAlpha, OneParen )
+ [
+ [ Plain
+ [ Str "Lower"
+ , Space
+ , Str "alpha"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paren"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Autonumbering:" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Autonumber." ] ]
+ ,
+ [ Plain
+ [ Str "More." ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Plain [ Str "Nested." ] ] ]
+ ]
+ ]
+ , Para
+ [ Str "Should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item:"
+ ]
+ , Para
+ [ Str "M.A.\160\&2007" ]
+ , Para
+ [ Str "B.", Space, Str "Williams" ]
+ , HorizontalRule
+ , Header 1
+ ( "definition-lists", [], [] )
+ [ Str "Definition", Space, Str "Lists" ]
+ , Para
+ [ Str "Tight", Space, Str "using", Space, Str "spaces:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [ [ Plain [ Str "red", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [ [ Plain [ Str "orange", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "banana" ]
+ ,
+ [ [ Plain [ Str "yellow", Space, Str "fruit" ] ] ]
+ )
+ ]
+ , Para
+ [ Str "Tight", Space, Str "using", Space, Str "tabs:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [ [ Plain [ Str "red", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [ [ Plain [ Str "orange", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "banana" ]
+ ,
+ [ [ Plain [ Str "yellow", Space, Str "fruit" ] ] ]
+ )
+ ]
+ , Para
+ [ Str "Loose:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [ [ Para [ Str "red", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [ [ Para [ Str "orange", Space, Str "fruit" ] ] ]
+ )
+ ,
+ (
+ [ Str "banana" ]
+ ,
+ [ [ Para [ Str "yellow", Space, Str "fruit" ] ] ]
+ )
+ ]
+ , Para
+ [ Str "Multiple"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "with"
+ , Space
+ , Str "italics:"
+ ]
+ , DefinitionList
+ [
+ (
+ [ Emph [ Str "apple" ] ]
+ ,
+ [
+ [ Para
+ [ Str "red", Space, Str "fruit" ]
+ , Para
+ [ Str "contains"
+ , Space
+ , Str "seeds,"
+ , SoftBreak
+ , Str "crisp,"
+ , Space
+ , Str "pleasant"
+ , Space
+ , Str "to"
+ , Space
+ , Str "taste"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Emph [ Str "orange" ] ]
+ ,
+ [
+ [ Para
+ [ Str "orange", Space, Str "fruit" ]
+ , CodeBlock
+ ( "", [], [] ) "{ orange code block }"
+ , BlockQuote
+ [ Para
+ [ Str "orange", Space, Str "block", Space, Str "quote" ]
+ ]
+ ]
+ ]
+ )
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "definitions,", Space, Str "tight:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [
+ [ Plain [ Str "red", Space, Str "fruit" ] ]
+ ,
+ [ Plain [ Str "computer" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [
+ [ Plain [ Str "orange", Space, Str "fruit" ] ]
+ ,
+ [ Plain [ Str "bank" ] ]
+ ]
+ )
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "definitions,", Space, Str "loose:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [
+ [ Para [ Str "red", Space, Str "fruit" ] ]
+ ,
+ [ Para [ Str "computer" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [
+ [ Para [ Str "orange", Space, Str "fruit" ] ]
+ ,
+ [ Para [ Str "bank" ] ]
+ ]
+ )
+ ]
+ , Para
+ [ Str "Blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "after"
+ , Space
+ , Str "term,"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "marker,"
+ , Space
+ , Str "alternate"
+ , Space
+ , Str "markers:"
+ ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [
+ [ Para [ Str "red", Space, Str "fruit" ] ]
+ ,
+ [ Para [ Str "computer" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [
+ [ Para
+ [ Str "orange", Space, Str "fruit" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [ [ Plain [ Str "sublist" ] ], [ Plain [ Str "sublist" ] ] ]
+ ]
+ ]
+ )
+ ]
+ , Header 1
+ ( "html-blocks", [], [] )
+ [ Str "HTML", Space, Str "Blocks" ]
+ , Para
+ [ Str "Simple"
+ , Space
+ , Str "block"
+ , Space
+ , Str "on"
+ , Space
+ , Str "one"
+ , Space
+ , Str "line:"
+ ]
+ , Div
+ ( "", [], [] )
+ [ Plain [ Str "foo" ] ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "nested"
+ , Space
+ , Str "without"
+ , Space
+ , Str "indentation:"
+ ]
+ , Div
+ ( "", [], [] )
+ [ Div
+ ( "", [], [] )
+ [ Div ( "", [], [] ) [ Para [ Str "foo" ] ] ]
+ , Div
+ ( "", [], [] )
+ [ Plain [ Str "bar" ] ]
+ ]
+ , Para
+ [ Str "Interpreted"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "table:"
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , RawBlock
+ ( Format "html" ) ""
+ , RawBlock
+ ( Format "html" ) ""
+ , Plain
+ [ Str "This", Space, Str "is", Space, Emph [ Str "emphasized" ] ]
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) ""
+ , Plain
+ [ Str "And"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ ]
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) "
"
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "block:"
+ ]
+ , Div
+ ( "", [], [] )
+ [ Para [ Str "foo" ] ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "code"
+ , Space
+ , Str "block,"
+ , Space
+ , Str "though:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "\n foo\n
"
+ , Para
+ [ Str "As", Space, Str "should", Space, Str "this:" ]
+ , CodeBlock
+ ( "", [], [] ) "foo
"
+ , Para
+ [ Str "Now,", Space, Str "nested:" ]
+ , Div
+ ( "", [], [] )
+ [ Div
+ ( "", [], [] )
+ [ Div ( "", [], [] ) [ Plain [ Str "foo" ] ] ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "just"
+ , Space
+ , Str "be"
+ , Space
+ , Str "an"
+ , Space
+ , Str "HTML"
+ , Space
+ , Str "comment:"
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Multiline:" ]
+ , RawBlock
+ ( Format "html" ) ""
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Code", Space, Str "block:" ]
+ , CodeBlock
+ ( "", [], [] ) ""
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "plain"
+ , Space
+ , Str "comment,"
+ , Space
+ , Str "with"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line:"
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( "", [], [] ) " "
+ , Para
+ [ Str "Hr\8217s:" ]
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , HorizontalRule
+ , Header 1
+ ( "inline-markup", [], [] )
+ [ Str "Inline", Space, Str "Markup" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "emphasized" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Emph
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Strong
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "An"
+ , Space
+ , Emph
+ [ Link
+ ( "", [], [] )
+ [ Str "emphasized", Space, Str "link" ]
+ ( "/url", "" )
+ ]
+ , Str "."
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word."
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "code:"
+ , Space
+ , Code
+ ( "", [], [] ) ">"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) ""
+ , Str "."
+ ]
+ , Para
+ [ Strikeout
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "strikeout" ]
+ , Str "."
+ ]
+ ]
+ , Para
+ [ Str "Superscripts:"
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "bc" ]
+ , Str "d"
+ , Space
+ , Str "a"
+ , Superscript
+ [ Emph [ Str "hello" ] ]
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "hello\160there" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Subscripts:"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "2" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "23" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "many\160of\160them" ]
+ , Str "O."
+ ]
+ , Para
+ [ Str "These"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "superscripts"
+ , Space
+ , Str "or"
+ , Space
+ , Str "subscripts,"
+ , SoftBreak
+ , Str "because"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "unescaped"
+ , Space
+ , Str "spaces:"
+ , Space
+ , Str "a^b"
+ , Space
+ , Str "c^d,"
+ , Space
+ , Str "a~b"
+ , Space
+ , Str "c~d."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "smart-quotes-ellipses-dashes", [], [] )
+ [ Str "Smart"
+ , Space
+ , Str "quotes,"
+ , Space
+ , Str "ellipses,"
+ , Space
+ , Str "dashes"
+ ]
+ , Para
+ [ Quoted DoubleQuote
+ [ Str "Hello," ]
+ , Space
+ , Str "said"
+ , Space
+ , Str "the"
+ , Space
+ , Str "spider."
+ , Space
+ , Quoted DoubleQuote
+ [ Quoted SingleQuote
+ [ Str "Shelob" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "my"
+ , Space
+ , Str "name."
+ ]
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "A" ]
+ , Str ","
+ , Space
+ , Quoted SingleQuote
+ [ Str "B" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Quoted SingleQuote
+ [ Str "C" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "letters."
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "Oak," ]
+ , Space
+ , Quoted SingleQuote
+ [ Str "elm," ]
+ , Space
+ , Str "and"
+ , Space
+ , Quoted SingleQuote
+ [ Str "beech" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "names"
+ , Space
+ , Str "of"
+ , Space
+ , Str "trees."
+ , SoftBreak
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Quoted SingleQuote
+ [ Str "pine." ]
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "He"
+ , Space
+ , Str "said,"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "I"
+ , Space
+ , Str "want"
+ , Space
+ , Str "to"
+ , Space
+ , Str "go."
+ ]
+ ]
+ , Space
+ , Str "Were"
+ , Space
+ , Str "you"
+ , Space
+ , Str "alive"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "70\8217s?"
+ ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Str "quoted"
+ , Space
+ , Quoted SingleQuote
+ [ Code ( "", [], [] ) "code" ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "a"
+ , Space
+ , Quoted DoubleQuote
+ [ Link
+ ( "", [], [] )
+ [ Str "quoted", Space, Str "link" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Some"
+ , Space
+ , Str "dashes:"
+ , Space
+ , Str "one\8212two"
+ , Space
+ , Str "\8212"
+ , Space
+ , Str "three\8212four"
+ , Space
+ , Str "\8212"
+ , Space
+ , Str "five."
+ ]
+ , Para
+ [ Str "Dashes"
+ , Space
+ , Str "between"
+ , Space
+ , Str "numbers:"
+ , Space
+ , Str "5\8211\&7,"
+ , Space
+ , Str "255\8211\&66,"
+ , Space
+ , Str "1987\8211\&1999."
+ ]
+ , Para
+ [ Str "Ellipses\8230and\8230and\8230." ]
+ , HorizontalRule
+ , Header 1
+ ( "latex", [], [] )
+ [ Str "LaTeX" ]
+ , BulletList
+ [
+ [ Plain
+ [ RawInline ( Format "tex" ) "\\cite[22-23]{smith.1899}" ]
+ ]
+ ,
+ [ Plain [ Math InlineMath "2+2=4" ] ]
+ ,
+ [ Plain [ Math InlineMath "x \\in y" ] ]
+ ,
+ [ Plain [ Math InlineMath "\\alpha \\wedge \\omega" ] ]
+ ,
+ [ Plain [ Math InlineMath "223" ] ]
+ ,
+ [ Plain [ Math InlineMath "p", Str "-Tree" ] ]
+ ,
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "some"
+ , Space
+ , Str "display"
+ , Space
+ , Str "math:"
+ , SoftBreak
+ , Math DisplayMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "that"
+ , Space
+ , Str "has"
+ , Space
+ , Str "a"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ , Space
+ , Str "in"
+ , Space
+ , Str "it:"
+ , Space
+ , Math InlineMath "\\alpha + \\omega \\times x^2"
+ , Str "."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "These"
+ , Space
+ , Str "shouldn\8217t"
+ , Space
+ , Str "be"
+ , Space
+ , Str "math:"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "To"
+ , Space
+ , Str "get"
+ , Space
+ , Str "the"
+ , Space
+ , Str "famous"
+ , Space
+ , Str "equation,"
+ , Space
+ , Str "write"
+ , Space
+ , Code
+ ( "", [], [] ) "$e = mc^2$"
+ , Str "."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "$22,000"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Emph
+ [ Str "lot" ]
+ , Space
+ , Str "of"
+ , Space
+ , Str "money."
+ , Space
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Str "$34,000."
+ , SoftBreak
+ , Str "(It"
+ , Space
+ , Str "worked"
+ , Space
+ , Str "if"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "lot" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "emphasized.)"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Shoes"
+ , Space
+ , Str "($20)"
+ , Space
+ , Str "and"
+ , Space
+ , Str "socks"
+ , Space
+ , Str "($5)."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Escaped"
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ":"
+ , Space
+ , Str "$73"
+ , Space
+ , Emph
+ [ Str "this"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "emphasized"
+ ]
+ , Space
+ , Str "23$."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "LaTeX"
+ , Space
+ , Str "table:"
+ ]
+ , RawBlock
+ ( Format "tex" ) "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
+ , HorizontalRule
+ , Header 1
+ ( "special-characters", [], [] )
+ [ Str "Special", Space, Str "Characters" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Str "unicode:"
+ ]
+ , BulletList
+ [
+ [ Plain [ Str "I", Space, Str "hat:", Space, Str "\206" ] ]
+ ,
+ [ Plain [ Str "o", Space, Str "umlaut:", Space, Str "\246" ] ]
+ ,
+ [ Plain [ Str "section:", Space, Str "\167" ] ]
+ ,
+ [ Plain
+ [ Str "set", Space, Str "membership:", Space, Str "\8712" ]
+ ]
+ ,
+ [ Plain [ Str "copyright:", Space, Str "\169" ] ]
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "has"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "their"
+ , Space
+ , Str "name."
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "is"
+ , Space
+ , Str "another"
+ , Space
+ , Str "way"
+ , Space
+ , Str "to"
+ , Space
+ , Str "write"
+ , Space
+ , Str "it."
+ ]
+ , Para
+ [ Str "This", Space, Str "&", Space, Str "that." ]
+ , Para
+ [ Str "4", Space, Str "<", Space, Str "5." ]
+ , Para
+ [ Str "6", Space, Str ">", Space, Str "5." ]
+ , Para
+ [ Str "Backslash:", Space, Str "\\" ]
+ , Para
+ [ Str "Backtick:", Space, Str "`" ]
+ , Para
+ [ Str "Asterisk:", Space, Str "*" ]
+ , Para
+ [ Str "Underscore:", Space, Str "_" ]
+ , Para
+ [ Str "Left", Space, Str "brace:", Space, Str "{" ]
+ , Para
+ [ Str "Right", Space, Str "brace:", Space, Str "}" ]
+ , Para
+ [ Str "Left", Space, Str "bracket:", Space, Str "[" ]
+ , Para
+ [ Str "Right", Space, Str "bracket:", Space, Str "]" ]
+ , Para
+ [ Str "Left", Space, Str "paren:", Space, Str "(" ]
+ , Para
+ [ Str "Right", Space, Str "paren:", Space, Str ")" ]
+ , Para
+ [ Str "Greater-than:", Space, Str ">" ]
+ , Para
+ [ Str "Hash:", Space, Str "#" ]
+ , Para
+ [ Str "Period:", Space, Str "." ]
+ , Para
+ [ Str "Bang:", Space, Str "!" ]
+ , Para
+ [ Str "Plus:", Space, Str "+" ]
+ , Para
+ [ Str "Minus:", Space, Str "-" ]
+ , HorizontalRule
+ , Header 1
+ ( "links", [], [] )
+ [ Str "Links" ]
+ , Header 2
+ ( "explicit", [], [] )
+ [ Str "Explicit" ]
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "URL" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title preceded by two spaces" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title preceded by a tab" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title with \"quotes\" in it" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title with single quotes" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "with_underscore" ]
+ ( "/url/with_underscore", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Email", Space, Str "link" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "Empty" ] ( "", "" ), Str "." ]
+ , Header 2
+ ( "reference", [], [] )
+ [ Str "Reference" ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "With"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "[brackets]" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "b" ]
+ ( "/url/", "" )
+ , Space
+ , Str "by"
+ , Space
+ , Str "itself"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "once" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "twice" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "thrice" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "[not][]"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link."
+ ]
+ , CodeBlock
+ ( "", [], [] ) "[not]: /url"
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "Title with \"quotes\" inside" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "biz" ]
+ ( "/url/", "Title with \"quote\" inside" )
+ , Str "."
+ ]
+ , Header 2
+ ( "with-ampersands", [], [] )
+ [ Str "With", Space, Str "ampersands" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "URL"
+ ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "amersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "link"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "AT&T" ]
+ ( "http://att.com/", "AT&T" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "inline", Space, Str "link" ]
+ ( "/script?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "inline"
+ , Space
+ , Str "link"
+ , Space
+ , Str "in"
+ , Space
+ , Str "pointy"
+ , Space
+ , Str "braces"
+ ]
+ ( "/script?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Header 2
+ ( "autolinks", [], [] )
+ [ Str "Autolinks" ]
+ , Para
+ [ Str "With"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand:"
+ , Space
+ , Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://example.com/?foo=1&bar=2" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ ]
+ , BulletList
+ [
+ [ Plain [ Str "In", Space, Str "a", Space, Str "list?" ] ]
+ ,
+ [ Plain
+ [ Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://example.com/" ]
+ ( "http://example.com/", "" )
+ ]
+ ]
+ ,
+ [ Plain [ Str "It", Space, Str "should." ] ]
+ ]
+ , Para
+ [ Str "An"
+ , Space
+ , Str "e-mail"
+ , Space
+ , Str "address:"
+ , Space
+ , Link
+ ( "", [ "email" ], [] )
+ [ Str "nobody@nowhere.net" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Blockquoted:"
+ , Space
+ , Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://example.com/" ]
+ ( "http://example.com/", "" )
+ ]
+ ]
+ , Para
+ [ Str "Auto-links"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "occur"
+ , Space
+ , Str "here:"
+ , Space
+ , Code
+ ( "", [], [] ) " "
+ ]
+ , CodeBlock
+ ( "", [], [] ) "or here: "
+ , HorizontalRule
+ , Header 1
+ ( "images", [], [] )
+ [ Str "Images" ]
+ , Para
+ [ Str "From"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "Voyage"
+ , Space
+ , Str "dans"
+ , Space
+ , Str "la"
+ , Space
+ , Str "Lune"
+ ]
+ , Space
+ , Str "by"
+ , Space
+ , Str "Georges"
+ , Space
+ , Str "Melies"
+ , Space
+ , Str "(1902):"
+ ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "lalune" ]
+ ( "lalune.jpg", "fig:Voyage dans la Lune" )
+ ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "movie"
+ , Space
+ , Image
+ ( "", [], [] )
+ [ Str "movie" ]
+ ( "movie.jpg", "" )
+ , Space
+ , Str "icon."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "footnotes", [], [] )
+ [ Str "Footnotes" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "footnote"
+ , Space
+ , Str "reference,"
+ , Note
+ [ Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "footnote."
+ , Space
+ , Str "It"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "anywhere"
+ , Space
+ , Str "after"
+ , Space
+ , Str "the"
+ , Space
+ , Str "footnote"
+ , SoftBreak
+ , Str "reference."
+ , Space
+ , Str "It"
+ , Space
+ , Str "need"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "placed"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "document."
+ ]
+ ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "another."
+ , Note
+ [ Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "the"
+ , Space
+ , Str "long"
+ , Space
+ , Str "note."
+ , Space
+ , Str "This"
+ , Space
+ , Str "one"
+ , Space
+ , Str "contains"
+ , Space
+ , Str "multiple"
+ , SoftBreak
+ , Str "blocks."
+ ]
+ , Para
+ [ Str "Subsequent"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "are"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "to"
+ , Space
+ , Str "show"
+ , Space
+ , Str "that"
+ , Space
+ , Str "they"
+ , Space
+ , Str "belong"
+ , Space
+ , Str "to"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "footnote"
+ , Space
+ , Str "(as"
+ , Space
+ , Str "with"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items)."
+ ]
+ , CodeBlock
+ ( "", [], [] ) " { }"
+ , Para
+ [ Str "If"
+ , Space
+ , Str "you"
+ , Space
+ , Str "want,"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "indent"
+ , Space
+ , Str "every"
+ , Space
+ , Str "line,"
+ , Space
+ , Str "but"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "also"
+ , Space
+ , Str "be"
+ , SoftBreak
+ , Str "lazy"
+ , Space
+ , Str "and"
+ , Space
+ , Str "just"
+ , Space
+ , Str "indent"
+ , Space
+ , Str "the"
+ , Space
+ , Str "first"
+ , Space
+ , Str "line"
+ , Space
+ , Str "of"
+ , Space
+ , Str "each"
+ , Space
+ , Str "block."
+ ]
+ ]
+ , SoftBreak
+ , Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Emph
+ [ Str "not" ]
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "footnote"
+ , Space
+ , Str "reference,"
+ , Space
+ , Str "because"
+ , Space
+ , Str "it"
+ , SoftBreak
+ , Str "contains"
+ , Space
+ , Str "a"
+ , Space
+ , Str "space.[^my"
+ , Space
+ , Str "note]"
+ , Space
+ , Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "inline"
+ , Space
+ , Str "note."
+ , Note
+ [ Para
+ [ Str "This"
+ , SoftBreak
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "easier" ]
+ , Space
+ , Str "to"
+ , Space
+ , Str "type."
+ , Space
+ , Str "Inline"
+ , Space
+ , Str "notes"
+ , Space
+ , Str "may"
+ , Space
+ , Str "contain"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "links" ]
+ ( "http://google.com", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Code
+ ( "", [], [] ) "]"
+ , Space
+ , Str "verbatim"
+ , Space
+ , Str "characters,"
+ , SoftBreak
+ , Str "as"
+ , Space
+ , Str "well"
+ , Space
+ , Str "as"
+ , Space
+ , Str "[bracketed"
+ , Space
+ , Str "text]."
+ ]
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Notes"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "in"
+ , Space
+ , Str "quotes."
+ , Note
+ [ Para [ Str "In", Space, Str "quote." ] ]
+ ]
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain
+ [ Str "And"
+ , Space
+ , Str "in"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items."
+ , Note
+ [ Para [ Str "In", Space, Str "list." ] ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "part"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "note,"
+ , Space
+ , Str "as"
+ , Space
+ , Str "it"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "indented."
+ ]
+ ]
diff --git a/test/textile-reader.native b/test/textile-reader.native
index e691e41fc..34dfa7ca3 100644
--- a/test/textile-reader.native
+++ b/test/textile-reader.native
@@ -1,243 +1,1317 @@
-Pandoc (Meta {unMeta = fromList []})
-[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc",Space,Str "Textile",Space,Str "Reader.",Space,Str "Part",Space,Str "of",Space,Str "it",Space,Str "comes",LineBreak,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
-,HorizontalRule
-,Header 1 ("headers",[],[]) [Str "Headers"]
-,Header 2 ("level-2-with-an-embedded-link",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link ("",[],[]) [Str "embedded",Space,Str "link"] ("http://www.example.com","")]
-,Header 3 ("level-3-with-emphasis",[],[]) [Str "Level",Space,Str "3",Space,Str "with",Space,Strong [Str "emphasis"]]
-,Header 4 ("level-4",[],[]) [Str "Level",Space,Str "4"]
-,Header 5 ("level-5",[],[]) [Str "Level",Space,Str "5"]
-,Header 6 ("level-6",[],[]) [Str "Level",Space,Str "6"]
-,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
-,Para [Str "Line",Space,Str "breaks",Space,Str "are",Space,Str "preserved",Space,Str "in",Space,Str "textile,",Space,Str "so",Space,Str "you",Space,Str "can",Space,Str "not",Space,Str "wrap",Space,Str "your",Space,Str "very",LineBreak,Str "long",Space,Str "paragraph",Space,Str "with",Space,Str "your",Space,Str "favourite",Space,Str "text",Space,Str "editor",Space,Str "and",Space,Str "have",Space,Str "it",Space,Str "rendered",LineBreak,Str "with",Space,Str "no",Space,Str "break."]
-,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet."]
-,BulletList
- [[Plain [Str "criminey."]]]
-,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "paragraph",Space,Str "break",Space,Str "between",Space,Str "here"]
-,Para [Str "and",Space,Str "here."]
-,Para [Str "pandoc",Space,Str "converts",Space,Str "textile."]
-,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "famous",Space,Str "quote",Space,Str "from",Space,Str "somebody.",Space,Str "He",Space,Str "had",Space,Str "a",Space,Str "lot",Space,Str "of",Space,Str "things",Space,Str "to",LineBreak,Str "say,",Space,Str "so",Space,Str "the",Space,Str "text",Space,Str "is",Space,Str "really",Space,Str "really",Space,Str "long",Space,Str "and",Space,Str "spans",Space,Str "on",Space,Str "multiple",Space,Str "lines."]]
-,Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
-,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) " ---- (should be four hyphens)\n\n sub status {\n print \"working\";\n }\n\n this code block is indented by one tab"
-,Para [Str "And:"]
-,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\n These should not be escaped: \\$ \\\\ \\> \\[ \\{"
-,CodeBlock ("",[],[]) "Code block with .bc\n continued\n @\\"
-,CodeBlock ("",[],[]) "extended code block\n\n continued"
-,Para [Str "ended",Space,Str "by",Space,Str "paragraph"]
-,Para [Str "Inline",Space,Str "code:",Space,Code ("",[],[]) "",Str ",",Space,Code ("",[],[]) "@",Str "."]
-,Header 1 ("notextile",[],[]) [Str "Notextile"]
-,Para [Str "A",Space,Str "block",Space,Str "of",Space,Str "text",Space,Str "can",Space,Str "be",Space,Str "protected",Space,Str "with",Space,Str "notextile",Space,Str ":"]
-,Para [Str "\nNo *bold* and\n* no bullet\n"]
-,Para [Str "and",Space,Str "inlines",Space,Str "can",Space,Str "be",Space,Str "protected",Space,Str "with",Space,Str "double *equals (=)* markup."]
-,Header 1 ("lists",[],[]) [Str "Lists"]
-,Header 2 ("unordered",[],[]) [Str "Unordered"]
-,Para [Str "Asterisks",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "asterisk",Space,Str "1"]]
- ,[Plain [Str "asterisk",Space,Str "2"]]
- ,[Plain [Str "asterisk",Space,Str "3"]]]
-,Para [Str "With",Space,Str "line",Space,Str "breaks:"]
-,BulletList
- [[Plain [Str "asterisk",Space,Str "1",LineBreak,Str "newline"]]
- ,[Plain [Str "asterisk",Space,Str "2"]]]
-,Header 2 ("ordered",[],[]) [Str "Ordered"]
-,Para [Str "Tight:"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second"]]
- ,[Plain [Str "Third"]]]
-,Header 2 ("nested",[],[]) [Str "Nested"]
-,BulletList
- [[Plain [Str "ui",Space,Str "1"]
- ,BulletList
- [[Plain [Str "ui",Space,Str "1.1"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "oi",Space,Str "1.1.1"]]
- ,[Plain [Str "oi",Space,Str "1.1.2"]]]]
- ,[Plain [Str "ui",Space,Str "1.2"]]]]
- ,[Plain [Str "ui",Space,Str "2"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "oi",Space,Str "2.1"]
- ,BulletList
- [[Plain [Str "ui",Space,Str "2.1.1"]]
- ,[Plain [Str "ui",Space,Str "2.1.2"]]]]]]]
-,Header 2 ("issue-1500",[],[]) [Str "Issue",Space,Str "#1500"]
-,BulletList
- [[Plain [Str "one"]]
- ,[Plain [Str "two",LineBreak,Str "->",Space,Str "and",Space,Str "more"]]]
-,Header 2 ("issue-1513",[],[]) [Str "Issue",Space,Str "#1513"]
-,Para [Str "List:"]
-,BulletList
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]]]
-,Header 2 ("definition-list",[],[]) [Str "Definition",Space,Str "List"]
-,DefinitionList
- [([Str "coffee"],
- [[Plain [Str "Hot",Space,Str "and",Space,Str "black"]]])
- ,([Str "tea"],
- [[Plain [Str "Also",Space,Str "hot,",Space,Str "but",Space,Str "a",Space,Str "little",Space,Str "less",Space,Str "black"]]])
- ,([Str "milk"],
- [[Para [Str "Nourishing",Space,Str "beverage",Space,Str "for",Space,Str "baby",Space,Str "cows."]
- ,Para [Str "Cold",Space,Str "drink",Space,Str "that",Space,Str "goes",Space,Str "great",Space,Str "with",Space,Str "cookies."]]])
- ,([Str "beer"],
- [[Plain [Str "fresh",Space,Str "and",Space,Str "bitter"]]])]
-,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
-,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str ".",LineBreak,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str ".",LineBreak,Str "This",Space,Str "is",Space,Underline [Str "inserted"],Str ",",Space,Str "and",Space,Str "this",Space,Str "is",Space,Strikeout [Str "deleted"],Str ".",LineBreak,Str "Hyphenated-words-are-ok,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str "strange_underscore_notation.",LineBreak,Str "A",Space,Link ("",[],[]) [Strong [Str "strong",Space,Str "link"]] ("http://www.foobar.com",""),Str "."]
-,Para [Emph [Strong [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]],LineBreak,Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word",Space,Str "and",Space,Emph [Strong [Str "that",Space,Str "one"]],Str ".",LineBreak,Strikeout [Str "This",Space,Str "is",Space,Str "strikeout",Space,Str "and",Space,Strong [Str "strong"]]]
-,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Space,Superscript [Strong [Str "hello"]],Space,Str "a",Superscript [Str "hello",Space,Str "there"],Str ".",LineBreak,Str "Subscripts:",Space,Subscript [Str "here"],Space,Str "H",Space,Subscript [Str "2"],Str "O,",Space,Str "H",Space,Subscript [Str "23"],Str "O,",Space,Str "H",Space,Subscript [Str "many",Space,Str "of",Space,Str "them"],Str "O."]
-,Para [Str "Dashes",Space,Str ":",Space,Str "How",Space,Str "cool",Space,Str "\8212",Space,Str "automatic",Space,Str "dashes."]
-,Para [Str "Ellipses",Space,Str ":",Space,Str "He",Space,Str "thought",Space,Str "and",Space,Str "thought",Space,Str "\8230",Space,Str "and",Space,Str "then",Space,Str "thought",Space,Str "some",Space,Str "more."]
-,Para [Str "Quotes",Space,Str "and",Space,Str "apostrophes",Space,Str ":",Space,Quoted DoubleQuote [Str "I\8217d",Space,Str "like",Space,Str "to",Space,Str "thank",Space,Str "you"],Space,Str "for",Space,Str "example."]
-,Header 1 ("links",[],[]) [Str "Links"]
-,Header 2 ("explicit",[],[]) [Str "Explicit"]
-,Para [Str "Just",Space,Str "a",Space,Link ("",[],[]) [Str "url"] ("http://www.url.com","")]
-,Para [Link ("",[],[]) [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
-,Para [Quoted DoubleQuote [Str "not",Space,Str "a",Space,Str "link"],Str ":",Space,Str "foo"]
-,Para [Str "Automatic",Space,Str "linking",Space,Str "to",Space,Link ("",[],[]) [Str "http://www.example.com"] ("http://www.example.com",""),Str "."]
-,Para [Link ("",[],[]) [Str "Example"] ("http://www.example.com/",""),Str ":",Space,Str "Example",Space,Str "of",Space,Str "a",Space,Str "link",Space,Str "followed",Space,Str "by",Space,Str "a",Space,Str "colon."]
-,Para [Str "A",Space,Str "link",Link ("",[],[]) [Str "with",Space,Str "brackets"] ("http://www.example.com",""),Str "and",Space,Str "no",Space,Str "spaces."]
-,Header 1 ("tables",[],[]) [Str "Tables"]
-,Para [Str "Textile",Space,Str "allows",Space,Str "tables",Space,Str "with",Space,Str "and",Space,Str "without",Space,Str "headers",Space,Str ":"]
-,Header 2 ("without-headers",[],[]) [Str "Without",Space,Str "headers"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "name"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "age"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "sex"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "joan"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "24"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "archie"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "29"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "m"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "bella"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "45"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "and",Space,Str "some",Space,Str "text",Space,Str "following",Space,Str "\8230"]
-,Header 2 ("with-headers",[],[]) [Str "With",Space,Str "headers"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "name"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "age"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "sex"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "joan"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "24"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "archie"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "29"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "m"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "bella"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "45"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 1 ("images",[],[]) [Str "Images"]
-,Para [Str "Textile",Space,Str "inline",Space,Str "image",Space,Str "syntax,",Space,Str "like",LineBreak,Str "here",Space,Image ("",[],[]) [Str "this is the alt text"] ("this_is_an_image.png","this is the alt text"),LineBreak,Str "and",Space,Str "here",Space,Image ("",[],[]) [Str ""] ("this_is_an_image.png",""),Str "."]
-,Header 1 ("attributes",[],[]) [Str "Attributes"]
-,Header 2 ("ident",["bar","foo"],[("style","color:red;"),("lang","en")]) [Str "HTML",Space,Str "and",Space,Str "CSS",Space,Str "attributes",Space,Str "are",Space,Str "parsed",Space,Str "in",Space,Str "headers."]
-,Header 2 ("centered",[],[("style","text-align:center;")]) [Str "Centered"]
-,Header 2 ("right",[],[("style","text-align:right;")]) [Str "Right"]
-,Header 2 ("justified",[],[("lang","en"),("style","color:blue;text-align:justify;")]) [Str "Justified"]
-,Para [Str "as",Space,Str "well",Space,Str "as",Space,Strong [Span ("",["foo"],[]) [Str "inline",Space,Str "attributes"]],Space,Str "of",Space,Span ("",[],[("style","color:red;")]) [Str "all",Space,Str "kind"]]
-,Para [Str "and",Space,Str "paragraph",Space,Str "attributes,",Space,Str "and",Space,Str "table",Space,Str "attributes."]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "name"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "age"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "sex"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "joan"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "24"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Emph [Str "(class#id)",Space,Str "emph"]]
-,Para [Emph [Str "(no",Space,Str "class#id)",Space,Str "emph"]]
-,Header 1 ("entities",[],[]) [Str "Entities"]
-,Para [Str "*",LineBreak,Str "&"]
-,Header 1 ("raw-html",[],[]) [Str "Raw",Space,Str "HTML"]
-,Para [Str "However,",Space,RawInline (Format "html") "",Space,Str "raw",Space,Str "HTML",Space,Str "inlines",Space,RawInline (Format "html") " ",Space,Str "are",Space,Str "accepted,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str ":"]
-,RawBlock (Format "html") " "
-,Para [Str "any",Space,Strong [Str "Raw",Space,Str "HTML",Space,Str "Block"],Space,Str "with",Space,Str "bold"]
-,RawBlock (Format "html") "
"
-,Para [Str "Html",Space,Str "blocks",Space,Str "can"]
-,RawBlock (Format "html") ""
-,Para [Str "interrupt",Space,Str "paragraphs"]
-,RawBlock (Format "html") "
"
-,Para [Str "as",Space,Str "well."]
-,Para [Str "Can",Space,Str "you",Space,Str "prove",Space,Str "that",Space,Str "2",Space,Str "<",Space,Str "3",Space,Str "?"]
-,Header 1 ("acronyms-and-marks",[],[]) [Str "Acronyms",Space,Str "and",Space,Str "marks"]
-,Para [Str "PBS (Public Broadcasting System)"]
-,Para [Str "Hi\8482"]
-,Para [Str "Hi",Space,Str "\8482"]
-,Para [Str "\174",Space,Str "Hi\174"]
-,Para [Str "Hi\169\&2008",Space,Str "\169",Space,Str "2008"]
-,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
-,Para [Str "A",Space,Str "note.",Note [Para [Str "The",Space,Str "note",LineBreak,Str "is",Space,Str "here!"]],Space,Str "Another",Space,Str "note",Note [Para [Str "Other",Space,Str "note."]],Str "."]
-,Header 1 ("comment-blocks",[],[]) [Str "Comment",Space,Str "blocks"]
-,Para [Str "not",Space,Str "a",Space,Str "comment."]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "set"
+ , Space
+ , Str "of"
+ , Space
+ , Str "tests"
+ , Space
+ , Str "for"
+ , Space
+ , Str "pandoc"
+ , Space
+ , Str "Textile"
+ , Space
+ , Str "Reader."
+ , Space
+ , Str "Part"
+ , Space
+ , Str "of"
+ , Space
+ , Str "it"
+ , Space
+ , Str "comes"
+ , LineBreak
+ , Str "from"
+ , Space
+ , Str "John"
+ , Space
+ , Str "Gruber\8217s"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "test"
+ , Space
+ , Str "suite."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "headers", [], [] )
+ [ Str "Headers" ]
+ , Header 2
+ ( "level-2-with-an-embedded-link", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "link" ]
+ ( "http://www.example.com", "" )
+ ]
+ , Header 3
+ ( "level-3-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "3"
+ , Space
+ , Str "with"
+ , Space
+ , Strong
+ [ Str "emphasis" ]
+ ]
+ , Header 4
+ ( "level-4", [], [] )
+ [ Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "level-5", [], [] )
+ [ Str "Level", Space, Str "5" ]
+ , Header 6
+ ( "level-6", [], [] )
+ [ Str "Level", Space, Str "6" ]
+ , Header 1
+ ( "paragraphs", [], [] )
+ [ Str "Paragraphs" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "regular"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , Space
+ , Str "are"
+ , Space
+ , Str "preserved"
+ , Space
+ , Str "in"
+ , Space
+ , Str "textile,"
+ , Space
+ , Str "so"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "not"
+ , Space
+ , Str "wrap"
+ , Space
+ , Str "your"
+ , Space
+ , Str "very"
+ , LineBreak
+ , Str "long"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "with"
+ , Space
+ , Str "your"
+ , Space
+ , Str "favourite"
+ , Space
+ , Str "text"
+ , Space
+ , Str "editor"
+ , Space
+ , Str "and"
+ , Space
+ , Str "have"
+ , Space
+ , Str "it"
+ , Space
+ , Str "rendered"
+ , LineBreak
+ , Str "with"
+ , Space
+ , Str "no"
+ , Space
+ , Str "break."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bullet."
+ ]
+ , BulletList
+ [ [ Plain [ Str "criminey." ] ] ]
+ , Para
+ [ Str "There"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "break"
+ , Space
+ , Str "between"
+ , Space
+ , Str "here"
+ ]
+ , Para
+ [ Str "and", Space, Str "here." ]
+ , Para
+ [ Str "pandoc", Space, Str "converts", Space, Str "textile." ]
+ , Header 1
+ ( "block-quotes", [], [] )
+ [ Str "Block", Space, Str "Quotes" ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "famous"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "from"
+ , Space
+ , Str "somebody."
+ , Space
+ , Str "He"
+ , Space
+ , Str "had"
+ , Space
+ , Str "a"
+ , Space
+ , Str "lot"
+ , Space
+ , Str "of"
+ , Space
+ , Str "things"
+ , Space
+ , Str "to"
+ , LineBreak
+ , Str "say,"
+ , Space
+ , Str "so"
+ , Space
+ , Str "the"
+ , Space
+ , Str "text"
+ , Space
+ , Str "is"
+ , Space
+ , Str "really"
+ , Space
+ , Str "really"
+ , Space
+ , Str "long"
+ , Space
+ , Str "and"
+ , Space
+ , Str "spans"
+ , Space
+ , Str "on"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "a"
+ , Space
+ , Str "following"
+ , Space
+ , Str "paragraph."
+ ]
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "Code", Space, Str "Blocks" ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) " ---- (should be four hyphens)\n\n sub status {\n print \"working\";\n }\n\n this code block is indented by one tab"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) " this code block is indented by two tabs\n\n These should not be escaped: \\$ \\\\ \\> \\[ \\{"
+ , CodeBlock
+ ( "", [], [] ) "Code block with .bc\n continued\n @\\"
+ , CodeBlock
+ ( "", [], [] ) "extended code block\n\n continued"
+ , Para
+ [ Str "ended", Space, Str "by", Space, Str "paragraph" ]
+ , Para
+ [ Str "Inline"
+ , Space
+ , Str "code:"
+ , Space
+ , Code
+ ( "", [], [] ) ""
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "@"
+ , Str "."
+ ]
+ , Header 1
+ ( "notextile", [], [] )
+ [ Str "Notextile" ]
+ , Para
+ [ Str "A"
+ , Space
+ , Str "block"
+ , Space
+ , Str "of"
+ , Space
+ , Str "text"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "protected"
+ , Space
+ , Str "with"
+ , Space
+ , Str "notextile"
+ , Space
+ , Str ":"
+ ]
+ , Para
+ [ Str "\nNo *bold* and\n* no bullet\n" ]
+ , Para
+ [ Str "and"
+ , Space
+ , Str "inlines"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "protected"
+ , Space
+ , Str "with"
+ , Space
+ , Str "double *equals (=)* markup."
+ ]
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "Lists" ]
+ , Header 2
+ ( "unordered", [], [] )
+ [ Str "Unordered" ]
+ , Para
+ [ Str "Asterisks", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "With", Space, Str "line", Space, Str "breaks:" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "asterisk", Space, Str "1", LineBreak, Str "newline" ]
+ ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "2" ] ]
+ ]
+ , Header 2
+ ( "ordered", [], [] )
+ [ Str "Ordered" ]
+ , Para
+ [ Str "Tight:" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain [ Str "Second" ] ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "nested", [], [] )
+ [ Str "Nested" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "ui", Space, Str "1" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "ui", Space, Str "1.1" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "oi", Space, Str "1.1.1" ] ]
+ ,
+ [ Plain [ Str "oi", Space, Str "1.1.2" ] ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "ui", Space, Str "1.2" ] ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "ui", Space, Str "2" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "oi", Space, Str "2.1" ]
+ , BulletList
+ [
+ [ Plain [ Str "ui", Space, Str "2.1.1" ] ]
+ ,
+ [ Plain [ Str "ui", Space, Str "2.1.2" ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Header 2
+ ( "issue-1500", [], [] )
+ [ Str "Issue", Space, Str "#1500" ]
+ , BulletList
+ [
+ [ Plain [ Str "one" ] ]
+ ,
+ [ Plain
+ [ Str "two"
+ , LineBreak
+ , Str "->"
+ , Space
+ , Str "and"
+ , Space
+ , Str "more"
+ ]
+ ]
+ ]
+ , Header 2
+ ( "issue-1513", [], [] )
+ [ Str "Issue", Space, Str "#1513" ]
+ , Para
+ [ Str "List:" ]
+ , BulletList
+ [ [ Plain [ Str "one" ] ], [ Plain [ Str "two" ] ] ]
+ , Header 2
+ ( "definition-list", [], [] )
+ [ Str "Definition", Space, Str "List" ]
+ , DefinitionList
+ [
+ (
+ [ Str "coffee" ]
+ ,
+ [
+ [ Plain [ Str "Hot", Space, Str "and", Space, Str "black" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "tea" ]
+ ,
+ [
+ [ Plain
+ [ Str "Also"
+ , Space
+ , Str "hot,"
+ , Space
+ , Str "but"
+ , Space
+ , Str "a"
+ , Space
+ , Str "little"
+ , Space
+ , Str "less"
+ , Space
+ , Str "black"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "milk" ]
+ ,
+ [
+ [ Para
+ [ Str "Nourishing"
+ , Space
+ , Str "beverage"
+ , Space
+ , Str "for"
+ , Space
+ , Str "baby"
+ , Space
+ , Str "cows."
+ ]
+ , Para
+ [ Str "Cold"
+ , Space
+ , Str "drink"
+ , Space
+ , Str "that"
+ , Space
+ , Str "goes"
+ , Space
+ , Str "great"
+ , Space
+ , Str "with"
+ , Space
+ , Str "cookies."
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "beer" ]
+ ,
+ [
+ [ Plain
+ [ Str "fresh", Space, Str "and", Space, Str "bitter" ]
+ ]
+ ]
+ )
+ ]
+ , Header 1
+ ( "inline-markup", [], [] )
+ [ Str "Inline", Space, Str "Markup" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "emphasized" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Emph
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ , LineBreak
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Strong
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ , LineBreak
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Underline
+ [ Str "inserted" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Strikeout
+ [ Str "deleted" ]
+ , Str "."
+ , LineBreak
+ , Str "Hyphenated-words-are-ok,"
+ , Space
+ , Str "as"
+ , Space
+ , Str "well"
+ , Space
+ , Str "as"
+ , Space
+ , Str "strange_underscore_notation."
+ , LineBreak
+ , Str "A"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Strong [ Str "strong", Space, Str "link" ] ]
+ ( "http://www.foobar.com", "" )
+ , Str "."
+ ]
+ , Para
+ [ Emph
+ [ Strong
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ , LineBreak
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word"
+ , Space
+ , Str "and"
+ , Space
+ , Emph
+ [ Strong [ Str "that", Space, Str "one" ] ]
+ , Str "."
+ , LineBreak
+ , Strikeout
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strikeout"
+ , Space
+ , Str "and"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ ]
+ ]
+ , Para
+ [ Str "Superscripts:"
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "bc" ]
+ , Str "d"
+ , Space
+ , Str "a"
+ , Space
+ , Superscript
+ [ Strong [ Str "hello" ] ]
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "hello", Space, Str "there" ]
+ , Str "."
+ , LineBreak
+ , Str "Subscripts:"
+ , Space
+ , Subscript
+ [ Str "here" ]
+ , Space
+ , Str "H"
+ , Space
+ , Subscript
+ [ Str "2" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Space
+ , Subscript
+ [ Str "23" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Space
+ , Subscript
+ [ Str "many", Space, Str "of", Space, Str "them" ]
+ , Str "O."
+ ]
+ , Para
+ [ Str "Dashes"
+ , Space
+ , Str ":"
+ , Space
+ , Str "How"
+ , Space
+ , Str "cool"
+ , Space
+ , Str "\8212"
+ , Space
+ , Str "automatic"
+ , Space
+ , Str "dashes."
+ ]
+ , Para
+ [ Str "Ellipses"
+ , Space
+ , Str ":"
+ , Space
+ , Str "He"
+ , Space
+ , Str "thought"
+ , Space
+ , Str "and"
+ , Space
+ , Str "thought"
+ , Space
+ , Str "\8230"
+ , Space
+ , Str "and"
+ , Space
+ , Str "then"
+ , Space
+ , Str "thought"
+ , Space
+ , Str "some"
+ , Space
+ , Str "more."
+ ]
+ , Para
+ [ Str "Quotes"
+ , Space
+ , Str "and"
+ , Space
+ , Str "apostrophes"
+ , Space
+ , Str ":"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "I\8217d"
+ , Space
+ , Str "like"
+ , Space
+ , Str "to"
+ , Space
+ , Str "thank"
+ , Space
+ , Str "you"
+ ]
+ , Space
+ , Str "for"
+ , Space
+ , Str "example."
+ ]
+ , Header 1
+ ( "links", [], [] )
+ [ Str "Links" ]
+ , Header 2
+ ( "explicit", [], [] )
+ [ Str "Explicit" ]
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "url" ]
+ ( "http://www.url.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Email", Space, Str "link" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , Para
+ [ Quoted DoubleQuote
+ [ Str "not", Space, Str "a", Space, Str "link" ]
+ , Str ":"
+ , Space
+ , Str "foo"
+ ]
+ , Para
+ [ Str "Automatic"
+ , Space
+ , Str "linking"
+ , Space
+ , Str "to"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.example.com" ]
+ ( "http://www.example.com", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Example" ]
+ ( "http://www.example.com/", "" )
+ , Str ":"
+ , Space
+ , Str "Example"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link"
+ , Space
+ , Str "followed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "a"
+ , Space
+ , Str "colon."
+ ]
+ , Para
+ [ Str "A"
+ , Space
+ , Str "link"
+ , Link
+ ( "", [], [] )
+ [ Str "with", Space, Str "brackets" ]
+ ( "http://www.example.com", "" )
+ , Str "and"
+ , Space
+ , Str "no"
+ , Space
+ , Str "spaces."
+ ]
+ , Header 1
+ ( "tables", [], [] )
+ [ Str "Tables" ]
+ , Para
+ [ Str "Textile"
+ , Space
+ , Str "allows"
+ , Space
+ , Str "tables"
+ , Space
+ , Str "with"
+ , Space
+ , Str "and"
+ , Space
+ , Str "without"
+ , Space
+ , Str "headers"
+ , Space
+ , Str ":"
+ ]
+ , Header 2
+ ( "without-headers", [], [] )
+ [ Str "Without", Space, Str "headers" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "name" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "age" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "sex" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "joan" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "24" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "archie" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "29" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "m" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "bella" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "45" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "and"
+ , Space
+ , Str "some"
+ , Space
+ , Str "text"
+ , Space
+ , Str "following"
+ , Space
+ , Str "\8230"
+ ]
+ , Header 2
+ ( "with-headers", [], [] )
+ [ Str "With", Space, Str "headers" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "name" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "age" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "sex" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "joan" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "24" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "archie" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "29" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "m" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "bella" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "45" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 1
+ ( "images", [], [] )
+ [ Str "Images" ]
+ , Para
+ [ Str "Textile"
+ , Space
+ , Str "inline"
+ , Space
+ , Str "image"
+ , Space
+ , Str "syntax,"
+ , Space
+ , Str "like"
+ , LineBreak
+ , Str "here"
+ , Space
+ , Image
+ ( "", [], [] )
+ [ Str "this is the alt text" ]
+ ( "this_is_an_image.png", "this is the alt text" )
+ , LineBreak
+ , Str "and"
+ , Space
+ , Str "here"
+ , Space
+ , Image
+ ( "", [], [] )
+ [ Str "" ]
+ ( "this_is_an_image.png", "" )
+ , Str "."
+ ]
+ , Header 1
+ ( "attributes", [], [] )
+ [ Str "Attributes" ]
+ , Header 2
+ ( "ident"
+ ,
+ [ "bar", "foo" ]
+ ,
+ [ ( "style", "color:red;" ), ( "lang", "en" ) ]
+ )
+ [ Str "HTML"
+ , Space
+ , Str "and"
+ , Space
+ , Str "CSS"
+ , Space
+ , Str "attributes"
+ , Space
+ , Str "are"
+ , Space
+ , Str "parsed"
+ , Space
+ , Str "in"
+ , Space
+ , Str "headers."
+ ]
+ , Header 2
+ ( "centered", [], [ ( "style", "text-align:center;" ) ] )
+ [ Str "Centered" ]
+ , Header 2
+ ( "right", [], [ ( "style", "text-align:right;" ) ] )
+ [ Str "Right" ]
+ , Header 2
+ ( "justified"
+ , []
+ ,
+ [
+ ( "lang", "en" )
+ ,
+ ( "style", "color:blue;text-align:justify;" )
+ ]
+ )
+ [ Str "Justified" ]
+ , Para
+ [ Str "as"
+ , Space
+ , Str "well"
+ , Space
+ , Str "as"
+ , Space
+ , Strong
+ [ Span
+ ( "", [ "foo" ], [] )
+ [ Str "inline", Space, Str "attributes" ]
+ ]
+ , Space
+ , Str "of"
+ , Space
+ , Span
+ ( "", [], [ ( "style", "color:red;" ) ] )
+ [ Str "all", Space, Str "kind" ]
+ ]
+ , Para
+ [ Str "and"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "attributes,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "table"
+ , Space
+ , Str "attributes."
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "name" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "age" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "sex" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "joan" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "24" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Emph [ Str "(class#id)", Space, Str "emph" ] ]
+ , Para
+ [ Emph [ Str "(no", Space, Str "class#id)", Space, Str "emph" ] ]
+ , Header 1
+ ( "entities", [], [] )
+ [ Str "Entities" ]
+ , Para
+ [ Str "*", LineBreak, Str "&" ]
+ , Header 1
+ ( "raw-html", [], [] )
+ [ Str "Raw", Space, Str "HTML" ]
+ , Para
+ [ Str "However,"
+ , Space
+ , RawInline
+ ( Format "html" ) ""
+ , Space
+ , Str "raw"
+ , Space
+ , Str "HTML"
+ , Space
+ , Str "inlines"
+ , Space
+ , RawInline
+ ( Format "html" ) " "
+ , Space
+ , Str "are"
+ , Space
+ , Str "accepted,"
+ , Space
+ , Str "as"
+ , Space
+ , Str "well"
+ , Space
+ , Str "as"
+ , Space
+ , Str ":"
+ ]
+ , RawBlock
+ ( Format "html" ) " "
+ , Para
+ [ Str "any"
+ , Space
+ , Strong
+ [ Str "Raw", Space, Str "HTML", Space, Str "Block" ]
+ , Space
+ , Str "with"
+ , Space
+ , Str "bold"
+ ]
+ , RawBlock
+ ( Format "html" ) "
"
+ , Para
+ [ Str "Html", Space, Str "blocks", Space, Str "can" ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "interrupt", Space, Str "paragraphs" ]
+ , RawBlock
+ ( Format "html" ) "
"
+ , Para
+ [ Str "as", Space, Str "well." ]
+ , Para
+ [ Str "Can"
+ , Space
+ , Str "you"
+ , Space
+ , Str "prove"
+ , Space
+ , Str "that"
+ , Space
+ , Str "2"
+ , Space
+ , Str "<"
+ , Space
+ , Str "3"
+ , Space
+ , Str "?"
+ ]
+ , Header 1
+ ( "acronyms-and-marks", [], [] )
+ [ Str "Acronyms", Space, Str "and", Space, Str "marks" ]
+ , Para
+ [ Str "PBS (Public Broadcasting System)" ]
+ , Para
+ [ Str "Hi\8482" ]
+ , Para
+ [ Str "Hi", Space, Str "\8482" ]
+ , Para
+ [ Str "\174", Space, Str "Hi\174" ]
+ , Para
+ [ Str "Hi\169\&2008", Space, Str "\169", Space, Str "2008" ]
+ , Header 1
+ ( "footnotes", [], [] )
+ [ Str "Footnotes" ]
+ , Para
+ [ Str "A"
+ , Space
+ , Str "note."
+ , Note
+ [ Para
+ [ Str "The"
+ , Space
+ , Str "note"
+ , LineBreak
+ , Str "is"
+ , Space
+ , Str "here!"
+ ]
+ ]
+ , Space
+ , Str "Another"
+ , Space
+ , Str "note"
+ , Note
+ [ Para [ Str "Other", Space, Str "note." ] ]
+ , Str "."
+ ]
+ , Header 1
+ ( "comment-blocks", [], [] )
+ [ Str "Comment", Space, Str "blocks" ]
+ , Para
+ [ Str "not", Space, Str "a", Space, Str "comment." ]
+ ]
diff --git a/test/tikiwiki-reader.native b/test/tikiwiki-reader.native
index 0c34f60ce..eb10421da 100644
--- a/test/tikiwiki-reader.native
+++ b/test/tikiwiki-reader.native
@@ -1,212 +1,761 @@
-Pandoc (Meta {unMeta = fromList []})
-[Header 1 ("header",[],[]) [Str "header"]
-,Header 2 ("header-level-two",[],[]) [Str "header",Space,Str "level",Space,Str "two"]
-,Header 3 ("header-level-3",[],[]) [Str "header",Space,Str "level",Space,Str "3"]
-,Header 4 ("header-_level_-four",[],[]) [Str "header",Space,Str "_level_",Space,Str "four"]
-,Header 5 ("header-level-5",[],[]) [Str "header",Space,Str "level",Space,Str "5"]
-,Header 6 ("header-level-6",[],[]) [Str "header",Space,Str "level",Space,Str "6"]
-,Para [Str "!!!!!!!",Space,Str "not",Space,Str "a",Space,Str "header"]
-,Para [Str "--++",Space,Str "not",Space,Str "a",Space,Str "header"]
-,Header 1 ("emph-and-strong",[],[]) [Str "emph",Space,Str "and",Space,Str "strong"]
-,Para [Emph [Str "emph"],Space,Strong [Str "strong"]]
-,Para [Emph [Strong [Str "strong",Space,Str "and",Space,Str "emph",Space,Str "1"]]]
-,Para [Strong [Emph [Str "strong",Space,Str "and",Space,Str "emph",Space,Str "2"]]]
-,Para [Strong [Emph [Str "emph",Space,Str "inside"],Space,Str "strong"]]
-,Para [Strong [Str "strong",Space,Str "with",Space,Emph [Str "emph"]]]
-,Para [Emph [Strong [Str "strong",Space,Str "inside"],Space,Str "emph"]]
-,Header 1 ("horizontal-rule",[],[]) [Str "horizontal",Space,Str "rule"]
-,Para [Str "top"]
-,HorizontalRule
-,Para [Str "bottom"]
-,HorizontalRule
-,Header 1 ("nop",[],[]) [Str "nop"]
-,Para [Str "__not emph__"]
-,Header 1 ("entities",[],[]) [Str "entities"]
-,Para [Str "hi",Space,Str "&",Space,Str "low"]
-,Para [Str "hi",Space,Str "&",Space,Str "low"]
-,Para [Str "G\246del"]
-,Para [Str "\777\2730"]
-,Header 1 ("linebreaks",[],[]) [Str "linebreaks"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Header 1 ("inline-code",[],[]) [Str "inline",Space,Str "code"]
-,Para [Code ("",[],[]) "*\8594*",Space,Code ("",[],[]) "typed",Space,Code ("",[],[]) ">>="]
-,Header 1 ("code-blocks",[],[]) [Str "code",Space,Str "blocks"]
-,CodeBlock ("",[],[]) "\ncase xs of\n (_:_) -> reverse xs\n [] -> ['*']\n"
-,CodeBlock ("",["haskell"],[("colors","haskell"),("ln","0")]) "\ncase xs of\n (_:_) -> reverse xs\n [] -> ['*']\n"
-,Header 1 ("external-links",[],[]) [Str "external",Space,Str "links"]
-,Para [Link ("",[],[]) [Emph [Str "Google"],Space,Str "search",Space,Str "engine"] ("http://google.com","")]
-,Para [Link ("",[],[]) [Str "http://pandoc.org"] ("http://pandoc.org","")]
-,Para [Link ("",[],[]) [Str "http://google.com"] ("http://google.com",""),Space,Link ("",[],[]) [Str "http://yahoo.com"] ("http://yahoo.com","")]
-,Para [Link ("",[],[]) [Str "email",Space,Str "me"] ("mailto:info@example.org","")]
-,Para [Str "http://google.com"]
-,Para [Str "info@example.org"]
-,Header 1 ("lists",[],[]) [Str "lists"]
-,BulletList
- [[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
- ,[Plain [Str "with",Space,Str "an",Space,Str "asterisk",Space,Str "(*)."]
- ,BulletList
- [[Plain [Str "More",Space,Str "asterisks",Space,Str "gives",Space,Str "deeper"]
- ,BulletList
- [[Plain [Str "and",Space,Str "deeper",Space,Str "levels."]]]]]]
- ,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]]
- ,[Plain [Str "Continuations",Space,Str "are",Space,Str "also",Space,Str "possible"]
- ,BulletList
- [[Plain [Str "and",Space,Str "do",Space,Str "not",Space,Str "break",Space,Str "the",Space,Str "list",Space,Str "flow"]]]]
- ,[Plain [Str "Level",Space,Str "one"]]]
-,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "ends",Space,Str "the",Space,Str "list."]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
- ,[Plain [Str "with",Space,Str "a",Space,Str "number",Space,Str "(1.)."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "More",Space,Str "number",Space,Str "signs",Space,Str "gives",Space,Str "deeper"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "and",Space,Str "deeper"]]
- ,[Plain [Str "levels."]]]]]]
- ,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]]
- ,[Plain [Str "Blank",Space,Str "lines"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "end",Space,Str "the",Space,Str "list",Space,Str "and",Space,Str "start",Space,Str "another."]]]
-,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "also",Space,Str "ends",Space,Str "the",Space,Str "list."]
-,DefinitionList
- [([Str "item",Space,Str "1"],
- [[Plain [Str "definition",Space,Str "1"]]])
- ,([Str "item",Space,Str "2"],
- [[Plain [Str "definition",Space,Str "2-1",Space,Str "definition",Space,Str "2-2"]]])
- ,([Str "item",Space,Emph [Str "3"]],
- [[Plain [Str "definition",Space,Emph [Str "3"]]]])]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]
- ,BulletList
- [[Plain [Str "two",Space,Str "point",Space,Str "one"]]
- ,[Plain [Str "two",Space,Str "point",Space,Str "two"]]]]
- ,[Plain [Str "three"]]
- ,[Plain [Str "four"]]
- ,[Plain [Str "five"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "five",Space,Str "sub",Space,Str "1"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "five",Space,Str "sub",Space,Str "1",Space,Str "sub",Space,Str "1"]]]]
- ,[Plain [Str "five",Space,Str "sub",Space,Str "2"]]]]]
-,Header 1 ("tables",[],[]) [Str "tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Strong [Str "Butter"]]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread",LineBreak,LineBreak,Str "and",Space,Str "cheese"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie",LineBreak,LineBreak,Strong [Str "apple"],Space,Str "and",Space,Emph [Str "carrot"],Space]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ""]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "Orange",Space]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "Apple",Space]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "more"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "Bread",Space]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "Pie",Space]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "more"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "Butter",Space]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "Ice",Space,Str "cream",Space]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Space,Str "and",Space,Str "more",Space]]]])]
- (TableFoot ("",[],[])
- [])]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Header 1
+ ( "header", [], [] )
+ [ Str "header" ]
+ , Header 2
+ ( "header-level-two", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "two" ]
+ , Header 3
+ ( "header-level-3", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "3" ]
+ , Header 4
+ ( "header-_level_-four", [], [] )
+ [ Str "header", Space, Str "_level_", Space, Str "four" ]
+ , Header 5
+ ( "header-level-5", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "5" ]
+ , Header 6
+ ( "header-level-6", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "6" ]
+ , Para
+ [ Str "!!!!!!!"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ ]
+ , Para
+ [ Str "--++"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ ]
+ , Header 1
+ ( "emph-and-strong", [], [] )
+ [ Str "emph", Space, Str "and", Space, Str "strong" ]
+ , Para
+ [ Emph [ Str "emph" ], Space, Strong [ Str "strong" ] ]
+ , Para
+ [ Emph
+ [ Strong
+ [ Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "emph"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "emph"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ , Para
+ [ Strong
+ [ Emph [ Str "emph", Space, Str "inside" ], Space, Str "strong" ]
+ ]
+ , Para
+ [ Strong
+ [ Str "strong", Space, Str "with", Space, Emph [ Str "emph" ] ]
+ ]
+ , Para
+ [ Emph
+ [ Strong
+ [ Str "strong", Space, Str "inside" ]
+ , Space
+ , Str "emph"
+ ]
+ ]
+ , Header 1
+ ( "horizontal-rule", [], [] )
+ [ Str "horizontal", Space, Str "rule" ]
+ , Para
+ [ Str "top" ]
+ , HorizontalRule
+ , Para
+ [ Str "bottom" ]
+ , HorizontalRule
+ , Header 1
+ ( "nop", [], [] )
+ [ Str "nop" ]
+ , Para
+ [ Str "__not emph__" ]
+ , Header 1
+ ( "entities", [], [] )
+ [ Str "entities" ]
+ , Para
+ [ Str "hi", Space, Str "&", Space, Str "low" ]
+ , Para
+ [ Str "hi", Space, Str "&", Space, Str "low" ]
+ , Para
+ [ Str "G\246del" ]
+ , Para
+ [ Str "\777\2730" ]
+ , Header 1
+ ( "linebreaks", [], [] )
+ [ Str "linebreaks" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Header 1
+ ( "inline-code", [], [] )
+ [ Str "inline", Space, Str "code" ]
+ , Para
+ [ Code
+ ( "", [], [] ) "*\8594*"
+ , Space
+ , Code
+ ( "", [], [] ) "typed"
+ , Space
+ , Code
+ ( "", [], [] ) ">>="
+ ]
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "code", Space, Str "blocks" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "\ncase xs of\n (_:_) -> reverse xs\n [] -> ['*']\n"
+ , CodeBlock
+ ( ""
+ , [ "haskell" ]
+ ,
+ [ ( "colors", "haskell" ), ( "ln", "0" ) ]
+ ) "\ncase xs of\n (_:_) -> reverse xs\n [] -> ['*']\n"
+ , Header 1
+ ( "external-links", [], [] )
+ [ Str "external", Space, Str "links" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Emph
+ [ Str "Google" ]
+ , Space
+ , Str "search"
+ , Space
+ , Str "engine"
+ ]
+ ( "http://google.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://pandoc.org" ]
+ ( "http://pandoc.org", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://google.com" ]
+ ( "http://google.com", "" )
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://yahoo.com" ]
+ ( "http://yahoo.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "email", Space, Str "me" ]
+ ( "mailto:info@example.org", "" )
+ ]
+ , Para
+ [ Str "http://google.com" ]
+ , Para
+ [ Str "info@example.org" ]
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "lists" ]
+ , BulletList
+ [
+ [ Plain [ Str "Start", Space, Str "each", Space, Str "line" ] ]
+ ,
+ [ Plain
+ [ Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "asterisk"
+ , Space
+ , Str "(*)."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "More"
+ , Space
+ , Str "asterisks"
+ , Space
+ , Str "gives"
+ , Space
+ , Str "deeper"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "and", Space, Str "deeper", Space, Str "levels." ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , LineBreak
+ , Str "don't"
+ , Space
+ , Str "break"
+ , Space
+ , Str "levels."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Continuations"
+ , Space
+ , Str "are"
+ , Space
+ , Str "also"
+ , Space
+ , Str "possible"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "and"
+ , Space
+ , Str "do"
+ , Space
+ , Str "not"
+ , Space
+ , Str "break"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "flow"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Level", Space, Str "one" ] ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "other"
+ , Space
+ , Str "start"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Start", Space, Str "each", Space, Str "line" ] ]
+ ,
+ [ Plain
+ [ Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "number"
+ , Space
+ , Str "(1.)."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "More"
+ , Space
+ , Str "number"
+ , Space
+ , Str "signs"
+ , Space
+ , Str "gives"
+ , Space
+ , Str "deeper"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "and", Space, Str "deeper" ] ]
+ ,
+ [ Plain [ Str "levels." ] ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , LineBreak
+ , Str "don't"
+ , Space
+ , Str "break"
+ , Space
+ , Str "levels."
+ ]
+ ]
+ ,
+ [ Plain [ Str "Blank", Space, Str "lines" ] ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "end"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "and"
+ , Space
+ , Str "start"
+ , Space
+ , Str "another."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "other"
+ , Space
+ , Str "start"
+ , Space
+ , Str "also"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list."
+ ]
+ , DefinitionList
+ [
+ (
+ [ Str "item", Space, Str "1" ]
+ ,
+ [ [ Plain [ Str "definition", Space, Str "1" ] ] ]
+ )
+ ,
+ (
+ [ Str "item", Space, Str "2" ]
+ ,
+ [
+ [ Plain
+ [ Str "definition"
+ , Space
+ , Str "2-1"
+ , Space
+ , Str "definition"
+ , Space
+ , Str "2-2"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "item", Space, Emph [ Str "3" ] ]
+ ,
+ [ [ Plain [ Str "definition", Space, Emph [ Str "3" ] ] ] ]
+ )
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "one" ] ]
+ ,
+ [ Plain
+ [ Str "two" ]
+ , BulletList
+ [
+ [ Plain [ Str "two", Space, Str "point", Space, Str "one" ] ]
+ ,
+ [ Plain [ Str "two", Space, Str "point", Space, Str "two" ] ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "three" ] ]
+ ,
+ [ Plain [ Str "four" ] ]
+ ,
+ [ Plain
+ [ Str "five" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "five", Space, Str "sub", Space, Str "1" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "five"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "1"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "five", Space, Str "sub", Space, Str "2" ] ]
+ ]
+ ]
+ ]
+ , Header 1
+ ( "tables", [], [] )
+ [ Str "tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Pie" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Pie" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Strong [ Str "Butter" ] ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Bread"
+ , LineBreak
+ , LineBreak
+ , Str "and"
+ , Space
+ , Str "cheese"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Pie"
+ , LineBreak
+ , LineBreak
+ , Strong
+ [ Str "apple" ]
+ , Space
+ , Str "and"
+ , Space
+ , Emph
+ [ Str "carrot" ]
+ , Space
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "Orange", Space ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "Apple", Space ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "more" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "Bread", Space ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "Pie", Space ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "more" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "Butter", Space ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "Ice", Space, Str "cream", Space ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Space, Str "and", Space, Str "more", Space ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
diff --git a/test/twiki-reader.native b/test/twiki-reader.native
index 704bcbd9a..d0a225712 100644
--- a/test/twiki-reader.native
+++ b/test/twiki-reader.native
@@ -1,250 +1,875 @@
-Pandoc (Meta {unMeta = fromList []})
-[Header 1 ("header",[],[]) [Str "header"]
-,Header 2 ("header-level-two",[],[]) [Str "header",Space,Str "level",Space,Str "two"]
-,Header 3 ("header-level-3",[],[]) [Str "header",Space,Str "level",Space,Str "3"]
-,Header 4 ("header-level-four",[],[]) [Str "header",Space,Emph [Str "level"],Space,Str "four"]
-,Header 5 ("header-level-5",[],[]) [Str "header",Space,Str "level",Space,Str "5"]
-,Header 6 ("header-level-6",[],[]) [Str "header",Space,Str "level",Space,Str "6"]
-,Para [Str "---+++++++",Space,Str "not",Space,Str "a",Space,Str "header"]
-,Para [Str "--++",Space,Str "not",Space,Str "a",Space,Str "header"]
-,Header 1 ("emph-and-strong",[],[]) [Str "emph",Space,Str "and",Space,Str "strong"]
-,Para [Emph [Str "emph"],Space,Strong [Str "strong"]]
-,Para [Emph [Strong [Str "strong",Space,Str "and",Space,Str "emph"]]]
-,Para [Strong [Emph [Str "emph",Space,Str "inside"],Space,Str "strong"]]
-,Para [Strong [Str "strong",Space,Str "with",Space,Emph [Str "emph"]]]
-,Para [Emph [Strong [Str "strong",Space,Str "inside"],Space,Str "emph"]]
-,Header 1 ("horizontal-rule",[],[]) [Str "horizontal",Space,Str "rule"]
-,Para [Str "top"]
-,HorizontalRule
-,Para [Str "bottom"]
-,HorizontalRule
-,Header 1 ("nop",[],[]) [Str "nop"]
-,Para [Str "_not",Space,Str "emph_"]
-,Header 1 ("entities",[],[]) [Str "entities"]
-,Para [Str "hi",Space,Str "&",Space,Str "low"]
-,Para [Str "hi",Space,Str "&",Space,Str "low"]
-,Para [Str "G\246del"]
-,Para [Str "\777\2730"]
-,Header 1 ("comments",[],[]) [Str "comments"]
-,Para [Str "inline",Space,Str "comment"]
-,Para [Str "between",Space,Str "blocks"]
-,Header 1 ("linebreaks",[],[]) [Str "linebreaks"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Para [Str "hi",LineBreak,Str "there"]
-,Header 1 ("inline-code",[],[]) [Str "inline",Space,Str "code"]
-,Para [Code ("",[],[]) "*\8594*",Space,Code ("",[],[]) "typed",Space,Code ("",["haskell"],[]) ">>="]
-,Header 1 ("code-blocks",[],[]) [Str "code",Space,Str "blocks"]
-,CodeBlock ("",[],[]) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
-,CodeBlock ("",["haskell"],[]) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
-,Header 1 ("block-quotes",[],[]) [Str "block",Space,Str "quotes"]
-,Para [Str "Regular",Space,Str "paragraph"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote."]
- ,Para [Str "With",Space,Str "two",Space,Str "paragraphs."]]
-,Para [Str "Nother",Space,Str "paragraph."]
-,Header 1 ("external-links",[],[]) [Str "external",Space,Str "links"]
-,Para [Link ("",[],[]) [Emph [Str "Google"],Space,Str "search",Space,Str "engine"] ("http://google.com","")]
-,Para [Link ("",[],[]) [Str "http://pandoc.org"] ("http://pandoc.org","")]
-,Para [Link ("",[],[]) [Str "http://google.com"] ("http://google.com",""),Space,Link ("",[],[]) [Str "http://yahoo.com"] ("http://yahoo.com","")]
-,Para [Link ("",[],[]) [Str "email",Space,Str "me"] ("mailto:info@example.org","")]
-,Para [Str "http://google.com"]
-,Para [Str "http://google.com"]
-,Para [Str "http://google.com"]
-,Para [Str "info@example.org"]
-,Para [Str "info@example.org"]
-,Para [Str "info@example.org"]
-,Header 1 ("lists",[],[]) [Str "lists"]
-,BulletList
- [[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
- ,[Plain [Str "with",Space,Str "an",Space,Str "asterisk",Space,Str "(*)."]
- ,BulletList
- [[Plain [Str "More",Space,Str "asterisks",Space,Str "gives",Space,Str "deeper"]
- ,BulletList
- [[Plain [Str "and",Space,Str "deeper",Space,Str "levels."]]]]]]
- ,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]]
- ,[Plain [Str "Continuations",Space,Str "are",Space,Str "also",Space,Str "possible"]
- ,BulletList
- [[Plain [Str "and",Space,Str "do",Space,Str "not",Space,Str "break",Space,Str "the",Space,Str "list",Space,Str "flow"]]]]
- ,[Plain [Str "Level",Space,Str "one"]]]
-,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "ends",Space,Str "the",Space,Str "list."]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
- ,[Plain [Str "with",Space,Str "a",Space,Str "number",Space,Str "(1.)."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "More",Space,Str "number",Space,Str "signs",Space,Str "gives",Space,Str "deeper"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "and",Space,Str "deeper"]]
- ,[Plain [Str "levels."]]]]]]
- ,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]]
- ,[Plain [Str "Blank",Space,Str "lines"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "end",Space,Str "the",Space,Str "list",Space,Str "and",Space,Str "start",Space,Str "another."]]]
-,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "also",Space,Str "ends",Space,Str "the",Space,Str "list."]
-,DefinitionList
- [([Str "item",Space,Str "1"],
- [[Plain [Str "definition",Space,Str "1"]]])
- ,([Str "item",Space,Str "2"],
- [[Plain [Str "definition",Space,Str "2-1",Space,Str "definition",Space,Str "2-2"]]])
- ,([Str "item",Space,Emph [Str "3"]],
- [[Plain [Str "definition",Space,Emph [Str "3"]]]])]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "one"]]
- ,[Plain [Str "two"]
- ,BulletList
- [[Plain [Str "two",Space,Str "point",Space,Str "one"]]
- ,[Plain [Str "two",Space,Str "point",Space,Str "two"]]]]
- ,[Plain [Str "three"]
- ,DefinitionList
- [([Str "three",Space,Str "item",Space,Str "one"],
- [[Plain [Str "three",Space,Str "def",Space,Str "one"]]])]]
- ,[Plain [Str "four"]
- ,DefinitionList
- [([Str "four",Space,Str "def",Space,Str "one"],
- [[Plain [Str "this",Space,Str "is",Space,Str "a",Space,Str "continuation"]]])]]
- ,[Plain [Str "five"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "five",Space,Str "sub",Space,Str "1"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "five",Space,Str "sub",Space,Str "1",Space,Str "sub",Space,Str "1"]]]]
- ,[Plain [Str "five",Space,Str "sub",Space,Str "2"]]]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "other"]
- ,OrderedList (1,UpperRoman,DefaultDelim)
- [[Plain [Str "list"]]
- ,[Plain [Str "styles"]]]]
- ,[Plain [Str "are"]
- ,OrderedList (1,LowerRoman,DefaultDelim)
- [[Plain [Str "also"]]
- ,[Plain [Str "possible"]]]]
- ,[Plain [Str "all"]
- ,OrderedList (1,LowerAlpha,DefaultDelim)
- [[Plain [Str "the"]]
- ,[Plain [Str "different"]]
- ,[Plain [Str "styles"]]]]
- ,[Plain [Str "are"]
- ,OrderedList (1,UpperAlpha,DefaultDelim)
- [[Plain [Str "implemented"]]
- ,[Plain [Str "and"]]
- ,[Plain [Str "supported"]]]]]
-,Header 1 ("tables",[],[]) [Str "tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Strong [Str "Butter"]]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Ice",Space,Str "cream"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignLeft,ColWidthDefault)
- ,(AlignLeft,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread",LineBreak,LineBreak,Str "and",Space,Str "cheese"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie",LineBreak,LineBreak,Strong [Str "apple"],Space,Str "and",Space,Emph [Str "carrot"]]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Orange"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apple"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "more"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Bread"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Pie"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "more"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Butter"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Ice",Space,Str "cream"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "and",Space,Str "more"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 1 ("macros",[],[]) [Str "macros"]
-,Para [Span ("",["twiki-macro","TEST"],[]) []]
-,Para [Span ("",["twiki-macro","TEST"],[]) [Str ""]]
-,Para [Span ("",["twiki-macro","TEST"],[]) [Str "content with spaces"]]
-,Para [Span ("",["twiki-macro","TEST"],[]) [Str "content with spaces"]]
-,Para [Span ("",["twiki-macro","TEST"],[("ARG1","test")]) [Str "content with spaces"]]
-,Para [Span ("",["twiki-macro","TEST"],[]) [Str "content with spaces ARG1=test"]]
-,Para [Span ("",["twiki-macro","TEST"],[("ARG1","test")]) [Str "content with spaces"]]
-,Para [Span ("",["twiki-macro","TEST"],[("ARG1","test"),("ARG2","test2")]) [Str ""]]
-,Para [Span ("",["twiki-macro","TEST"],[("ARG1","test"),("ARG2","test2")]) [Str ""]]
-,Para [Span ("",["twiki-macro","TEST"],[("ARG1","test"),("ARG2","test2")]) [Str "multiline\ndoes also work"]]]
+Pandoc
+ ( Meta { unMeta = fromList [] } )
+ [ Header 1
+ ( "header", [], [] )
+ [ Str "header" ]
+ , Header 2
+ ( "header-level-two", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "two" ]
+ , Header 3
+ ( "header-level-3", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "3" ]
+ , Header 4
+ ( "header-level-four", [], [] )
+ [ Str "header", Space, Emph [ Str "level" ], Space, Str "four" ]
+ , Header 5
+ ( "header-level-5", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "5" ]
+ , Header 6
+ ( "header-level-6", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "6" ]
+ , Para
+ [ Str "---+++++++"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ ]
+ , Para
+ [ Str "--++"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ ]
+ , Header 1
+ ( "emph-and-strong", [], [] )
+ [ Str "emph", Space, Str "and", Space, Str "strong" ]
+ , Para
+ [ Emph [ Str "emph" ], Space, Strong [ Str "strong" ] ]
+ , Para
+ [ Emph
+ [ Strong [ Str "strong", Space, Str "and", Space, Str "emph" ] ]
+ ]
+ , Para
+ [ Strong
+ [ Emph [ Str "emph", Space, Str "inside" ], Space, Str "strong" ]
+ ]
+ , Para
+ [ Strong
+ [ Str "strong", Space, Str "with", Space, Emph [ Str "emph" ] ]
+ ]
+ , Para
+ [ Emph
+ [ Strong
+ [ Str "strong", Space, Str "inside" ]
+ , Space
+ , Str "emph"
+ ]
+ ]
+ , Header 1
+ ( "horizontal-rule", [], [] )
+ [ Str "horizontal", Space, Str "rule" ]
+ , Para
+ [ Str "top" ]
+ , HorizontalRule
+ , Para
+ [ Str "bottom" ]
+ , HorizontalRule
+ , Header 1
+ ( "nop", [], [] )
+ [ Str "nop" ]
+ , Para
+ [ Str "_not", Space, Str "emph_" ]
+ , Header 1
+ ( "entities", [], [] )
+ [ Str "entities" ]
+ , Para
+ [ Str "hi", Space, Str "&", Space, Str "low" ]
+ , Para
+ [ Str "hi", Space, Str "&", Space, Str "low" ]
+ , Para
+ [ Str "G\246del" ]
+ , Para
+ [ Str "\777\2730" ]
+ , Header 1
+ ( "comments", [], [] )
+ [ Str "comments" ]
+ , Para
+ [ Str "inline", Space, Str "comment" ]
+ , Para
+ [ Str "between", Space, Str "blocks" ]
+ , Header 1
+ ( "linebreaks", [], [] )
+ [ Str "linebreaks" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Para
+ [ Str "hi", LineBreak, Str "there" ]
+ , Header 1
+ ( "inline-code", [], [] )
+ [ Str "inline", Space, Str "code" ]
+ , Para
+ [ Code
+ ( "", [], [] ) "*\8594*"
+ , Space
+ , Code
+ ( "", [], [] ) "typed"
+ , Space
+ , Code
+ ( "", [ "haskell" ], [] ) ">>="
+ ]
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "code", Space, Str "blocks" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
+ , CodeBlock
+ ( ""
+ , [ "haskell" ]
+ , []
+ ) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
+ , Header 1
+ ( "block-quotes", [], [] )
+ [ Str "block", Space, Str "quotes" ]
+ , Para
+ [ Str "Regular", Space, Str "paragraph" ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ ]
+ , Para
+ [ Str "With", Space, Str "two", Space, Str "paragraphs." ]
+ ]
+ , Para
+ [ Str "Nother", Space, Str "paragraph." ]
+ , Header 1
+ ( "external-links", [], [] )
+ [ Str "external", Space, Str "links" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Emph
+ [ Str "Google" ]
+ , Space
+ , Str "search"
+ , Space
+ , Str "engine"
+ ]
+ ( "http://google.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://pandoc.org" ]
+ ( "http://pandoc.org", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://google.com" ]
+ ( "http://google.com", "" )
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://yahoo.com" ]
+ ( "http://yahoo.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "email", Space, Str "me" ]
+ ( "mailto:info@example.org", "" )
+ ]
+ , Para
+ [ Str "http://google.com" ]
+ , Para
+ [ Str "http://google.com" ]
+ , Para
+ [ Str "http://google.com" ]
+ , Para
+ [ Str "info@example.org" ]
+ , Para
+ [ Str "info@example.org" ]
+ , Para
+ [ Str "info@example.org" ]
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "lists" ]
+ , BulletList
+ [
+ [ Plain [ Str "Start", Space, Str "each", Space, Str "line" ] ]
+ ,
+ [ Plain
+ [ Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "asterisk"
+ , Space
+ , Str "(*)."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "More"
+ , Space
+ , Str "asterisks"
+ , Space
+ , Str "gives"
+ , Space
+ , Str "deeper"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "and", Space, Str "deeper", Space, Str "levels." ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , LineBreak
+ , Str "don't"
+ , Space
+ , Str "break"
+ , Space
+ , Str "levels."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Continuations"
+ , Space
+ , Str "are"
+ , Space
+ , Str "also"
+ , Space
+ , Str "possible"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "and"
+ , Space
+ , Str "do"
+ , Space
+ , Str "not"
+ , Space
+ , Str "break"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "flow"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Level", Space, Str "one" ] ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "other"
+ , Space
+ , Str "start"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Start", Space, Str "each", Space, Str "line" ] ]
+ ,
+ [ Plain
+ [ Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "number"
+ , Space
+ , Str "(1.)."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "More"
+ , Space
+ , Str "number"
+ , Space
+ , Str "signs"
+ , Space
+ , Str "gives"
+ , Space
+ , Str "deeper"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "and", Space, Str "deeper" ] ]
+ ,
+ [ Plain [ Str "levels." ] ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Line"
+ , Space
+ , Str "breaks"
+ , LineBreak
+ , Str "don't"
+ , Space
+ , Str "break"
+ , Space
+ , Str "levels."
+ ]
+ ]
+ ,
+ [ Plain [ Str "Blank", Space, Str "lines" ] ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "end"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "and"
+ , Space
+ , Str "start"
+ , Space
+ , Str "another."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "other"
+ , Space
+ , Str "start"
+ , Space
+ , Str "also"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list."
+ ]
+ , DefinitionList
+ [
+ (
+ [ Str "item", Space, Str "1" ]
+ ,
+ [ [ Plain [ Str "definition", Space, Str "1" ] ] ]
+ )
+ ,
+ (
+ [ Str "item", Space, Str "2" ]
+ ,
+ [
+ [ Plain
+ [ Str "definition"
+ , Space
+ , Str "2-1"
+ , Space
+ , Str "definition"
+ , Space
+ , Str "2-2"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "item", Space, Emph [ Str "3" ] ]
+ ,
+ [ [ Plain [ Str "definition", Space, Emph [ Str "3" ] ] ] ]
+ )
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "one" ] ]
+ ,
+ [ Plain
+ [ Str "two" ]
+ , BulletList
+ [
+ [ Plain [ Str "two", Space, Str "point", Space, Str "one" ] ]
+ ,
+ [ Plain [ Str "two", Space, Str "point", Space, Str "two" ] ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "three" ]
+ , DefinitionList
+ [
+ (
+ [ Str "three", Space, Str "item", Space, Str "one" ]
+ ,
+ [
+ [ Plain
+ [ Str "three", Space, Str "def", Space, Str "one" ]
+ ]
+ ]
+ )
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "four" ]
+ , DefinitionList
+ [
+ (
+ [ Str "four", Space, Str "def", Space, Str "one" ]
+ ,
+ [
+ [ Plain
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "continuation"
+ ]
+ ]
+ ]
+ )
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "five" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "five", Space, Str "sub", Space, Str "1" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "five"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "1"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "five", Space, Str "sub", Space, Str "2" ] ]
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "other" ]
+ , OrderedList
+ ( 1, UpperRoman, DefaultDelim )
+ [ [ Plain [ Str "list" ] ], [ Plain [ Str "styles" ] ] ]
+ ]
+ ,
+ [ Plain
+ [ Str "are" ]
+ , OrderedList
+ ( 1, LowerRoman, DefaultDelim )
+ [ [ Plain [ Str "also" ] ], [ Plain [ Str "possible" ] ] ]
+ ]
+ ,
+ [ Plain
+ [ Str "all" ]
+ , OrderedList
+ ( 1, LowerAlpha, DefaultDelim )
+ [
+ [ Plain [ Str "the" ] ]
+ ,
+ [ Plain [ Str "different" ] ]
+ ,
+ [ Plain [ Str "styles" ] ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "are" ]
+ , OrderedList
+ ( 1, UpperAlpha, DefaultDelim )
+ [
+ [ Plain [ Str "implemented" ] ]
+ ,
+ [ Plain [ Str "and" ] ]
+ ,
+ [ Plain [ Str "supported" ] ]
+ ]
+ ]
+ ]
+ , Header 1
+ ( "tables", [], [] )
+ [ Str "tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Pie" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignLeft, ColWidthDefault ), ( AlignLeft, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Pie" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Strong [ Str "Butter" ] ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Ice", Space, Str "cream" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignLeft, ColWidthDefault ), ( AlignLeft, ColWidthDefault ) ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Bread"
+ , LineBreak
+ , LineBreak
+ , Str "and"
+ , Space
+ , Str "cheese"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "Pie"
+ , LineBreak
+ , LineBreak
+ , Strong
+ [ Str "apple" ]
+ , Space
+ , Str "and"
+ , Space
+ , Emph
+ [ Str "carrot" ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Orange" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apple" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "more" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Bread" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Pie" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "more" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Butter" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Ice", Space, Str "cream" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "and", Space, Str "more" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 1
+ ( "macros", [], [] )
+ [ Str "macros" ]
+ , Para
+ [ Span ( "", [ "twiki-macro", "TEST" ], [] ) [] ]
+ , Para
+ [ Span ( "", [ "twiki-macro", "TEST" ], [] ) [ Str "" ] ]
+ , Para
+ [ Span
+ ( "", [ "twiki-macro", "TEST" ], [] )
+ [ Str "content with spaces" ]
+ ]
+ , Para
+ [ Span
+ ( "", [ "twiki-macro", "TEST" ], [] )
+ [ Str "content with spaces" ]
+ ]
+ , Para
+ [ Span
+ ( "", [ "twiki-macro", "TEST" ], [ ( "ARG1", "test" ) ] )
+ [ Str "content with spaces" ]
+ ]
+ , Para
+ [ Span
+ ( "", [ "twiki-macro", "TEST" ], [] )
+ [ Str "content with spaces ARG1=test" ]
+ ]
+ , Para
+ [ Span
+ ( "", [ "twiki-macro", "TEST" ], [ ( "ARG1", "test" ) ] )
+ [ Str "content with spaces" ]
+ ]
+ , Para
+ [ Span
+ ( ""
+ ,
+ [ "twiki-macro", "TEST" ]
+ ,
+ [ ( "ARG1", "test" ), ( "ARG2", "test2" ) ]
+ )
+ [ Str "" ]
+ ]
+ , Para
+ [ Span
+ ( ""
+ ,
+ [ "twiki-macro", "TEST" ]
+ ,
+ [ ( "ARG1", "test" ), ( "ARG2", "test2" ) ]
+ )
+ [ Str "" ]
+ ]
+ , Para
+ [ Span
+ ( ""
+ ,
+ [ "twiki-macro", "TEST" ]
+ ,
+ [ ( "ARG1", "test" ), ( "ARG2", "test2" ) ]
+ )
+ [ Str "multiline\ndoes also work" ]
+ ]
+ ]
diff --git a/test/txt2tags.native b/test/txt2tags.native
index c52c5929a..ccc8dd36e 100644
--- a/test/txt2tags.native
+++ b/test/txt2tags.native
@@ -1,968 +1,5200 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "author"]]),("date",MetaInlines [Str "date"]),("includeconf",MetaString "rules.conf"),("title",MetaInlines [Str "Txt2tags",Space,Str "Markup",Space,Str "Rules"])]})
-[Para [Str "This",Space,Str "document",Space,Str "describes",Space,Str "all",Space,Str "the",Space,Str "details",Space,Str "about",Space,Str "each",Space,Str "txt2tags",Space,Str "mark.",SoftBreak,Str "The",Space,Str "target",Space,Str "audience",Space,Str "are",Space,Strong [Str "experienced"],Space,Str "users.",Space,Str "You",Space,Str "may",Space,Str "find",Space,Str "it",SoftBreak,Str "useful",Space,Str "if",Space,Str "you",Space,Str "want",Space,Str "to",Space,Str "master",Space,Str "the",Space,Str "marks",Space,Str "or",Space,Str "solve",Space,Str "a",Space,Str "specific",Space,Str "problem",SoftBreak,Str "about",Space,Str "a",Space,Str "mark."]
-,Para [Str "If",Space,Str "you",Space,Str "are",Space,Str "new",Space,Str "to",Space,Str "txt2tags",Space,Str "or",Space,Str "just",Space,Str "want",Space,Str "to",Space,Str "know",Space,Str "which",Space,Str "are",Space,Str "the",SoftBreak,Str "available",Space,Str "marks,",Space,Str "please",Space,Str "read",Space,Str "the",Space,Link ("",[],[]) [Str "Markup",Space,Str "Demo"] ("MARKUPDEMO",""),Str "."]
-,Para [Str "Note",Space,Str "1:",Space,Str "This",Space,Str "document",Space,Str "is",Space,Str "generated",Space,Str "directly",Space,Str "from",Space,Str "the",Space,Str "txt2tags",SoftBreak,Str "test-suite.",Space,Str "All",Space,Str "the",Space,Str "rules",Space,Str "mentioned",Space,Str "here",Space,Str "are",Space,Str "100%",Space,Str "in",Space,Str "sync",Space,Str "with",Space,Str "the",SoftBreak,Str "current",Space,Str "program",Space,Str "code."]
-,Para [Str "Note",Space,Str "2:",Space,Str "A",Space,Str "good",Space,Str "practice",Space,Str "is",Space,Str "to",Space,Str "consult",Space,Link ("",[],[]) [Str "the",Space,Str "sources"] ("rules.t2t",""),Space,Str "when",SoftBreak,Str "reading,",Space,Str "to",Space,Str "see",Space,Str "how",Space,Str "the",Space,Str "texts",Space,Str "were",Space,Str "made."]
-,Para [Str "Table",Space,Str "of",Space,Str "Contents:"]
-,HorizontalRule
-,Header 1 ("paragraph",[],[]) [Str "Paragraph"]
-,Para [Str "A",Space,Str "paragraph",Space,Str "is",Space,Str "composed",Space,Str "by",Space,Str "one",Space,Str "or",Space,Str "more",Space,Str "lines.",SoftBreak,Str "A",Space,Str "blank",Space,Str "line",Space,Str "(or",Space,Str "a",Space,Str "table,",Space,Str "or",Space,Str "a",Space,Str "list)",Space,Str "ends",Space,Str "the",SoftBreak,Str "current",Space,Str "paragraph."]
-,Para [Str "Leading",Space,Str "and",Space,Str "trailing",Space,Str "spaces",Space,Str "are",Space,Str "ignored."]
-,Para [Str "A",Space,Str "comment",Space,Str "line",Space,Str "can",Space,Str "be",Space,Str "placed",Space,Str "inside",Space,Str "a",Space,Str "paragraph.",SoftBreak,Str "It",Space,Str "will",Space,Str "not",Space,Str "affect",Space,Str "it."]
-,Para [Str "The",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "file",Space,Str "(EOF)",Space,Str "closes",Space,Str "the",SoftBreak,Str "currently",Space,Str "open",Space,Str "paragraph."]
-,Header 1 ("comment",[],[]) [Str "Comment"]
-,Para [Str "%",Space,Str "not",Space,Str "on",Space,Str "the",Space,Str "line",Space,Str "beginning",Space,Str "(at",Space,Str "column",Space,Str "2)"]
-,Para [Str "some",Space,Str "text",Space,Str "%",Space,Str "half",Space,Str "line",Space,Str "comments",Space,Str "are",Space,Str "not",Space,Str "allowed"]
-,Header 1 ("line",[],[]) [Str "Line"]
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,HorizontalRule
-,Para [Strikeout [Str "-----"],SoftBreak,Strikeout [Str "-------",Space,Str "--------"]]
-,Para [Strikeout [Str "-------+--------"]]
-,Para [Str "(",Space,Strikeout [Str "----------------"],Space,Str ")"]
-,Header 1 ("inline",[],[]) [Str "Inline"]
-,Para [Str "i)",Space,Strong [Str "b"],Space,Emph [Str "i"],Space,Underline [Str "u"],Space,Strikeout [Str "s"],Space,Code ("",[],[]) "m",Space,Str "r",Space,RawInline (Format "html") "t",SoftBreak,Str "i)",Space,Strong [Str "bo"],Space,Emph [Str "it"],Space,Underline [Str "un"],Space,Strikeout [Str "st"],Space,Code ("",[],[]) "mo",Space,Str "ra",Space,RawInline (Format "html") "tg",SoftBreak,Str "i)",Space,Strong [Str "bold"],Space,Emph [Str "ital"],Space,Underline [Str "undr"],Space,Strikeout [Str "strk"],Space,Code ("",[],[]) "mono",Space,Str "raw",Space,RawInline (Format "html") "tggd",SoftBreak,Str "i)",Space,Strong [Str "bo",Space,Str "ld"],Space,Emph [Str "it",Space,Str "al"],Space,Underline [Str "un",Space,Str "dr"],Space,Strikeout [Str "st",Space,Str "rk"],Space,Code ("",[],[]) "mo no",Space,Str "r",Space,Str "aw",Space,RawInline (Format "html") "tg gd",SoftBreak,Str "i)",Space,Strong [Str "bo",Space,Str "*",Space,Str "ld"],Space,Emph [Str "it",Space,Str "/",Space,Str "al"],Space,Underline [Str "un",Space,Str "_",Space,Str "dr"],Space,Strikeout [Str "st",Space,Str "-",Space,Str "rk"],Space,Code ("",[],[]) "mo ` no",Space,Str "r",Space,Str "\"",Space,Str "aw",Space,RawInline (Format "html") "tg ' gd",SoftBreak,Str "i)",Space,Strong [Str "bo",Space,Str "**ld"],Space,Emph [Str "it",Space,Str "//al"],Space,Underline [Str "un",Space,Str "__dr"],Space,Strikeout [Str "st",Space,Str "--rk"],Space,Code ("",[],[]) "mo ``no",Space,Str "r",Space,Str "\"\"aw",Space,RawInline (Format "html") "tg ''gd",SoftBreak,Str "i)",Space,Strong [Str "bo",Space,Str "**",Space,Str "ld"],Space,Emph [Str "it",Space,Str "//",Space,Str "al"],Space,Underline [Str "un",Space,Str "__",Space,Str "dr"],Space,Strikeout [Str "st",Space,Str "--",Space,Str "rk"],Space,Code ("",[],[]) "mo `` no",Space,Str "r",Space,Str "\"\"",Space,Str "aw",Space,RawInline (Format "html") "tg '' gd",SoftBreak,Str "i)",Space,Strong [Str "**bold**"],Space,Emph [Str "//ital//"],Space,Underline [Str "__undr__"],Space,Strikeout [Str "--strk--"],Space,Code ("",[],[]) "``mono``",Space,Str "\"\"raw\"\"",Space,RawInline (Format "html") "''tggd''",SoftBreak,Str "i)",Space,Strong [Str "*bold*"],Space,Emph [Str "/ital/"],Space,Underline [Str "_undr_"],Space,Strikeout [Str "-strk-"],Space,Code ("",[],[]) "`mono`",Space,Str "\"raw\"",Space,RawInline (Format "html") "'tggd'"]
-,Para [Str "i)",Space,Strong [Str "*"],Space,Emph [Str "/"],Space,Underline [Str "_"],Space,Strikeout [Str "-"],Space,Code ("",[],[]) "`",Space,Str "\"",Space,RawInline (Format "html") "'",SoftBreak,Str "i)",Space,Strong [Str "**"],Space,Emph [Str "//"],Space,Underline [Str "__"],Space,Strikeout [Str "--"],Space,Code ("",[],[]) "``",Space,Str "\"\"",Space,RawInline (Format "html") "''",SoftBreak,Str "i)",Space,Strong [Str "***"],Space,Emph [Str "///"],Space,Underline [Str "___"],Space,Strikeout [Str "---"],Space,Code ("",[],[]) "```",Space,Str "\"\"\"",Space,RawInline (Format "html") "'''",SoftBreak,Str "i)",Space,Strong [Str "****"],Space,Emph [Str "////"],Space,Underline [Str "____"],Space,Strikeout [Str "----"],Space,Code ("",[],[]) "````",Space,Str "\"\"\"\"",Space,RawInline (Format "html") "''''",SoftBreak,Str "i)",Space,Strong [Str "*****"],Space,Emph [Str "/////"],Space,Underline [Str "_____"],Space,Strikeout [Str "-----"],Space,Code ("",[],[]) "`````",Space,Str "\"\"\"\"\"",Space,RawInline (Format "html") "'''''",SoftBreak,Str "i)",Space,Strong [Str "******"],Space,Emph [Str "//////"],Space,Underline [Str "______"],Space,Strikeout [Str "------"],Space,Code ("",[],[]) "``````",Space,Str "\"\"\"\"\"\"",Space,RawInline (Format "html") "''''''"]
-,Para [Str "i)",Space,Str "****",Space,Str "////",Space,Str "____",Space,Str "----",Space,Str "````",Space,Str "\"\"\"\"",Space,Str "''''",SoftBreak,Str "i)",Space,Str "**",Space,Str "**",Space,Str "//",Space,Str "//",Space,Str "__",Space,Str "__",Space,Str "--",Space,Str "--",Space,Str "``",Space,Str "``",Space,Str "\"\"",Space,Str "\"\"",Space,Str "''",Space,Str "''"]
-,Para [Str "i)",Space,Str "**",Space,Str "bold**",Space,Str "//",Space,Str "ital//",Space,Str "__",Space,Str "undr__",Space,Str "--",Space,Str "strk--",Space,Str "``",Space,Str "mono``",Space,Str "\"\"",Space,Str "raw\"\"",Space,Str "''",Space,Str "tggd''",SoftBreak,Str "i)",Space,Str "**bold",Space,Str "**",Space,Str "//ital",Space,Str "//",Space,Str "__undr",Space,Str "__",Space,Str "--strk",Space,Str "--",Space,Str "``mono",Space,Str "``",Space,Str "\"\"raw",Space,Str "\"\"",Space,Str "''tggd",Space,Str "''",SoftBreak,Str "i)",Space,Str "**",Space,Str "bold",Space,Str "**",Space,Str "//",Space,Str "ital",Space,Str "//",Space,Str "__",Space,Str "undr",Space,Str "__",Space,Str "--",Space,Str "strk",Space,Str "--",Space,Str "``",Space,Str "mono",Space,Str "``",Space,Str "\"\"",Space,Str "raw",Space,Str "\"\"",Space,Str "''",Space,Str "tggd",Space,Str "''"]
-,Header 1 ("link",[],[]) [Str "Link"]
-,Para [Link ("",[],[]) [Str "mailto:user@domain.com"] ("user@domain.com",""),SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com"] ("user@domain.com",""),Str ".",SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com"] ("user@domain.com",""),Str ".",Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "mailto:user@domain.com"] ("user@domain.com",""),Str ".",Space,Str "any",Space,Str "text.",SoftBreak,Link ("",[],[]) [Str "label"] ("user@domain.com",""),SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com?subject=bla"] ("user@domain.com?subject=bla",""),SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com?subject=bla"] ("user@domain.com?subject=bla",""),Str ".",SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com?subject=bla"] ("user@domain.com?subject=bla",""),Str ",",SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com?subject=bla&cc=otheruser@domain.com"] ("user@domain.com?subject=bla&cc=otheruser@domain.com",""),SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com?subject=bla&cc=otheruser@domain.com"] ("user@domain.com?subject=bla&cc=otheruser@domain.com",""),Str ".",SoftBreak,Link ("",[],[]) [Str "mailto:user@domain.com?subject=bla&cc=otheruser@domain.com"] ("user@domain.com?subject=bla&cc=otheruser@domain.com",""),Str ",",SoftBreak,Link ("",[],[]) [Str "label"] ("user@domain.com?subject=bla&cc=otheruser@domain.com",""),Str ".",SoftBreak,Link ("",[],[]) [Str "label"] ("user@domain.com?subject=bla&cc=otheruser@domain.com.",""),Str ".",SoftBreak,Link ("",[],[]) [Str "http://www.domain.com"] ("http://www.domain.com",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/"] ("http://www.domain.com/dir/",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir///"] ("http://www.domain.com/dir///",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com."] ("http://www.domain.com.",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com,"] ("http://www.domain.com,",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com."] ("http://www.domain.com.",""),Space,Str "any",Space,Str "text.",SoftBreak,Link ("",[],[]) [Str "http://www.domain.com,"] ("http://www.domain.com,",""),Space,Str "any",Space,Str "text.",SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/."] ("http://www.domain.com/dir/.",""),Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "http://www.domain.com."] ("http://www.domain.com.",""),Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "http://www.domain.com/dir/."] ("http://www.domain.com/dir/.",""),Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "http://www.domain.com/dir/index.html."] ("http://www.domain.com/dir/index.html.",""),Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "http://www.domain.com/dir/index.html,"] ("http://www.domain.com/dir/index.html,",""),Space,Str "any",Space,Str "text.",SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/#anchor"] ("http://www.domain.com/dir/#anchor",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/index.html#anchor"] ("http://www.domain.com/dir/index.html#anchor",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/index.html#anchor."] ("http://www.domain.com/dir/index.html#anchor.",""),SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/#anchor."] ("http://www.domain.com/dir/#anchor.",""),Space,Str "any",Space,Str "text.",SoftBreak,Link ("",[],[]) [Str "http://www.domain.com/dir/index.html#anchor."] ("http://www.domain.com/dir/index.html#anchor.",""),Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "http://www.domain.com/dir/#anchor."] ("http://www.domain.com/dir/#anchor.",""),Space,Str "any",Space,Str "text.",SoftBreak,Str "any",Space,Str "text:",Space,Link ("",[],[]) [Str "http://www.domain.com/dir/index.html#anchor."] ("http://www.domain.com/dir/index.html#anchor.",""),Space,Str "any",Space,Str "text.",SoftBreak,Link ("",[],[]) [Str "http://domain.com?a=a@a.a&b=a+b+c."] ("http://domain.com?a=a@a.a&b=a+b+c.",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com?a=a@a.a&b=a+b+c,"] ("http://domain.com?a=a@a.a&b=a+b+c,",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c."] ("http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@."] ("http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com?a=a@a.a&b=a+b+c.#anchor"] ("http://domain.com?a=a@a.a&b=a+b+c.#anchor",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor"] ("http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor"] ("http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor",""),SoftBreak,Link ("",[],[]) [Str "http://user:password@domain.com/bla.html."] ("http://user:password@domain.com/bla.html.",""),SoftBreak,Link ("",[],[]) [Str "http://user:password@domain.com/dir/."] ("http://user:password@domain.com/dir/.",""),SoftBreak,Link ("",[],[]) [Str "http://user:password@domain.com."] ("http://user:password@domain.com.",""),SoftBreak,Link ("",[],[]) [Str "http://user:@domain.com."] ("http://user:@domain.com.",""),SoftBreak,Link ("",[],[]) [Str "http://user@domain.com."] ("http://user@domain.com.",""),SoftBreak,Link ("",[],[]) [Str "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor"] ("http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor",""),SoftBreak,Link ("",[],[]) [Str "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor"] ("http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor",""),SoftBreak,Link ("",[],[]) [Str "label"] ("www.domain.com",""),SoftBreak,Str "[",Space,Str "label",Space,Link ("",[],[]) [Str "www.domain.com"] ("www.domain.com",""),Str "]",SoftBreak,Link ("",[],[]) [Str "label",Space] ("www.domain.com",""),SoftBreak,Link ("",[],[]) [Str "anchor",Space] ("http://www.domain.com/dir/index.html#anchor.",""),SoftBreak,Link ("",[],[]) [Str "login",Space] ("http://user:password@domain.com/bla.html",""),SoftBreak,Link ("",[],[]) [Str "form",Space] ("http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.",""),SoftBreak,Link ("",[],[]) [Str "form",Space,Str "&",Space,Str "anchor"] ("http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor",""),SoftBreak,Link ("",[],[]) [Str "login",Space,Str "&",Space,Str "form",Space] ("http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.",""),SoftBreak,Link ("",[],[]) [Str "local",Space,Str "link",Space,Str "up",Space] ("..",""),SoftBreak,Link ("",[],[]) [Str "local",Space,Str "link",Space,Str "file",Space] ("bla.html",""),SoftBreak,Link ("",[],[]) [Str "local",Space,Str "link",Space,Str "anchor",Space] ("#anchor",""),SoftBreak,Link ("",[],[]) [Str "local",Space,Str "link",Space,Str "file/anchor"] ("bla.html#anchor",""),SoftBreak,Link ("",[],[]) [Str "local",Space,Str "link",Space,Str "file/anchor"] ("bla.html#anchor.",""),SoftBreak,Link ("",[],[]) [Str "local",Space,Str "link",Space,Str "img",Space] ("abc.gif",""),SoftBreak,Link ("",[],[]) [Str "www.fake.com"] ("www.domain.com",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm"] ("http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-"] ("http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-",""),SoftBreak,Link ("",[],[]) [Str "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_"] ("http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_",""),Str "-1%.",SoftBreak,Link ("",[],[]) [Str "http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_"] ("http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_",""),Str "-1%.",SoftBreak,Link ("",[],[]) [Str "http://L1.com"] ("http://L1.com",""),Space,Str "!",Space,Link ("",[],[]) [Str "mailto:L2@www.com"] ("L2@www.com",""),Space,Str "!",Space,Link ("",[],[]) [Str "L3"] ("www.com",""),Space,Str "!",Space,Link ("",[],[]) [Str "L4"] ("w@ww.com",""),Space,Str "!",Space,Link ("",[],[]) [Str "www.L5.com"] ("www.L5.com",""),SoftBreak,Link ("",[],[]) [Str "www.domain.com"] ("www.domain.com",""),SoftBreak,Link ("",[],[]) [Str "www2.domain.com"] ("www2.domain.com",""),SoftBreak,Link ("",[],[]) [Str "ftp.domain.com"] ("ftp.domain.com",""),SoftBreak,Link ("",[],[]) [Str "WWW.DOMAIN.COM"] ("WWW.DOMAIN.COM",""),SoftBreak,Link ("",[],[]) [Str "FTP.DOMAIN.COM"] ("FTP.DOMAIN.COM",""),SoftBreak,Link ("",[],[]) [Str "label"] ("www.domain.com",""),SoftBreak,Link ("",[],[]) [Str "label"] ("ftp.domain.com",""),SoftBreak,Link ("",[],[]) [Str "label"] ("WWW.DOMAIN.COM",""),SoftBreak,Link ("",[],[]) [Str "label"] ("FTP.DOMAIN.COM",""),SoftBreak,Str "[label",Space,Link ("",[],[]) [Str "www.domain.com"] ("www.domain.com",""),Space,Str "]",SoftBreak,Str "[label]",Space,Link ("",[],[]) [Str "www.domain.com"] ("www.domain.com",""),Str "]"]
-,Header 1 ("image",[],[]) [Str "Image"]
-,Para [Image ("",[],[]) [] ("img.png","")]
-,Para [Link ("",[],[]) [Image ("",[],[]) [] ("img.png","")] ("https://txt2tags.org","")]
-,Para [Image ("",[],[]) [] ("img.png",""),Space,Str "Image",Space,Str "at",Space,Str "the",Space,Str "line",Space,Str "beginning."]
-,Para [Str "Image",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Image ("",[],[]) [] ("img.png",""),Space,Str "of",Space,Str "the",Space,Str "line."]
-,Para [Str "Image",Space,Str "at",Space,Str "the",Space,Str "line",Space,Str "end.",Space,Image ("",[],[]) [] ("img.png","")]
-,Para [Image ("",[],[]) [] ("img.png",""),SoftBreak,Image ("",[],[]) [] ("img.png",""),SoftBreak,Image ("",[],[]) [] ("img.png","")]
-,Para [Image ("",[],[]) [] ("img.png",""),Image ("",[],[]) [] ("img.png","")]
-,Para [Str "Images",Space,Image ("",[],[]) [] ("img.png",""),Space,Str "mixed",Space,Image ("",[],[]) [] ("img.png",""),Space,Str "with",Space,Image ("",[],[]) [] ("img.png",""),Space,Str "text."]
-,Para [Str "Images",Space,Str "glued",Space,Str "together:",Space,Image ("",[],[]) [] ("img.png",""),Image ("",[],[]) [] ("img.png",""),Image ("",[],[]) [] ("img.png",""),Str "."]
-,Para [Str "[img.png",Space,Str "]"]
-,Para [Str "[",Space,Str "img.png]"]
-,Para [Str "[",Space,Str "img.png",Space,Str "]"]
-,Header 1 ("numtitle",[],[]) [Str "Numbered",Space,Str "Title"]
-,Header 1 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "1"]
-,Header 2 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "2"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 4 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "4"]
-,Header 5 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "5"]
-,Header 1 ("lab_el-1",[],[]) [Str "Title",Space,Str "Level",Space,Str "1"]
-,Header 2 ("lab_el-2",[],[]) [Str "Title",Space,Str "Level",Space,Str "2"]
-,Header 3 ("lab_el-3",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 4 ("lab_el-4",[],[]) [Str "Title",Space,Str "Level",Space,Str "4"]
-,Header 5 ("lab_el-5",[],[]) [Str "Title",Space,Str "Level",Space,Str "5"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("lab_el-9",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Para [Str "+Not",Space,Str "Title"]
-,Para [Str "++Not",Space,Str "Title+"]
-,Para [Str "+++Not",Space,Str "Title++++",SoftBreak,Str "++++++Not",Space,Str "Title",Space,Str "6++++++"]
-,Para [Str "+++++++Not",Space,Str "Title",Space,Str "7+++++++",SoftBreak,Str "+Not",Space,Str "Title+",Space,Str "[label1]",SoftBreak,Str "+Not",Space,Str "Title+[",Space,Str "label",Space,Str "]",SoftBreak,Str "+Not",Space,Str "Title+[la/bel]"]
-,Header 1 ("title",[],[]) [Str "Title"]
-,Header 1 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "1"]
-,Header 2 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "2"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 4 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "4"]
-,Header 5 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "5"]
-,Header 1 ("lab_el-1",[],[]) [Str "Title",Space,Str "Level",Space,Str "1"]
-,Header 2 ("lab_el-2",[],[]) [Str "Title",Space,Str "Level",Space,Str "2"]
-,Header 3 ("lab_el-3",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 4 ("lab_el-4",[],[]) [Str "Title",Space,Str "Level",Space,Str "4"]
-,Header 5 ("lab_el-5",[],[]) [Str "Title",Space,Str "Level",Space,Str "5"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Header 3 ("lab_el-9",[],[]) [Str "Title",Space,Str "Level",Space,Str "3"]
-,Para [Str "=Not",Space,Str "Title"]
-,Para [Str "==Not",Space,Str "Title="]
-,Para [Str "===Not",Space,Str "Title====",SoftBreak,Str "======Not",Space,Str "Title",Space,Str "6======"]
-,Para [Str "=======Not",Space,Str "Title",Space,Str "7=======",SoftBreak,Str "=Not",Space,Str "Title=",Space,Str "[label1]",SoftBreak,Str "=Not",Space,Str "Title=[",Space,Str "label",Space,Str "]",SoftBreak,Str "=Not",Space,Str "Title=[la/bel]"]
-,Header 1 ("quote",[],[]) [Str "Quote"]
-,BlockQuote
- [Para [Str "To",Space,Str "quote",Space,Str "a",Space,Str "paragraph,",Space,Str "just",Space,Str "prefix",Space,Str "it",Space,Str "by",Space,Str "a",Space,Str "TAB",SoftBreak,Str "character.",Space,Str "All",Space,Str "the",Space,Str "lines",Space,Str "of",Space,Str "the",Space,Str "paragraph",Space,Str "must",SoftBreak,Str "begin",Space,Str "with",Space,Str "a",Space,Str "TAB."]]
-,Para [Str "Any",Space,Str "non-tabbed",Space,Str "line",Space,Str "closes",Space,Str "the",Space,Str "quote",Space,Str "block."]
-,BlockQuote
- [Para [Str "The",Space,Str "number",Space,Str "of",Space,Str "leading",Space,Str "TABs",Space,Str "identifies",Space,Str "the",Space,Str "quote",SoftBreak,Str "block",Space,Str "depth.",Space,Str "This",Space,Str "is",Space,Str "quote",Space,Str "level",Space,Str "1."]
- ,BlockQuote
- [Para [Str "With",Space,Str "two",Space,Str "TABs,",Space,Str "we",Space,Str "are",Space,Str "on",Space,Str "the",Space,Str "quote",SoftBreak,Str "level",Space,Str "2."]
- ,BlockQuote
- [Para [Str "The",Space,Str "more",Space,Str "TABs,",Space,Str "more",Space,Str "deep",Space,Str "is",SoftBreak,Str "the",Space,Str "quote",Space,Str "level."]
- ,BlockQuote
- [Para [Str "There",Space,Str "isn't",Space,Str "a",Space,Str "limit."]]]]]
-,BlockQuote
- [BlockQuote
- [BlockQuote
- [BlockQuote
- [Para [Str "This",Space,Str "quote",Space,Str "starts",Space,Str "at",SoftBreak,Str "level",Space,Str "4."]]
- ,Para [Str "Then",Space,Str "its",Space,Str "depth",Space,Str "is",Space,Str "decreased."]]
- ,Para [Str "Counting",Space,Str "down,",Space,Str "one",Space,Str "by",Space,Str "one."]]
- ,Para [Str "Until",Space,Str "the",Space,Str "level",Space,Str "1."]]
-,BlockQuote
- [BlockQuote
- [BlockQuote
- [Para [Str "Unlike",Space,Str "lists,",Space,Str "any",Space,Str "quote",Space,Str "block",Space,Str "is",SoftBreak,Str "independent,",Space,Str "not",Space,Str "part",Space,Str "of",Space,Str "a",Space,Str "tree."]]]
- ,Para [Str "The",Space,Str "TAB",Space,Str "count",Space,Str "don't",Space,Str "need",Space,Str "to",Space,Str "be",Space,Str "incremental",SoftBreak,Str "by",Space,Str "one."]
- ,BlockQuote
- [BlockQuote
- [BlockQuote
- [Para [Str "The",Space,Str "nesting",Space,Str "don't",Space,Str "need",SoftBreak,Str "to",Space,Str "follow",Space,Str "any",Space,Str "rule."]]]
- ,Para [Str "Quotes",Space,Str "can",Space,Str "be",Space,Str "opened",Space,Str "and",Space,Str "closed",SoftBreak,Str "in",Space,Str "any",Space,Str "way."]
- ,BlockQuote
- [BlockQuote
- [BlockQuote
- [Para [Str "You",Space,Str "choose."]]]]]]
-,BlockQuote
- [Para [Str "Some",Space,Str "targets",Space,Str "(as",Space,Str "sgml)",Space,Str "don't",Space,Str "support",Space,Str "the",SoftBreak,Str "nesting",Space,Str "of",Space,Str "quotes.",Space,Str "There",Space,Str "is",Space,Str "only",Space,Str "one",Space,Str "quote",SoftBreak,Str "level."]
- ,BlockQuote
- [Para [Str "In",Space,Str "this",Space,Str "case,",Space,Str "no",Space,Str "matter",Space,Str "how",Space,Str "much",SoftBreak,Str "TABs",Space,Str "are",Space,Str "used",Space,Str "to",Space,Str "define",Space,Str "the",Space,Str "quote",SoftBreak,Str "block,",Space,Str "it",Space,Str "always",Space,Str "will",Space,Str "be",Space,Str "level",Space,Str "1."]]]
-,BlockQuote
- [Para [Str "Spaces",Space,Str "AFTER",Space,Str "the",Space,Str "TAB",Space,Str "character",Space,Str "are",Space,Str "allowed.",SoftBreak,Str "But",Space,Str "be",Space,Str "careful,",Space,Str "it",Space,Str "can",Space,Str "be",Space,Str "confusing."]]
-,Para [Str "Spaces",Space,Str "BEFORE",Space,Str "the",Space,Str "TAB",Space,Str "character",SoftBreak,Str "invalidate",Space,Str "the",Space,Str "mark.",Space,Str "It's",Space,Str "not",Space,Str "quote."]
-,BlockQuote
- [Para [Str "Paragraph",Space,Str "breaks",Space,Str "inside",Space,Str "a",Space,Str "quote",Space,Str "aren't",SoftBreak,Str "possible."]
- ,Para [Str "This",Space,Str "sample",Space,Str "are",Space,Str "two",Space,Str "separated",Space,Str "quoted",SoftBreak,Str "paragraphs,",Space,Str "not",Space,Str "a",Space,Str "quote",Space,Str "block",Space,Str "with",SoftBreak,Str "two",Space,Str "paragraphs",Space,Str "inside."]]
-,BlockQuote
- [Para [Str "The",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "file",Space,Str "(EOF)",Space,Str "closes",Space,Str "the",SoftBreak,Str "currently",Space,Str "open",Space,Str "quote",Space,Str "block."]]
-,Header 1 ("raw",[],[]) [Str "Raw"]
-,Para [Str "A raw line.\n"]
-,Para [Str " Another raw line, with leading spaces.\n"]
-,Para [Str "A raw area delimited\n by lines with marks.\n"]
-,Para [Str "Trailing spaces and TABs after the area marks\nare allowed, but not encouraged nor documented.\n"]
-,Para [Str "\"\"\"Not",Space,Str "a",Space,Str "raw",Space,Str "line,",Space,Str "need",Space,Str "one",Space,Str "space",Space,Str "after",Space,Str "mark."]
-,Para [Str "\"\"\"",SoftBreak,Str "Not",Space,Str "a",Space,Str "raw",Space,Str "area.",SoftBreak,Str "The",Space,Str "marks",Space,Str "must",Space,Str "be",Space,Str "at",Space,Str "the",Space,Str "line",Space,Str "beginning,",SoftBreak,Str "no",Space,Str "leading",Space,Str "spaces.",SoftBreak,Str "\"\"\""]
-,Para [Str "The end of the file (EOF) closes\nthe currently open raw area.\n"]
-,Header 1 ("verbatim",[],[]) [Str "Verbatim"]
-,CodeBlock ("",[],[]) "A verbatim line.\n"
-,CodeBlock ("",[],[]) " Another verbatim line, with leading spaces.\n"
-,CodeBlock ("",[],[]) "A verbatim area delimited\n by lines with marks.\n"
-,CodeBlock ("",[],[]) "Trailing spaces and TABs after the area marks\nare allowed, but not encouraged nor documented.\n"
-,Para [Str "```Not",Space,Str "a",Space,Str "verbatim",Space,Str "line,",Space,Str "need",Space,Str "one",Space,Str "space",Space,Str "after",Space,Str "mark."]
-,Para [Str "```",SoftBreak,Str "Not",Space,Str "a",Space,Str "verbatim",Space,Str "area.",SoftBreak,Str "The",Space,Str "marks",Space,Str "must",Space,Str "be",Space,Str "at",Space,Str "the",Space,Str "line",Space,Str "beginning,",SoftBreak,Str "no",Space,Str "leading",Space,Str "spaces.",SoftBreak,Str "```"]
-,CodeBlock ("",[],[]) "The end of the file (EOF) closes\nthe currently open verbatim area.\n"
-,Header 1 ("deflist",[],[]) [Str "Definition",Space,Str "List"]
-,DefinitionList
- [([Str "Definition",Space,Str "list"],
- [[Plain [Str "A",Space,Str "list",Space,Str "with",Space,Str "terms"]]])
- ,([Str "Start",Space,Str "term",Space,Str "with",Space,Str "colon"],
- [[Plain [Str "And",Space,Str "its",Space,Str "definition",Space,Str "follows"]]])]
-,Header 1 ("numlist",[],[]) [Str "Numbered",Space,Str "List"]
-,Para [Str "See",Space,Link ("",[],[]) [Str "List"] ("#list",""),Str ",",Space,Str "the",Space,Str "same",Space,Str "rules",Space,Str "apply."]
-,Header 1 ("list",[],[]) [Str "List"]
-,BulletList
- [[Plain [Str "Use",Space,Str "the",Space,Str "hyphen",Space,Str "to",Space,Str "prefix",Space,Str "list",Space,Str "items."]]
- ,[Plain [Str "There",Space,Str "must",Space,Str "be",Space,Str "one",Space,Str "space",Space,Str "after",Space,Str "the",Space,Str "hyphen."]]
- ,[Plain [Str "The",Space,Str "list",Space,Str "is",Space,Str "closed",Space,Str "by",Space,Str "two",Space,Str "consecutive",Space,Str "blank",Space,Str "lines."]]]
-,BulletList
- [[Plain [Str "The",Space,Str "list",Space,Str "can",Space,Str "be",Space,Str "indented",Space,Str "on",Space,Str "the",Space,Str "source",Space,Str "document."]]
- ,[Plain [Str "You",Space,Str "can",Space,Str "use",Space,Str "any",Space,Str "number",Space,Str "of",Space,Str "spaces."]]
- ,[Plain [Str "The",Space,Str "result",Space,Str "will",Space,Str "be",Space,Str "the",Space,Str "same."]]]
-,BulletList
- [[Para [Str "Let",Space,Str "one",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "the",Space,Str "list",Space,Str "items."]]
- ,[Para [Str "It",Space,Str "will",Space,Str "be",Space,Str "maintained",Space,Str "on",Space,Str "the",Space,Str "conversion."]]
- ,[Para [Str "Some",Space,Str "targets",Space,Str "don't",Space,Str "support",Space,Str "this",Space,Str "behavior."]]
- ,[Para [Str "This",Space,Str "one",Space,Str "was",Space,Str "separated",Space,Str "by",Space,Str "a",Space,Str "line",Space,Str "with",Space,Str "blanks.",SoftBreak,Str "You",Space,Str "can",Space,Str "also",Space,Str "put",Space,Str "a",Space,Str "blank",Space,Str "line",Space,Str "inside"]
- ,Para [Str "the",Space,Str "item",Space,Str "contents",Space,Str "and",Space,Str "it",Space,Str "will",Space,Str "be",Space,Str "preserved."]]]
-,Para [Str "-This",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "list",Space,Str "(no",Space,Str "space)"]
-,Para [Str "-",Space,Str "This",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "list",Space,Str "(more",Space,Str "than",Space,Str "one",Space,Str "space)"]
-,Para [Str "-",Space,Str "This",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "list",Space,Str "(a",Space,Str "TAB",Space,Str "instead",Space,Str "the",Space,Str "space)"]
-,BulletList
- [[BulletList
- [[Plain [Str "This",Space,Str "is",Space,Str "a",Space,Str "list"]]]]
- ,[OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "This",Space,Str "is",Space,Str "a",Space,Str "list"]]]]
- ,[DefinitionList
- [([Str "This",Space,Str "is",Space,Str "a",Space,Str "list"],
- [[]])]]]
-,BulletList
- [[Plain [Str "This",Space,Str "is",Space,Str "the",Space,Str "\"mother\"",Space,Str "list",Space,Str "first",Space,Str "item."]]
- ,[Plain [Str "Here",Space,Str "is",Space,Str "the",Space,Str "second,",Space,Str "but",Space,Str "inside",Space,Str "this",Space,Str "item,"]
- ,BulletList
- [[Plain [Str "there",Space,Str "is",Space,Str "a",Space,Str "sublist,",Space,Str "with",Space,Str "its",Space,Str "own",Space,Str "items."]]
- ,[Plain [Str "Note",Space,Str "that",Space,Str "the",Space,Str "items",Space,Str "of",Space,Str "the",Space,Str "same",Space,Str "sublist"]]
- ,[Plain [Str "must",Space,Str "have",Space,Str "the",Space,Str "same",Space,Str "indentation."]
- ,BulletList
- [[Plain [Str "And",Space,Str "this",Space,Str "can",Space,Str "go",Space,Str "on,",Space,Str "opening",Space,Str "sublists."]
- ,BulletList
- [[Plain [Str "Just",Space,Str "add",Space,Str "leading",Space,Str "spaces",Space,Str "before",Space,Str "the"]]
- ,[Plain [Str "hyphen",Space,Str "and",Space,Str "sublists",Space,Str "will",Space,Str "be",Space,Str "opened."]]
- ,[Plain [Str "The",Space,Str "two",Space,Str "blank",Space,Str "lines",Space,Str "closes",Space,Str "them",Space,Str "all."]]]]]]]]]
-,BulletList
- [[Plain [Str "When",Space,Str "nesting",Space,Str "lists,",Space,Str "the",Space,Str "additional",Space,Str "spaces",Space,Str "are",Space,Str "free."]]
- ,[Plain [Str "You",Space,Str "can",Space,Str "add",Space,Str "just",Space,Str "one,"]
- ,BulletList
- [[Plain [Str "or",Space,Str "many."]
- ,BulletList
- [[Plain [Str "What",Space,Str "matters",Space,Str "is",Space,Str "to",Space,Str "put",Space,Str "more",Space,Str "than",Space,Str "the",Space,Str "previous."]]
- ,[Plain [Str "But",Space,Str "remember",Space,Str "that",Space,Str "the",Space,Str "other",Space,Str "items",Space,Str "of",Space,Str "the",Space,Str "same",Space,Str "list"]]
- ,[Plain [Str "must",Space,Str "use",Space,Str "the",Space,Str "same",Space,Str "indentation."]]]]]]]
-,BulletList
- [[Plain [Str "There",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "depth",Space,Str "limit,"]
- ,BulletList
- [[Plain [Str "you",Space,Str "can",Space,Str "go",Space,Str "deeper",Space,Str "and",Space,Str "deeper."]
- ,BulletList
- [[Plain [Str "But",Space,Str "some",Space,Str "targets",Space,Str "may",Space,Str "have",Space,Str "restrictions."]
- ,BulletList
- [[Plain [Str "The",Space,Str "LaTeX",Space,Str "maximum",Space,Str "is",Space,Str "here,",Space,Str "4",Space,Str "levels."]]]]]]]]]
-,BulletList
- [[Plain [Str "Reverse",Space,Str "nesting",Space,Str "doesn't",Space,Str "work."]]
- ,[Plain [Str "Because",Space,Str "a",Space,Str "sublist",Space,Str "*must*",Space,Str "have",Space,Str "a",Space,Str "mother",Space,Str "list."]]
- ,[Plain [Str "It's",Space,Str "the",Space,Str "list",Space,Str "concept,",Space,Str "not",Space,Str "a",Space,Str "txt2tags",Space,Str "limitation."]]
- ,[Plain [Str "All",Space,Str "this",Space,Str "sublists",Space,Str "will",Space,Str "be",Space,Str "bumped",Space,Str "to",Space,Str "mother",Space,Str "lists."]]
- ,[Plain [Str "At",Space,Str "level",Space,Str "1,",Space,Str "like",Space,Str "this",Space,Str "one."]]]
-,BulletList
- [[Plain [Str "Level",Space,Str "1"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "2"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "4"]]]]
- ,[Plain [Str "Level",Space,Str "3",Space,Str "--",Space,Str "(closed",Space,Str "Level",Space,Str "4)"]]]]
- ,[Plain [Str "Level",Space,Str "2",Space,Str "--",Space,Str "(closed",Space,Str "Level",Space,Str "3)"]]]]
- ,[Plain [Str "Level",Space,Str "1",Space,Str "--",Space,Str "(closed",Space,Str "Level",Space,Str "2)"]]]
-,BulletList
- [[Plain [Str "Level",Space,Str "1"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "2"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "4"]]]]]]]]
- ,[Plain [Str "Level",Space,Str "1",Space,Str "--",Space,Str "(closed",Space,Str "Level",Space,Str "4,",Space,Str "Level",Space,Str "3",Space,Str "and",Space,Str "Level",Space,Str "2)"]]]
-,BulletList
- [[Para [Str "Level",Space,Str "1"]
- ,BulletList
- [[Para [Str "Level",Space,Str "2",Space,Str "--",Space,Str "blank",Space,Str "BEFORE",Space,Str "and",Space,Str "AFTER",Space,Str "(in)"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]]]]]]]
-,BulletList
- [[Plain [Str "Level",Space,Str "4"]]]
-,BulletList
- [[Para [Str "Level",Space,Str "3"]]
- ,[Para [Str "Level",Space,Str "2",Space,Str "--",Space,Str "blank",Space,Str "BEFORE",Space,Str "and",Space,Str "AFTER",Space,Str "(out)"]]
- ,[Para [Str "Level",Space,Str "1"]
- ,BulletList
- [[Para [Str "Level",Space,Str "2",Space,Str "--",Space,Str "blank",Space,Str "BEFORE",Space,Str "(spaces)",Space,Str "and",Space,Str "AFTER",Space,Str "(TAB)"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]]]]]]]
-,BulletList
- [[Plain [Str "Level",Space,Str "1"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "2"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "4"]]
- ,[Plain [Str "Level",Space,Str "3.5",Space,Str "???"]]]]
- ,[Plain [Str "Level",Space,Str "3"]]
- ,[Plain [Str "Level",Space,Str "2.5",Space,Str "???"]]]]
- ,[Plain [Str "Level",Space,Str "2"]]
- ,[Plain [Str "Level",Space,Str "1.5",Space,Str "???"]]]]
- ,[Plain [Str "Level",Space,Str "1"]]]
-,BulletList
- [[Plain [Str "This",Space,Str "list",Space,Str "is",Space,Str "closed",Space,Str "by",Space,Str "a",Space,Str "line",Space,Str "with",Space,Str "spaces",Space,Str "and",Space,Str "other",Space,Str "with",Space,Str "TABs"]]]
-,BulletList
- [[Plain [Str "This",Space,Str "list",Space,Str "is",Space,Str "NOT",Space,Str "closed",Space,Str "by",Space,Str "two",Space,Str "comment",Space,Str "lines"]]]
-,BulletList
- [[Plain [Str "This",Space,Str "list",Space,Str "is",Space,Str "closed",Space,Str "by",Space,Str "a",Space,Str "line",Space,Str "with",Space,Str "spaces",Space,Str "and",Space,Str "TAB,"]]
- ,[Plain [Str "then",Space,Str "a",Space,Str "comment",Space,Str "line,",Space,Str "then",Space,Str "an",Space,Str "empty",Space,Str "line."]]]
-,BulletList
- [[Plain [Str "Level",Space,Str "1"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "2"]
- ,BulletList
- [[Plain [Str "Level",Space,Str "3"]]]
- ,Plain [Str "-",SoftBreak,Str "Level",Space,Str "2"]]]
- ,Plain [Str "-",SoftBreak,Str "Level",Space,Str "1"]]]
-,Para [Str "-"]
-,BulletList
- [[Plain [Str "Empty",Space,Str "item",Space,Str "with",Space,Str "trailing",Space,Str "spaces."]]]
-,Para [Str "-"]
-,BulletList
- [[Plain [Str "Empty",Space,Str "item",Space,Str "with",Space,Str "trailing",Space,Str "TAB."]]]
-,Para [Str "-"]
-,BulletList
- [[Plain [Str "If",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "file",Space,Str "(EOF)",Space,Str "is",Space,Str "hit,"]
- ,BulletList
- [[Plain [Str "all",Space,Str "the",Space,Str "currently",Space,Str "opened",Space,Str "list",Space,Str "are",Space,Str "closed,"]
- ,BulletList
- [[Plain [Str "just",Space,Str "like",Space,Str "when",Space,Str "using",Space,Str "the",Space,Str "two",Space,Str "blank",Space,Str "lines."]]]]]]]
-,Header 1 ("table",[],[]) [Str "Table"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignRight,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3"]]]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "||",Space,Str "Cell",Space,Str "1",Space,Str "|",Space,Str "Cell",Space,Str "2",Space,Str "|",Space,Str "Cell",Space,Str "3",Space,Str "|"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Cell",Space,Str "3"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Heading"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Heading"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Heading"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "<-"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "--"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "->"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "--"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "--"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "--"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "->"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "--"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "<-"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3+4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,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 "1+2+3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2+3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1+2+3+4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "7"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "8"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "A"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "B"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "D"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "E"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "F"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Jan"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Fev"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Mar"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Apr"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "May"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "20%"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "40%"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "60%"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "80%"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "100%"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "/"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "/",Space,Str "/",Space,Str "/",Space,Str "/",Space,Str "/"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "/",Space,Str "/",Space,Str "/",Space,Str "/",Space,Str "/",Space,Str "/",Space,Str "/",Space,Str "/",Space,Str "/"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "o"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "o"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "."]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "=",Space,Str "=",Space,Str "=",Space,Str "="]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "01"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "02"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "05"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "07"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "11"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "13"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "16"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "17"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "19"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "20"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "23"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "25"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "26"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "29"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "30"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "32"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "35"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "37"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "39"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "40"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)
- ,(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "6"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "7"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "8"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "9"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "A"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "B"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "C"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "D"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "E"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "F"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "0"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "3"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "4"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "5"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "6"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "7"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "8"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "9"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "A"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "B"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "C"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "D"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "E"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "F"]]]])]
- (TableFoot ("",[],[])
- [])
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignCenter,ColWidthDefault)]
- (TableHead ("",[],[])
- [])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])]
- (TableFoot ("",[],[])
- [])
-,Para [Str "|this|is|not|a|table|"]
-,Para [Str "|this|",Space,Str "is|",Space,Str "not|",Space,Str "a|",Space,Str "table|"]
-,Para [Str "|this",Space,Str "|is",Space,Str "|not",Space,Str "|a",Space,Str "|table",Space,Str "|"]
-,Para [Str "|",Space,Str "this\t|",Space,Str "is\t|",Space,Str "not\t|",Space,Str "a\t|",Space,Str "table\t|"]
-,HorizontalRule
-,Para [Str "The",Space,Str "End."]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author", MetaList [ MetaInlines [ Str "author" ] ] )
+ ,
+ ( "date", MetaInlines [ Str "date" ] )
+ ,
+ ( "includeconf", MetaString "rules.conf" )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Txt2tags", Space, Str "Markup", Space, Str "Rules" ]
+ )
+ ]
+ }
+ )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "document"
+ , Space
+ , Str "describes"
+ , Space
+ , Str "all"
+ , Space
+ , Str "the"
+ , Space
+ , Str "details"
+ , Space
+ , Str "about"
+ , Space
+ , Str "each"
+ , Space
+ , Str "txt2tags"
+ , Space
+ , Str "mark."
+ , SoftBreak
+ , Str "The"
+ , Space
+ , Str "target"
+ , Space
+ , Str "audience"
+ , Space
+ , Str "are"
+ , Space
+ , Strong
+ [ Str "experienced" ]
+ , Space
+ , Str "users."
+ , Space
+ , Str "You"
+ , Space
+ , Str "may"
+ , Space
+ , Str "find"
+ , Space
+ , Str "it"
+ , SoftBreak
+ , Str "useful"
+ , Space
+ , Str "if"
+ , Space
+ , Str "you"
+ , Space
+ , Str "want"
+ , Space
+ , Str "to"
+ , Space
+ , Str "master"
+ , Space
+ , Str "the"
+ , Space
+ , Str "marks"
+ , Space
+ , Str "or"
+ , Space
+ , Str "solve"
+ , Space
+ , Str "a"
+ , Space
+ , Str "specific"
+ , Space
+ , Str "problem"
+ , SoftBreak
+ , Str "about"
+ , Space
+ , Str "a"
+ , Space
+ , Str "mark."
+ ]
+ , Para
+ [ Str "If"
+ , Space
+ , Str "you"
+ , Space
+ , Str "are"
+ , Space
+ , Str "new"
+ , Space
+ , Str "to"
+ , Space
+ , Str "txt2tags"
+ , Space
+ , Str "or"
+ , Space
+ , Str "just"
+ , Space
+ , Str "want"
+ , Space
+ , Str "to"
+ , Space
+ , Str "know"
+ , Space
+ , Str "which"
+ , Space
+ , Str "are"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "available"
+ , Space
+ , Str "marks,"
+ , Space
+ , Str "please"
+ , Space
+ , Str "read"
+ , Space
+ , Str "the"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "Markup", Space, Str "Demo" ]
+ ( "MARKUPDEMO", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Note"
+ , Space
+ , Str "1:"
+ , Space
+ , Str "This"
+ , Space
+ , Str "document"
+ , Space
+ , Str "is"
+ , Space
+ , Str "generated"
+ , Space
+ , Str "directly"
+ , Space
+ , Str "from"
+ , Space
+ , Str "the"
+ , Space
+ , Str "txt2tags"
+ , SoftBreak
+ , Str "test-suite."
+ , Space
+ , Str "All"
+ , Space
+ , Str "the"
+ , Space
+ , Str "rules"
+ , Space
+ , Str "mentioned"
+ , Space
+ , Str "here"
+ , Space
+ , Str "are"
+ , Space
+ , Str "100%"
+ , Space
+ , Str "in"
+ , Space
+ , Str "sync"
+ , Space
+ , Str "with"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "current"
+ , Space
+ , Str "program"
+ , Space
+ , Str "code."
+ ]
+ , Para
+ [ Str "Note"
+ , Space
+ , Str "2:"
+ , Space
+ , Str "A"
+ , Space
+ , Str "good"
+ , Space
+ , Str "practice"
+ , Space
+ , Str "is"
+ , Space
+ , Str "to"
+ , Space
+ , Str "consult"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "the", Space, Str "sources" ]
+ ( "rules.t2t", "" )
+ , Space
+ , Str "when"
+ , SoftBreak
+ , Str "reading,"
+ , Space
+ , Str "to"
+ , Space
+ , Str "see"
+ , Space
+ , Str "how"
+ , Space
+ , Str "the"
+ , Space
+ , Str "texts"
+ , Space
+ , Str "were"
+ , Space
+ , Str "made."
+ ]
+ , Para
+ [ Str "Table", Space, Str "of", Space, Str "Contents:" ]
+ , HorizontalRule
+ , Header 1
+ ( "paragraph", [], [] )
+ [ Str "Paragraph" ]
+ , Para
+ [ Str "A"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "is"
+ , Space
+ , Str "composed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "one"
+ , Space
+ , Str "or"
+ , Space
+ , Str "more"
+ , Space
+ , Str "lines."
+ , SoftBreak
+ , Str "A"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "(or"
+ , Space
+ , Str "a"
+ , Space
+ , Str "table,"
+ , Space
+ , Str "or"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list)"
+ , Space
+ , Str "ends"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "current"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "Leading"
+ , Space
+ , Str "and"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "are"
+ , Space
+ , Str "ignored."
+ ]
+ , Para
+ [ Str "A"
+ , Space
+ , Str "comment"
+ , Space
+ , Str "line"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "placed"
+ , Space
+ , Str "inside"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph."
+ , SoftBreak
+ , Str "It"
+ , Space
+ , Str "will"
+ , Space
+ , Str "not"
+ , Space
+ , Str "affect"
+ , Space
+ , Str "it."
+ ]
+ , Para
+ [ Str "The"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "file"
+ , Space
+ , Str "(EOF)"
+ , Space
+ , Str "closes"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "currently"
+ , Space
+ , Str "open"
+ , Space
+ , Str "paragraph."
+ ]
+ , Header 1
+ ( "comment", [], [] )
+ [ Str "Comment" ]
+ , Para
+ [ Str "%"
+ , Space
+ , Str "not"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line"
+ , Space
+ , Str "beginning"
+ , Space
+ , Str "(at"
+ , Space
+ , Str "column"
+ , Space
+ , Str "2)"
+ ]
+ , Para
+ [ Str "some"
+ , Space
+ , Str "text"
+ , Space
+ , Str "%"
+ , Space
+ , Str "half"
+ , Space
+ , Str "line"
+ , Space
+ , Str "comments"
+ , Space
+ , Str "are"
+ , Space
+ , Str "not"
+ , Space
+ , Str "allowed"
+ ]
+ , Header 1
+ ( "line", [], [] )
+ [ Str "Line" ]
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , HorizontalRule
+ , Para
+ [ Strikeout
+ [ Str "-----" ]
+ , SoftBreak
+ , Strikeout
+ [ Str "-------", Space, Str "--------" ]
+ ]
+ , Para
+ [ Strikeout [ Str "-------+--------" ] ]
+ , Para
+ [ Str "("
+ , Space
+ , Strikeout
+ [ Str "----------------" ]
+ , Space
+ , Str ")"
+ ]
+ , Header 1
+ ( "inline", [], [] )
+ [ Str "Inline" ]
+ , Para
+ [ Str "i)"
+ , Space
+ , Strong
+ [ Str "b" ]
+ , Space
+ , Emph
+ [ Str "i" ]
+ , Space
+ , Underline
+ [ Str "u" ]
+ , Space
+ , Strikeout
+ [ Str "s" ]
+ , Space
+ , Code
+ ( "", [], [] ) "m"
+ , Space
+ , Str "r"
+ , Space
+ , RawInline
+ ( Format "html" ) "t"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "bo" ]
+ , Space
+ , Emph
+ [ Str "it" ]
+ , Space
+ , Underline
+ [ Str "un" ]
+ , Space
+ , Strikeout
+ [ Str "st" ]
+ , Space
+ , Code
+ ( "", [], [] ) "mo"
+ , Space
+ , Str "ra"
+ , Space
+ , RawInline
+ ( Format "html" ) "tg"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "bold" ]
+ , Space
+ , Emph
+ [ Str "ital" ]
+ , Space
+ , Underline
+ [ Str "undr" ]
+ , Space
+ , Strikeout
+ [ Str "strk" ]
+ , Space
+ , Code
+ ( "", [], [] ) "mono"
+ , Space
+ , Str "raw"
+ , Space
+ , RawInline
+ ( Format "html" ) "tggd"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "bo", Space, Str "ld" ]
+ , Space
+ , Emph
+ [ Str "it", Space, Str "al" ]
+ , Space
+ , Underline
+ [ Str "un", Space, Str "dr" ]
+ , Space
+ , Strikeout
+ [ Str "st", Space, Str "rk" ]
+ , Space
+ , Code
+ ( "", [], [] ) "mo no"
+ , Space
+ , Str "r"
+ , Space
+ , Str "aw"
+ , Space
+ , RawInline
+ ( Format "html" ) "tg gd"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "bo", Space, Str "*", Space, Str "ld" ]
+ , Space
+ , Emph
+ [ Str "it", Space, Str "/", Space, Str "al" ]
+ , Space
+ , Underline
+ [ Str "un", Space, Str "_", Space, Str "dr" ]
+ , Space
+ , Strikeout
+ [ Str "st", Space, Str "-", Space, Str "rk" ]
+ , Space
+ , Code
+ ( "", [], [] ) "mo ` no"
+ , Space
+ , Str "r"
+ , Space
+ , Str "\""
+ , Space
+ , Str "aw"
+ , Space
+ , RawInline
+ ( Format "html" ) "tg ' gd"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "bo", Space, Str "**ld" ]
+ , Space
+ , Emph
+ [ Str "it", Space, Str "//al" ]
+ , Space
+ , Underline
+ [ Str "un", Space, Str "__dr" ]
+ , Space
+ , Strikeout
+ [ Str "st", Space, Str "--rk" ]
+ , Space
+ , Code
+ ( "", [], [] ) "mo ``no"
+ , Space
+ , Str "r"
+ , Space
+ , Str "\"\"aw"
+ , Space
+ , RawInline
+ ( Format "html" ) "tg ''gd"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "bo", Space, Str "**", Space, Str "ld" ]
+ , Space
+ , Emph
+ [ Str "it", Space, Str "//", Space, Str "al" ]
+ , Space
+ , Underline
+ [ Str "un", Space, Str "__", Space, Str "dr" ]
+ , Space
+ , Strikeout
+ [ Str "st", Space, Str "--", Space, Str "rk" ]
+ , Space
+ , Code
+ ( "", [], [] ) "mo `` no"
+ , Space
+ , Str "r"
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "aw"
+ , Space
+ , RawInline
+ ( Format "html" ) "tg '' gd"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "**bold**" ]
+ , Space
+ , Emph
+ [ Str "//ital//" ]
+ , Space
+ , Underline
+ [ Str "__undr__" ]
+ , Space
+ , Strikeout
+ [ Str "--strk--" ]
+ , Space
+ , Code
+ ( "", [], [] ) "``mono``"
+ , Space
+ , Str "\"\"raw\"\""
+ , Space
+ , RawInline
+ ( Format "html" ) "''tggd''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "*bold*" ]
+ , Space
+ , Emph
+ [ Str "/ital/" ]
+ , Space
+ , Underline
+ [ Str "_undr_" ]
+ , Space
+ , Strikeout
+ [ Str "-strk-" ]
+ , Space
+ , Code
+ ( "", [], [] ) "`mono`"
+ , Space
+ , Str "\"raw\""
+ , Space
+ , RawInline
+ ( Format "html" ) "'tggd'"
+ ]
+ , Para
+ [ Str "i)"
+ , Space
+ , Strong
+ [ Str "*" ]
+ , Space
+ , Emph
+ [ Str "/" ]
+ , Space
+ , Underline
+ [ Str "_" ]
+ , Space
+ , Strikeout
+ [ Str "-" ]
+ , Space
+ , Code
+ ( "", [], [] ) "`"
+ , Space
+ , Str "\""
+ , Space
+ , RawInline
+ ( Format "html" ) "'"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "**" ]
+ , Space
+ , Emph
+ [ Str "//" ]
+ , Space
+ , Underline
+ [ Str "__" ]
+ , Space
+ , Strikeout
+ [ Str "--" ]
+ , Space
+ , Code
+ ( "", [], [] ) "``"
+ , Space
+ , Str "\"\""
+ , Space
+ , RawInline
+ ( Format "html" ) "''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "***" ]
+ , Space
+ , Emph
+ [ Str "///" ]
+ , Space
+ , Underline
+ [ Str "___" ]
+ , Space
+ , Strikeout
+ [ Str "---" ]
+ , Space
+ , Code
+ ( "", [], [] ) "```"
+ , Space
+ , Str "\"\"\""
+ , Space
+ , RawInline
+ ( Format "html" ) "'''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "****" ]
+ , Space
+ , Emph
+ [ Str "////" ]
+ , Space
+ , Underline
+ [ Str "____" ]
+ , Space
+ , Strikeout
+ [ Str "----" ]
+ , Space
+ , Code
+ ( "", [], [] ) "````"
+ , Space
+ , Str "\"\"\"\""
+ , Space
+ , RawInline
+ ( Format "html" ) "''''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "*****" ]
+ , Space
+ , Emph
+ [ Str "/////" ]
+ , Space
+ , Underline
+ [ Str "_____" ]
+ , Space
+ , Strikeout
+ [ Str "-----" ]
+ , Space
+ , Code
+ ( "", [], [] ) "`````"
+ , Space
+ , Str "\"\"\"\"\""
+ , Space
+ , RawInline
+ ( Format "html" ) "'''''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Strong
+ [ Str "******" ]
+ , Space
+ , Emph
+ [ Str "//////" ]
+ , Space
+ , Underline
+ [ Str "______" ]
+ , Space
+ , Strikeout
+ [ Str "------" ]
+ , Space
+ , Code
+ ( "", [], [] ) "``````"
+ , Space
+ , Str "\"\"\"\"\"\""
+ , Space
+ , RawInline
+ ( Format "html" ) "''''''"
+ ]
+ , Para
+ [ Str "i)"
+ , Space
+ , Str "****"
+ , Space
+ , Str "////"
+ , Space
+ , Str "____"
+ , Space
+ , Str "----"
+ , Space
+ , Str "````"
+ , Space
+ , Str "\"\"\"\""
+ , Space
+ , Str "''''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Str "**"
+ , Space
+ , Str "**"
+ , Space
+ , Str "//"
+ , Space
+ , Str "//"
+ , Space
+ , Str "__"
+ , Space
+ , Str "__"
+ , Space
+ , Str "--"
+ , Space
+ , Str "--"
+ , Space
+ , Str "``"
+ , Space
+ , Str "``"
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "''"
+ , Space
+ , Str "''"
+ ]
+ , Para
+ [ Str "i)"
+ , Space
+ , Str "**"
+ , Space
+ , Str "bold**"
+ , Space
+ , Str "//"
+ , Space
+ , Str "ital//"
+ , Space
+ , Str "__"
+ , Space
+ , Str "undr__"
+ , Space
+ , Str "--"
+ , Space
+ , Str "strk--"
+ , Space
+ , Str "``"
+ , Space
+ , Str "mono``"
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "raw\"\""
+ , Space
+ , Str "''"
+ , Space
+ , Str "tggd''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Str "**bold"
+ , Space
+ , Str "**"
+ , Space
+ , Str "//ital"
+ , Space
+ , Str "//"
+ , Space
+ , Str "__undr"
+ , Space
+ , Str "__"
+ , Space
+ , Str "--strk"
+ , Space
+ , Str "--"
+ , Space
+ , Str "``mono"
+ , Space
+ , Str "``"
+ , Space
+ , Str "\"\"raw"
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "''tggd"
+ , Space
+ , Str "''"
+ , SoftBreak
+ , Str "i)"
+ , Space
+ , Str "**"
+ , Space
+ , Str "bold"
+ , Space
+ , Str "**"
+ , Space
+ , Str "//"
+ , Space
+ , Str "ital"
+ , Space
+ , Str "//"
+ , Space
+ , Str "__"
+ , Space
+ , Str "undr"
+ , Space
+ , Str "__"
+ , Space
+ , Str "--"
+ , Space
+ , Str "strk"
+ , Space
+ , Str "--"
+ , Space
+ , Str "``"
+ , Space
+ , Str "mono"
+ , Space
+ , Str "``"
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "raw"
+ , Space
+ , Str "\"\""
+ , Space
+ , Str "''"
+ , Space
+ , Str "tggd"
+ , Space
+ , Str "''"
+ ]
+ , Header 1
+ ( "link", [], [] )
+ [ Str "Link" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com" ]
+ ( "user@domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com" ]
+ ( "user@domain.com", "" )
+ , Str "."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com" ]
+ ( "user@domain.com", "" )
+ , Str "."
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com" ]
+ ( "user@domain.com", "" )
+ , Str "."
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "user@domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com?subject=bla" ]
+ ( "user@domain.com?subject=bla", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com?subject=bla" ]
+ ( "user@domain.com?subject=bla", "" )
+ , Str "."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com?subject=bla" ]
+ ( "user@domain.com?subject=bla", "" )
+ , Str ","
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com?subject=bla&cc=otheruser@domain.com" ]
+ ( "user@domain.com?subject=bla&cc=otheruser@domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com?subject=bla&cc=otheruser@domain.com" ]
+ ( "user@domain.com?subject=bla&cc=otheruser@domain.com", "" )
+ , Str "."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:user@domain.com?subject=bla&cc=otheruser@domain.com" ]
+ ( "user@domain.com?subject=bla&cc=otheruser@domain.com", "" )
+ , Str ","
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "user@domain.com?subject=bla&cc=otheruser@domain.com", "" )
+ , Str "."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "user@domain.com?subject=bla&cc=otheruser@domain.com.", "" )
+ , Str "."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com" ]
+ ( "http://www.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/" ]
+ ( "http://www.domain.com/dir/", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir///" ]
+ ( "http://www.domain.com/dir///", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com." ]
+ ( "http://www.domain.com.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com," ]
+ ( "http://www.domain.com,", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com." ]
+ ( "http://www.domain.com.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com," ]
+ ( "http://www.domain.com,", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/." ]
+ ( "http://www.domain.com/dir/.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com." ]
+ ( "http://www.domain.com.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/." ]
+ ( "http://www.domain.com/dir/.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/index.html." ]
+ ( "http://www.domain.com/dir/index.html.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/index.html," ]
+ ( "http://www.domain.com/dir/index.html,", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/#anchor" ]
+ ( "http://www.domain.com/dir/#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/index.html#anchor" ]
+ ( "http://www.domain.com/dir/index.html#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/index.html#anchor." ]
+ ( "http://www.domain.com/dir/index.html#anchor.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/#anchor." ]
+ ( "http://www.domain.com/dir/#anchor.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/index.html#anchor." ]
+ ( "http://www.domain.com/dir/index.html#anchor.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/#anchor." ]
+ ( "http://www.domain.com/dir/#anchor.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Str "any"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "http://www.domain.com/dir/index.html#anchor." ]
+ ( "http://www.domain.com/dir/index.html#anchor.", "" )
+ , Space
+ , Str "any"
+ , Space
+ , Str "text."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com?a=a@a.a&b=a+b+c." ]
+ ( "http://domain.com?a=a@a.a&b=a+b+c.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com?a=a@a.a&b=a+b+c," ]
+ ( "http://domain.com?a=a@a.a&b=a+b+c,", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c." ]
+ ( "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@." ]
+ ( "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com?a=a@a.a&b=a+b+c.#anchor" ]
+ ( "http://domain.com?a=a@a.a&b=a+b+c.#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor" ]
+ ( "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor" ]
+ ( "http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user:password@domain.com/bla.html." ]
+ ( "http://user:password@domain.com/bla.html.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user:password@domain.com/dir/." ]
+ ( "http://user:password@domain.com/dir/.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user:password@domain.com." ]
+ ( "http://user:password@domain.com.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user:@domain.com." ]
+ ( "http://user:@domain.com.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user@domain.com." ]
+ ( "http://user@domain.com.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor" ]
+ ( "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor"
+ , ""
+ )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor" ]
+ ( "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor"
+ , ""
+ )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "www.domain.com", "" )
+ , SoftBreak
+ , Str "["
+ , Space
+ , Str "label"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "www.domain.com" ]
+ ( "www.domain.com", "" )
+ , Str "]"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label", Space ]
+ ( "www.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "anchor", Space ]
+ ( "http://www.domain.com/dir/index.html#anchor.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "login", Space ]
+ ( "http://user:password@domain.com/bla.html", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "form", Space ]
+ ( "http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "form", Space, Str "&", Space, Str "anchor" ]
+ ( "http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "login", Space, Str "&", Space, Str "form", Space ]
+ ( "http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "local", Space, Str "link", Space, Str "up", Space ]
+ ( "..", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "local", Space, Str "link", Space, Str "file", Space ]
+ ( "bla.html", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "local", Space, Str "link", Space, Str "anchor", Space ]
+ ( "#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "local", Space, Str "link", Space, Str "file/anchor" ]
+ ( "bla.html#anchor", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "local", Space, Str "link", Space, Str "file/anchor" ]
+ ( "bla.html#anchor.", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "local", Space, Str "link", Space, Str "img", Space ]
+ ( "abc.gif", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "www.fake.com" ]
+ ( "www.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm" ]
+ ( "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm"
+ , ""
+ )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-" ]
+ ( "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-"
+ , ""
+ )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_" ]
+ ( "http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_"
+ , ""
+ )
+ , Str "-1%."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_" ]
+ ( "http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_"
+ , ""
+ )
+ , Str "-1%."
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "http://L1.com" ]
+ ( "http://L1.com", "" )
+ , Space
+ , Str "!"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "mailto:L2@www.com" ]
+ ( "L2@www.com", "" )
+ , Space
+ , Str "!"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "L3" ]
+ ( "www.com", "" )
+ , Space
+ , Str "!"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "L4" ]
+ ( "w@ww.com", "" )
+ , Space
+ , Str "!"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "www.L5.com" ]
+ ( "www.L5.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "www.domain.com" ]
+ ( "www.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "www2.domain.com" ]
+ ( "www2.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "ftp.domain.com" ]
+ ( "ftp.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "WWW.DOMAIN.COM" ]
+ ( "WWW.DOMAIN.COM", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "FTP.DOMAIN.COM" ]
+ ( "FTP.DOMAIN.COM", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "www.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "ftp.domain.com", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "WWW.DOMAIN.COM", "" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "label" ]
+ ( "FTP.DOMAIN.COM", "" )
+ , SoftBreak
+ , Str "[label"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "www.domain.com" ]
+ ( "www.domain.com", "" )
+ , Space
+ , Str "]"
+ , SoftBreak
+ , Str "[label]"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "www.domain.com" ]
+ ( "www.domain.com", "" )
+ , Str "]"
+ ]
+ , Header 1
+ ( "image", [], [] )
+ [ Str "Image" ]
+ , Para
+ [ Image ( "", [], [] ) [] ( "img.png", "" ) ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Image ( "", [], [] ) [] ( "img.png", "" ) ]
+ ( "https://txt2tags.org", "" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Space
+ , Str "Image"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line"
+ , Space
+ , Str "beginning."
+ ]
+ , Para
+ [ Str "Image"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "middle"
+ , Space
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line."
+ ]
+ , Para
+ [ Str "Image"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line"
+ , Space
+ , Str "end."
+ , Space
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , SoftBreak
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , SoftBreak
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ ]
+ , Para
+ [ Str "Images"
+ , Space
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Space
+ , Str "mixed"
+ , Space
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Space
+ , Str "with"
+ , Space
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Space
+ , Str "text."
+ ]
+ , Para
+ [ Str "Images"
+ , Space
+ , Str "glued"
+ , Space
+ , Str "together:"
+ , Space
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Image
+ ( "", [], [] ) []
+ ( "img.png", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "[img.png", Space, Str "]" ]
+ , Para
+ [ Str "[", Space, Str "img.png]" ]
+ , Para
+ [ Str "[", Space, Str "img.png", Space, Str "]" ]
+ , Header 1
+ ( "numtitle", [], [] )
+ [ Str "Numbered", Space, Str "Title" ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "2" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 4
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "5" ]
+ , Header 1
+ ( "lab_el-1", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "lab_el-2", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "2" ]
+ , Header 3
+ ( "lab_el-3", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 4
+ ( "lab_el-4", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "lab_el-5", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "5" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "lab_el-9", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Para
+ [ Str "+Not", Space, Str "Title" ]
+ , Para
+ [ Str "++Not", Space, Str "Title+" ]
+ , Para
+ [ Str "+++Not"
+ , Space
+ , Str "Title++++"
+ , SoftBreak
+ , Str "++++++Not"
+ , Space
+ , Str "Title"
+ , Space
+ , Str "6++++++"
+ ]
+ , Para
+ [ Str "+++++++Not"
+ , Space
+ , Str "Title"
+ , Space
+ , Str "7+++++++"
+ , SoftBreak
+ , Str "+Not"
+ , Space
+ , Str "Title+"
+ , Space
+ , Str "[label1]"
+ , SoftBreak
+ , Str "+Not"
+ , Space
+ , Str "Title+["
+ , Space
+ , Str "label"
+ , Space
+ , Str "]"
+ , SoftBreak
+ , Str "+Not"
+ , Space
+ , Str "Title+[la/bel]"
+ ]
+ , Header 1
+ ( "title", [], [] )
+ [ Str "Title" ]
+ , Header 1
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "2" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 4
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "5" ]
+ , Header 1
+ ( "lab_el-1", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "lab_el-2", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "2" ]
+ , Header 3
+ ( "lab_el-3", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 4
+ ( "lab_el-4", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "lab_el-5", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "5" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Header 3
+ ( "lab_el-9", [], [] )
+ [ Str "Title", Space, Str "Level", Space, Str "3" ]
+ , Para
+ [ Str "=Not", Space, Str "Title" ]
+ , Para
+ [ Str "==Not", Space, Str "Title=" ]
+ , Para
+ [ Str "===Not"
+ , Space
+ , Str "Title===="
+ , SoftBreak
+ , Str "======Not"
+ , Space
+ , Str "Title"
+ , Space
+ , Str "6======"
+ ]
+ , Para
+ [ Str "=======Not"
+ , Space
+ , Str "Title"
+ , Space
+ , Str "7======="
+ , SoftBreak
+ , Str "=Not"
+ , Space
+ , Str "Title="
+ , Space
+ , Str "[label1]"
+ , SoftBreak
+ , Str "=Not"
+ , Space
+ , Str "Title=["
+ , Space
+ , Str "label"
+ , Space
+ , Str "]"
+ , SoftBreak
+ , Str "=Not"
+ , Space
+ , Str "Title=[la/bel]"
+ ]
+ , Header 1
+ ( "quote", [], [] )
+ [ Str "Quote" ]
+ , BlockQuote
+ [ Para
+ [ Str "To"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph,"
+ , Space
+ , Str "just"
+ , Space
+ , Str "prefix"
+ , Space
+ , Str "it"
+ , Space
+ , Str "by"
+ , Space
+ , Str "a"
+ , Space
+ , Str "TAB"
+ , SoftBreak
+ , Str "character."
+ , Space
+ , Str "All"
+ , Space
+ , Str "the"
+ , Space
+ , Str "lines"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "must"
+ , SoftBreak
+ , Str "begin"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "TAB."
+ ]
+ ]
+ , Para
+ [ Str "Any"
+ , Space
+ , Str "non-tabbed"
+ , Space
+ , Str "line"
+ , Space
+ , Str "closes"
+ , Space
+ , Str "the"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "block."
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "The"
+ , Space
+ , Str "number"
+ , Space
+ , Str "of"
+ , Space
+ , Str "leading"
+ , Space
+ , Str "TABs"
+ , Space
+ , Str "identifies"
+ , Space
+ , Str "the"
+ , Space
+ , Str "quote"
+ , SoftBreak
+ , Str "block"
+ , Space
+ , Str "depth."
+ , Space
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "level"
+ , Space
+ , Str "1."
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "With"
+ , Space
+ , Str "two"
+ , Space
+ , Str "TABs,"
+ , Space
+ , Str "we"
+ , Space
+ , Str "are"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "quote"
+ , SoftBreak
+ , Str "level"
+ , Space
+ , Str "2."
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "The"
+ , Space
+ , Str "more"
+ , Space
+ , Str "TABs,"
+ , Space
+ , Str "more"
+ , Space
+ , Str "deep"
+ , Space
+ , Str "is"
+ , SoftBreak
+ , Str "the"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "level."
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "There"
+ , Space
+ , Str "isn't"
+ , Space
+ , Str "a"
+ , Space
+ , Str "limit."
+ ]
+ ]
+ ]
+ ]
+ ]
+ , BlockQuote
+ [ BlockQuote
+ [ BlockQuote
+ [ BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "starts"
+ , Space
+ , Str "at"
+ , SoftBreak
+ , Str "level"
+ , Space
+ , Str "4."
+ ]
+ ]
+ , Para
+ [ Str "Then"
+ , Space
+ , Str "its"
+ , Space
+ , Str "depth"
+ , Space
+ , Str "is"
+ , Space
+ , Str "decreased."
+ ]
+ ]
+ , Para
+ [ Str "Counting"
+ , Space
+ , Str "down,"
+ , Space
+ , Str "one"
+ , Space
+ , Str "by"
+ , Space
+ , Str "one."
+ ]
+ ]
+ , Para
+ [ Str "Until"
+ , Space
+ , Str "the"
+ , Space
+ , Str "level"
+ , Space
+ , Str "1."
+ ]
+ ]
+ , BlockQuote
+ [ BlockQuote
+ [ BlockQuote
+ [ Para
+ [ Str "Unlike"
+ , Space
+ , Str "lists,"
+ , Space
+ , Str "any"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "block"
+ , Space
+ , Str "is"
+ , SoftBreak
+ , Str "independent,"
+ , Space
+ , Str "not"
+ , Space
+ , Str "part"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "tree."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "The"
+ , Space
+ , Str "TAB"
+ , Space
+ , Str "count"
+ , Space
+ , Str "don't"
+ , Space
+ , Str "need"
+ , Space
+ , Str "to"
+ , Space
+ , Str "be"
+ , Space
+ , Str "incremental"
+ , SoftBreak
+ , Str "by"
+ , Space
+ , Str "one."
+ ]
+ , BlockQuote
+ [ BlockQuote
+ [ BlockQuote
+ [ Para
+ [ Str "The"
+ , Space
+ , Str "nesting"
+ , Space
+ , Str "don't"
+ , Space
+ , Str "need"
+ , SoftBreak
+ , Str "to"
+ , Space
+ , Str "follow"
+ , Space
+ , Str "any"
+ , Space
+ , Str "rule."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Quotes"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "opened"
+ , Space
+ , Str "and"
+ , Space
+ , Str "closed"
+ , SoftBreak
+ , Str "in"
+ , Space
+ , Str "any"
+ , Space
+ , Str "way."
+ ]
+ , BlockQuote
+ [ BlockQuote
+ [ BlockQuote [ Para [ Str "You", Space, Str "choose." ] ] ]
+ ]
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Some"
+ , Space
+ , Str "targets"
+ , Space
+ , Str "(as"
+ , Space
+ , Str "sgml)"
+ , Space
+ , Str "don't"
+ , Space
+ , Str "support"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "nesting"
+ , Space
+ , Str "of"
+ , Space
+ , Str "quotes."
+ , Space
+ , Str "There"
+ , Space
+ , Str "is"
+ , Space
+ , Str "only"
+ , Space
+ , Str "one"
+ , Space
+ , Str "quote"
+ , SoftBreak
+ , Str "level."
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "In"
+ , Space
+ , Str "this"
+ , Space
+ , Str "case,"
+ , Space
+ , Str "no"
+ , Space
+ , Str "matter"
+ , Space
+ , Str "how"
+ , Space
+ , Str "much"
+ , SoftBreak
+ , Str "TABs"
+ , Space
+ , Str "are"
+ , Space
+ , Str "used"
+ , Space
+ , Str "to"
+ , Space
+ , Str "define"
+ , Space
+ , Str "the"
+ , Space
+ , Str "quote"
+ , SoftBreak
+ , Str "block,"
+ , Space
+ , Str "it"
+ , Space
+ , Str "always"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "level"
+ , Space
+ , Str "1."
+ ]
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Spaces"
+ , Space
+ , Str "AFTER"
+ , Space
+ , Str "the"
+ , Space
+ , Str "TAB"
+ , Space
+ , Str "character"
+ , Space
+ , Str "are"
+ , Space
+ , Str "allowed."
+ , SoftBreak
+ , Str "But"
+ , Space
+ , Str "be"
+ , Space
+ , Str "careful,"
+ , Space
+ , Str "it"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "confusing."
+ ]
+ ]
+ , Para
+ [ Str "Spaces"
+ , Space
+ , Str "BEFORE"
+ , Space
+ , Str "the"
+ , Space
+ , Str "TAB"
+ , Space
+ , Str "character"
+ , SoftBreak
+ , Str "invalidate"
+ , Space
+ , Str "the"
+ , Space
+ , Str "mark."
+ , Space
+ , Str "It's"
+ , Space
+ , Str "not"
+ , Space
+ , Str "quote."
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Paragraph"
+ , Space
+ , Str "breaks"
+ , Space
+ , Str "inside"
+ , Space
+ , Str "a"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "aren't"
+ , SoftBreak
+ , Str "possible."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "sample"
+ , Space
+ , Str "are"
+ , Space
+ , Str "two"
+ , Space
+ , Str "separated"
+ , Space
+ , Str "quoted"
+ , SoftBreak
+ , Str "paragraphs,"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "block"
+ , Space
+ , Str "with"
+ , SoftBreak
+ , Str "two"
+ , Space
+ , Str "paragraphs"
+ , Space
+ , Str "inside."
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "The"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "file"
+ , Space
+ , Str "(EOF)"
+ , Space
+ , Str "closes"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "currently"
+ , Space
+ , Str "open"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "block."
+ ]
+ ]
+ , Header 1
+ ( "raw", [], [] )
+ [ Str "Raw" ]
+ , Para
+ [ Str "A raw line.\n" ]
+ , Para
+ [ Str " Another raw line, with leading spaces.\n" ]
+ , Para
+ [ Str "A raw area delimited\n by lines with marks.\n" ]
+ , Para
+ [ Str "Trailing spaces and TABs after the area marks\nare allowed, but not encouraged nor documented.\n" ]
+ , Para
+ [ Str "\"\"\"Not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "raw"
+ , Space
+ , Str "line,"
+ , Space
+ , Str "need"
+ , Space
+ , Str "one"
+ , Space
+ , Str "space"
+ , Space
+ , Str "after"
+ , Space
+ , Str "mark."
+ ]
+ , Para
+ [ Str "\"\"\""
+ , SoftBreak
+ , Str "Not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "raw"
+ , Space
+ , Str "area."
+ , SoftBreak
+ , Str "The"
+ , Space
+ , Str "marks"
+ , Space
+ , Str "must"
+ , Space
+ , Str "be"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line"
+ , Space
+ , Str "beginning,"
+ , SoftBreak
+ , Str "no"
+ , Space
+ , Str "leading"
+ , Space
+ , Str "spaces."
+ , SoftBreak
+ , Str "\"\"\""
+ ]
+ , Para
+ [ Str "The end of the file (EOF) closes\nthe currently open raw area.\n" ]
+ , Header 1
+ ( "verbatim", [], [] )
+ [ Str "Verbatim" ]
+ , CodeBlock
+ ( "", [], [] ) "A verbatim line.\n"
+ , CodeBlock
+ ( "", [], [] ) " Another verbatim line, with leading spaces.\n"
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "A verbatim area delimited\n by lines with marks.\n"
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "Trailing spaces and TABs after the area marks\nare allowed, but not encouraged nor documented.\n"
+ , Para
+ [ Str "```Not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "verbatim"
+ , Space
+ , Str "line,"
+ , Space
+ , Str "need"
+ , Space
+ , Str "one"
+ , Space
+ , Str "space"
+ , Space
+ , Str "after"
+ , Space
+ , Str "mark."
+ ]
+ , Para
+ [ Str "```"
+ , SoftBreak
+ , Str "Not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "verbatim"
+ , Space
+ , Str "area."
+ , SoftBreak
+ , Str "The"
+ , Space
+ , Str "marks"
+ , Space
+ , Str "must"
+ , Space
+ , Str "be"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line"
+ , Space
+ , Str "beginning,"
+ , SoftBreak
+ , Str "no"
+ , Space
+ , Str "leading"
+ , Space
+ , Str "spaces."
+ , SoftBreak
+ , Str "```"
+ ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "The end of the file (EOF) closes\nthe currently open verbatim area.\n"
+ , Header 1
+ ( "deflist", [], [] )
+ [ Str "Definition", Space, Str "List" ]
+ , DefinitionList
+ [
+ (
+ [ Str "Definition", Space, Str "list" ]
+ ,
+ [
+ [ Plain
+ [ Str "A"
+ , Space
+ , Str "list"
+ , Space
+ , Str "with"
+ , Space
+ , Str "terms"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "Start"
+ , Space
+ , Str "term"
+ , Space
+ , Str "with"
+ , Space
+ , Str "colon"
+ ]
+ ,
+ [
+ [ Plain
+ [ Str "And"
+ , Space
+ , Str "its"
+ , Space
+ , Str "definition"
+ , Space
+ , Str "follows"
+ ]
+ ]
+ ]
+ )
+ ]
+ , Header 1
+ ( "numlist", [], [] )
+ [ Str "Numbered", Space, Str "List" ]
+ , Para
+ [ Str "See"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "List" ]
+ ( "#list", "" )
+ , Str ","
+ , Space
+ , Str "the"
+ , Space
+ , Str "same"
+ , Space
+ , Str "rules"
+ , Space
+ , Str "apply."
+ ]
+ , Header 1
+ ( "list", [], [] )
+ [ Str "List" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Use"
+ , Space
+ , Str "the"
+ , Space
+ , Str "hyphen"
+ , Space
+ , Str "to"
+ , Space
+ , Str "prefix"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "There"
+ , Space
+ , Str "must"
+ , Space
+ , Str "be"
+ , Space
+ , Str "one"
+ , Space
+ , Str "space"
+ , Space
+ , Str "after"
+ , Space
+ , Str "the"
+ , Space
+ , Str "hyphen."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "The"
+ , Space
+ , Str "list"
+ , Space
+ , Str "is"
+ , Space
+ , Str "closed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "two"
+ , Space
+ , Str "consecutive"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "The"
+ , Space
+ , Str "list"
+ , Space
+ , Str "can"
+ , Space
+ , Str "be"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "source"
+ , Space
+ , Str "document."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "You"
+ , Space
+ , Str "can"
+ , Space
+ , Str "use"
+ , Space
+ , Str "any"
+ , Space
+ , Str "number"
+ , Space
+ , Str "of"
+ , Space
+ , Str "spaces."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "The"
+ , Space
+ , Str "result"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "the"
+ , Space
+ , Str "same."
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Para
+ [ Str "Let"
+ , Space
+ , Str "one"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "between"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "It"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "maintained"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "conversion."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Some"
+ , Space
+ , Str "targets"
+ , Space
+ , Str "don't"
+ , Space
+ , Str "support"
+ , Space
+ , Str "this"
+ , Space
+ , Str "behavior."
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "one"
+ , Space
+ , Str "was"
+ , Space
+ , Str "separated"
+ , Space
+ , Str "by"
+ , Space
+ , Str "a"
+ , Space
+ , Str "line"
+ , Space
+ , Str "with"
+ , Space
+ , Str "blanks."
+ , SoftBreak
+ , Str "You"
+ , Space
+ , Str "can"
+ , Space
+ , Str "also"
+ , Space
+ , Str "put"
+ , Space
+ , Str "a"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "inside"
+ ]
+ , Para
+ [ Str "the"
+ , Space
+ , Str "item"
+ , Space
+ , Str "contents"
+ , Space
+ , Str "and"
+ , Space
+ , Str "it"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "preserved."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "-This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "(no"
+ , Space
+ , Str "space)"
+ ]
+ , Para
+ [ Str "-"
+ , Space
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "(more"
+ , Space
+ , Str "than"
+ , Space
+ , Str "one"
+ , Space
+ , Str "space)"
+ ]
+ , Para
+ [ Str "-"
+ , Space
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "(a"
+ , Space
+ , Str "TAB"
+ , Space
+ , Str "instead"
+ , Space
+ , Str "the"
+ , Space
+ , Str "space)"
+ ]
+ , BulletList
+ [
+ [ BulletList
+ [
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ DefinitionList
+ [
+ (
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ ]
+ , [ [] ]
+ )
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "\"mother\""
+ , Space
+ , Str "list"
+ , Space
+ , Str "first"
+ , Space
+ , Str "item."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "second,"
+ , Space
+ , Str "but"
+ , Space
+ , Str "inside"
+ , Space
+ , Str "this"
+ , Space
+ , Str "item,"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "there"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "sublist,"
+ , Space
+ , Str "with"
+ , Space
+ , Str "its"
+ , Space
+ , Str "own"
+ , Space
+ , Str "items."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Note"
+ , Space
+ , Str "that"
+ , Space
+ , Str "the"
+ , Space
+ , Str "items"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "same"
+ , Space
+ , Str "sublist"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "must"
+ , Space
+ , Str "have"
+ , Space
+ , Str "the"
+ , Space
+ , Str "same"
+ , Space
+ , Str "indentation."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "And"
+ , Space
+ , Str "this"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "on,"
+ , Space
+ , Str "opening"
+ , Space
+ , Str "sublists."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Just"
+ , Space
+ , Str "add"
+ , Space
+ , Str "leading"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "before"
+ , Space
+ , Str "the"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "hyphen"
+ , Space
+ , Str "and"
+ , Space
+ , Str "sublists"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "opened."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "The"
+ , Space
+ , Str "two"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "lines"
+ , Space
+ , Str "closes"
+ , Space
+ , Str "them"
+ , Space
+ , Str "all."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "When"
+ , Space
+ , Str "nesting"
+ , Space
+ , Str "lists,"
+ , Space
+ , Str "the"
+ , Space
+ , Str "additional"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "are"
+ , Space
+ , Str "free."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "You"
+ , Space
+ , Str "can"
+ , Space
+ , Str "add"
+ , Space
+ , Str "just"
+ , Space
+ , Str "one,"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "or", Space, Str "many." ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "What"
+ , Space
+ , Str "matters"
+ , Space
+ , Str "is"
+ , Space
+ , Str "to"
+ , Space
+ , Str "put"
+ , Space
+ , Str "more"
+ , Space
+ , Str "than"
+ , Space
+ , Str "the"
+ , Space
+ , Str "previous."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "But"
+ , Space
+ , Str "remember"
+ , Space
+ , Str "that"
+ , Space
+ , Str "the"
+ , Space
+ , Str "other"
+ , Space
+ , Str "items"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "same"
+ , Space
+ , Str "list"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "must"
+ , Space
+ , Str "use"
+ , Space
+ , Str "the"
+ , Space
+ , Str "same"
+ , Space
+ , Str "indentation."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "There"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "depth"
+ , Space
+ , Str "limit,"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "deeper"
+ , Space
+ , Str "and"
+ , Space
+ , Str "deeper."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "But"
+ , Space
+ , Str "some"
+ , Space
+ , Str "targets"
+ , Space
+ , Str "may"
+ , Space
+ , Str "have"
+ , Space
+ , Str "restrictions."
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "The"
+ , Space
+ , Str "LaTeX"
+ , Space
+ , Str "maximum"
+ , Space
+ , Str "is"
+ , Space
+ , Str "here,"
+ , Space
+ , Str "4"
+ , Space
+ , Str "levels."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Reverse"
+ , Space
+ , Str "nesting"
+ , Space
+ , Str "doesn't"
+ , Space
+ , Str "work."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Because"
+ , Space
+ , Str "a"
+ , Space
+ , Str "sublist"
+ , Space
+ , Str "*must*"
+ , Space
+ , Str "have"
+ , Space
+ , Str "a"
+ , Space
+ , Str "mother"
+ , Space
+ , Str "list."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "It's"
+ , Space
+ , Str "the"
+ , Space
+ , Str "list"
+ , Space
+ , Str "concept,"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "txt2tags"
+ , Space
+ , Str "limitation."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "All"
+ , Space
+ , Str "this"
+ , Space
+ , Str "sublists"
+ , Space
+ , Str "will"
+ , Space
+ , Str "be"
+ , Space
+ , Str "bumped"
+ , Space
+ , Str "to"
+ , Space
+ , Str "mother"
+ , Space
+ , Str "lists."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "At"
+ , Space
+ , Str "level"
+ , Space
+ , Str "1,"
+ , Space
+ , Str "like"
+ , Space
+ , Str "this"
+ , Space
+ , Str "one."
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "1" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "2" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "3" ]
+ , BulletList
+ [ [ Plain [ Str "Level", Space, Str "4" ] ] ]
+ ]
+ ,
+ [ Plain
+ [ Str "Level"
+ , Space
+ , Str "3"
+ , Space
+ , Str "--"
+ , Space
+ , Str "(closed"
+ , Space
+ , Str "Level"
+ , Space
+ , Str "4)"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "--"
+ , Space
+ , Str "(closed"
+ , Space
+ , Str "Level"
+ , Space
+ , Str "3)"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Level"
+ , Space
+ , Str "1"
+ , Space
+ , Str "--"
+ , Space
+ , Str "(closed"
+ , Space
+ , Str "Level"
+ , Space
+ , Str "2)"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "1" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "2" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "3" ]
+ , BulletList
+ [ [ Plain [ Str "Level", Space, Str "4" ] ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Level"
+ , Space
+ , Str "1"
+ , Space
+ , Str "--"
+ , Space
+ , Str "(closed"
+ , Space
+ , Str "Level"
+ , Space
+ , Str "4,"
+ , Space
+ , Str "Level"
+ , Space
+ , Str "3"
+ , Space
+ , Str "and"
+ , Space
+ , Str "Level"
+ , Space
+ , Str "2)"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Para
+ [ Str "Level", Space, Str "1" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "--"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "BEFORE"
+ , Space
+ , Str "and"
+ , Space
+ , Str "AFTER"
+ , Space
+ , Str "(in)"
+ ]
+ , BulletList
+ [ [ Plain [ Str "Level", Space, Str "3" ] ] ]
+ ]
+ ]
+ ]
+ ]
+ , BulletList
+ [ [ Plain [ Str "Level", Space, Str "4" ] ] ]
+ , BulletList
+ [
+ [ Para [ Str "Level", Space, Str "3" ] ]
+ ,
+ [ Para
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "--"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "BEFORE"
+ , Space
+ , Str "and"
+ , Space
+ , Str "AFTER"
+ , Space
+ , Str "(out)"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "Level", Space, Str "1" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "--"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "BEFORE"
+ , Space
+ , Str "(spaces)"
+ , Space
+ , Str "and"
+ , Space
+ , Str "AFTER"
+ , Space
+ , Str "(TAB)"
+ ]
+ , BulletList
+ [ [ Plain [ Str "Level", Space, Str "3" ] ] ]
+ ]
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "1" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "2" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "3" ]
+ , BulletList
+ [
+ [ Plain [ Str "Level", Space, Str "4" ] ]
+ ,
+ [ Plain
+ [ Str "Level", Space, Str "3.5", Space, Str "???" ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Level", Space, Str "3" ] ]
+ ,
+ [ Plain
+ [ Str "Level", Space, Str "2.5", Space, Str "???" ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Level", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Level", Space, Str "1.5", Space, Str "???" ] ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Level", Space, Str "1" ] ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "list"
+ , Space
+ , Str "is"
+ , Space
+ , Str "closed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "a"
+ , Space
+ , Str "line"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "and"
+ , Space
+ , Str "other"
+ , Space
+ , Str "with"
+ , Space
+ , Str "TABs"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "list"
+ , Space
+ , Str "is"
+ , Space
+ , Str "NOT"
+ , Space
+ , Str "closed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "two"
+ , Space
+ , Str "comment"
+ , Space
+ , Str "lines"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "This"
+ , Space
+ , Str "list"
+ , Space
+ , Str "is"
+ , Space
+ , Str "closed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "a"
+ , Space
+ , Str "line"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "and"
+ , Space
+ , Str "TAB,"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "then"
+ , Space
+ , Str "a"
+ , Space
+ , Str "comment"
+ , Space
+ , Str "line,"
+ , Space
+ , Str "then"
+ , Space
+ , Str "an"
+ , Space
+ , Str "empty"
+ , Space
+ , Str "line."
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "1" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Level", Space, Str "2" ]
+ , BulletList
+ [ [ Plain [ Str "Level", Space, Str "3" ] ] ]
+ , Plain
+ [ Str "-", SoftBreak, Str "Level", Space, Str "2" ]
+ ]
+ ]
+ , Plain
+ [ Str "-", SoftBreak, Str "Level", Space, Str "1" ]
+ ]
+ ]
+ , Para
+ [ Str "-" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Empty"
+ , Space
+ , Str "item"
+ , Space
+ , Str "with"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "spaces."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "-" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Empty"
+ , Space
+ , Str "item"
+ , Space
+ , Str "with"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "TAB."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "-" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "If"
+ , Space
+ , Str "the"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "file"
+ , Space
+ , Str "(EOF)"
+ , Space
+ , Str "is"
+ , Space
+ , Str "hit,"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "all"
+ , Space
+ , Str "the"
+ , Space
+ , Str "currently"
+ , Space
+ , Str "opened"
+ , Space
+ , Str "list"
+ , Space
+ , Str "are"
+ , Space
+ , Str "closed,"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "just"
+ , Space
+ , Str "like"
+ , Space
+ , Str "when"
+ , Space
+ , Str "using"
+ , Space
+ , Str "the"
+ , Space
+ , Str "two"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "lines."
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Header 1
+ ( "table", [], [] )
+ [ Str "Table" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignRight, ColWidthDefault ) ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignRight, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "3" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "3" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "||"
+ , Space
+ , Str "Cell"
+ , Space
+ , Str "1"
+ , Space
+ , Str "|"
+ , Space
+ , Str "Cell"
+ , Space
+ , Str "2"
+ , Space
+ , Str "|"
+ , Space
+ , Str "Cell"
+ , Space
+ , Str "3"
+ , Space
+ , Str "|"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Cell", Space, Str "3" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Heading" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Heading" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Heading" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "<-" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "--" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "->" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "--" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "--" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "--" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "->" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "--" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "<-" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3+4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , 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 "1+2+3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2+3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1+2+3+4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "7" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "8" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "A" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "B" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "D" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "E" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "F" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Jan" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Fev" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Mar" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Apr" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "May" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "20%" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "40%" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "60%" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "80%" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "100%" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "/" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ , Space
+ , Str "/"
+ ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "o" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "o" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "." ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "=", Space, Str "=", Space, Str "=", Space, Str "=" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "01" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "02" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "05" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "07" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "11" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "13" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "16" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "17" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "19" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "20" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "23" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "25" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "26" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "29" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "30" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "32" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "35" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "37" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "39" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "40" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ,
+ ( AlignCenter, ColWidthDefault )
+ ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "6" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "7" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "8" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "9" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "A" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "B" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "C" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "D" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "E" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "F" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "0" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "3" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "5" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "6" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "7" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "8" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "9" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "A" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "B" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "C" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "D" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "E" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "F" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [ ( AlignCenter, ColWidthDefault ) ]
+ ( TableHead ( "", [], [] ) [] )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Para
+ [ Str "|this|is|not|a|table|" ]
+ , Para
+ [ Str "|this|"
+ , Space
+ , Str "is|"
+ , Space
+ , Str "not|"
+ , Space
+ , Str "a|"
+ , Space
+ , Str "table|"
+ ]
+ , Para
+ [ Str "|this"
+ , Space
+ , Str "|is"
+ , Space
+ , Str "|not"
+ , Space
+ , Str "|a"
+ , Space
+ , Str "|table"
+ , Space
+ , Str "|"
+ ]
+ , Para
+ [ Str "|"
+ , Space
+ , Str "this\t|"
+ , Space
+ , Str "is\t|"
+ , Space
+ , Str "not\t|"
+ , Space
+ , Str "a\t|"
+ , Space
+ , Str "table\t|"
+ ]
+ , HorizontalRule
+ , Para
+ [ Str "The", Space, Str "End." ]
+ ]
diff --git a/test/vimwiki-reader.native b/test/vimwiki-reader.native
index 9b09d4904..356d1b949 100644
--- a/test/vimwiki-reader.native
+++ b/test/vimwiki-reader.native
@@ -1,449 +1,2419 @@
-Pandoc (Meta {unMeta = fromList [("date",MetaInlines [Str "2017-05-01"]),("title",MetaInlines [Str "title"])]})
-[Header 1 ("implemented",[],[]) [Emph [Span ("implemented",[],[]) [],Strong [Str "implemented"]]]
-,Header 1 ("header",[],[]) [Str "header"]
-,Header 2 ("header level two",[],[]) [Str "header",Space,Str "level",Space,Str "two"]
-,Header 3 ("header level 3",[],[]) [Str "header",Space,Code ("",[],[]) "level",Space,Str "3"]
-,Header 4 ("header level four",[],[]) [Str "header",Space,Strikeout [Str "level"],Space,Str "four"]
-,Header 5 ("header level 5",[],[]) [Str "header",Space,Emph [Span ("level",[],[]) [],Strong [Str "level"],Space,Str "5"]]
-,Header 6 ("header level 6",[],[]) [Str "header",Space,Str "level",Space,Str "6"]
-,Para [Str "=======",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "========"]
-,Para [Str "hi==",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "=="]
-,Para [Str "===",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "=="]
-,Para [Str "===",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "===-"]
-,Para [Str "not",Space,Str "a",Space,Str "header:"]
-,Para [Str "=n="]
-,Para [Str "===",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "===="]
-,Header 2 ("centred header",["justcenter"],[]) [Str "centred",Space,Str "header"]
-,Header 2 ("header with some == in between",[],[]) [Str "header",Space,Str "with",Space,Str "some",Space,Code ("",[],[]) "==",Space,Str "in",Space,Str "between"]
-,Header 2 ("header with some == in between",[],[]) [Str "header",Space,Str "with",Space,Str "some",Space,Str "==",Space,Str "in",Space,Str "between"]
-,Header 2 ("header with some ==in between",[],[]) [Str "header",Space,Str "with",Space,Str "some",Space,Str "==in",Space,Str "between"]
-,Header 2 ("emph strong and strikeout",[],[]) [Str "emph",Space,Str "strong",Space,Str "and",Space,Str "strikeout"]
-,Para [Emph [Str "emph"],Space,Span ("strong",[],[]) [],Strong [Str "strong"]]
-,Para [Span ("strong and emph",[],[]) [],Strong [Emph [Str "strong",Space,Str "and",Space,Str "emph"]]]
-,Para [Emph [Span ("emph and strong",[],[]) [],Strong [Str "emph",Space,Str "and",Space,Str "strong"]]]
-,Para [Span ("emph inside strong",[],[]) [],Strong [Emph [Str "emph",Space,Str "inside"],Space,Str "strong"]]
-,Para [Span ("strong with emph",[],[]) [],Strong [Str "strong",Space,Str "with",Space,Emph [Str "emph"]]]
-,Para [Emph [Span ("strong inside",[],[]) [],Strong [Str "strong",Space,Str "inside"],Space,Str "emph"]]
-,Para [Emph [Strikeout [Str "strikeout"],Space,Str "inside",Space,Str "emph"]]
-,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "struck",Space,Str "out"],Space,Str "with",Space,Str "emph"]]
-,Para [Str "*not",SoftBreak,Str "strong*"]
-,Para [Str "just",Space,Str "two",Space,Str "stars:",Space,Str "**"]
-,Para [Str "just",Space,Str "two",Space,Str "underscores:",Space,Str "__"]
-,Para [Str "just",Space,Str "four",Space,Str "~s:",Space,Str "~~~~"]
-,Para [Str "_not",SoftBreak,Str "emph_"]
-,Para [Str "~~not",SoftBreak,Str "strikeout~~"]
-,Header 2 ("horizontal rule",[],[]) [Str "horizontal",Space,Str "rule"]
-,Para [Str "top"]
-,HorizontalRule
-,Para [Str "middle"]
-,HorizontalRule
-,Para [Str "not",Space,Str "a",Space,Str "rule-----"]
-,Para [Str "not",Space,Str "a",Space,Str "rule",Space,Str "(trailing",Space,Str "spaces):",SoftBreak,Str "-----"]
-,Para [Str "not",Space,Str "a",Space,Str "rule",Space,Str "(leading",Space,Str "spaces):",SoftBreak,Str "----"]
-,Header 2 ("comments",[],[]) [Str "comments"]
-,Para [Str "this",SoftBreak,Str "is",Space,Str "%%",Space,Str "not",Space,Str "secret"]
-,Header 2 ("inline code",[],[]) [Str "inline",Space,Str "code"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Code ("",[],[]) "inline code",Str "."]
-,Para [Str "Just",Space,Str "two",Space,Str "backticks:",Space,Str "``"]
-,Header 2 ("preformatted text",[],[]) [Str "preformatted",Space,Str "text"]
-,CodeBlock ("",[],[]) " Tyger! Tyger! burning bright\n In the forests of the night,\n What immortal hand or eye\n Could frame thy fearful symmetry?\n In what distant deeps or skies\n Burnt the fire of thine eyes?\n On what wings dare he aspire?\n What the hand dare sieze the fire?"
-,Header 3 ("preformatted text with attributes",[],[]) [Str "preformatted",Space,Str "text",Space,Str "with",Space,Str "attributes"]
-,CodeBlock ("",[],[("class","python"),("style","color:blue")]) " for i in range(1, 5):\n print(i)"
-,Header 3 ("preformatted text with nested syntax",[],[]) [Str "preformatted",Space,Str "text",Space,Str "with",Space,Str "nested",Space,Str "syntax"]
-,CodeBlock ("",["sql"],[]) "SELECT * FROM table"
-,Header 3 ("empty preformatted text",[],[]) [Str "empty",Space,Str "preformatted",Space,Str "text"]
-,CodeBlock ("",[],[]) ""
-,Header 2 ("block quotes",[],[]) [Str "block",Space,Str "quotes"]
-,BlockQuote
- [Plain [Str "(indentation",Space,Str "4",Space,Str "spaces)",Space,Str "This",Space,Str "would",Space,Str "be",Space,Str "a",Space,Str "blockquote",Space,Str "in",Space,Str "Vimwiki.",Space,Str "It",Space,Str "is",Space,Str "not",Space,Span ("highlighted",[],[]) [],Strong [Str "highlighted"],Space,Str "in",Space,Str "Vim",Space,Str "but",SoftBreak,Str "(indentation",Space,Str "1",Space,Str "space",Space,Str "followed",Space,Str "by",Space,Str "1",Space,Str "tab",Space,Str "of",Space,Str "width",Space,Str "4)",Space,Str "could",Space,Str "be",Space,Str "styled",Space,Str "by",Space,Str "CSS",Space,Str "in",Space,Str "HTML.",Space,Str "Blockquotes",Space,Str "are",Space,Str "usually",Space,Str "used",Space,Str "to",Space,Str "quote",Space,Str "a",SoftBreak,Str "(indentation",Space,Str "1",Space,Str "tab",Space,Str "of",Space,Str "width",Space,Str "4)",Space,Str "long",Space,Str "piece",Space,Str "of",Space,Str "text",Space,Str "from",Space,Str "another",Space,Str "source.",Space,Strikeout [Str "blah",Space,Str "blah"],Space,Span ("-blockquote",[],[]) [Str ""],Span ("blockquote",["tag"],[]) [Str "blockquote"]]]
-,Header 2 ("external links",[],[]) [Str "external",Space,Str "links"]
-,Para [Link ("",[],[]) [Emph [Str "Google"],Space,Str "search",Space,Str "engine"] ("http://google.com","")]
-,Para [Link ("",[],[]) [Str "http://pandoc.org"] ("http://pandoc.org","")]
-,Para [Link ("",[],[]) [Str "ftp://vim.org"] ("ftp://vim.org","")]
-,Para [Link ("",[],[]) [Str "http://google.com"] ("http://google.com","")]
-,Para [Link ("",[],[]) [Str "email",Space,Str "me"] ("mailto:info@example.org","")]
-,Para [Link ("",[],[]) [Str "mailto:hello@bye.com"] ("mailto:hello@bye.com","")]
-,Header 2 ("internal links",[],[]) [Str "internal",Space,Str "links"]
-,Para [Link ("",[],[]) [Str "This is a link"] ("This is a link","wikilink")]
-,Para [Link ("",[],[]) [Str "Description",Space,Str "of",Space,Str "the",Space,Str "link"] ("This is a link source","wikilink")]
-,Para [Link ("",[],[]) [Str "projects/Important Project 1"] ("projects/Important Project 1","wikilink"),SoftBreak,Link ("",[],[]) [Str "../index"] ("../index","wikilink"),SoftBreak,Link ("",[],[]) [Str "Other",Space,Str "files"] ("a subdirectory/","wikilink")]
-,Para [Link ("",[],[]) [Str "try",Space,Str "me",Space,Str "to",Space,Str "test",Space,Str "tag",Space,Str "anchors"] ("#tag-one","wikilink")]
-,Para [Link ("",[],[]) [Str "try",Space,Str "me",Space,Str "to",Space,Str "test",Space,Str "header",Space,Str "anchors"] ("#block quotes","wikilink")]
-,Para [Link ("",[],[]) [Str "try",Space,Str "me",Space,Str "to",Space,Str "test",Space,Str "strong",Space,Str "anchors"] ("#strong","wikilink")]
-,Para [Link ("",[],[]) [Str "Tasks",Space,Str "for",Space,Str "tomorrow"] ("Todo List#Tomorrow","wikilink")]
-,Para [Link ("",[],[]) [Str "diary:2017-05-01"] ("diary/2017-05-01","wikilink")]
-,Para [Link ("",[],[]) [Str "Important",Space,Str "Data"] ("file:../assets/data.csv","")]
-,Header 3 ("links with thumbnails",[],[]) [Str "links",Space,Str "with",Space,Str "thumbnails"]
-,Para [Link ("",[],[]) [Image ("",[],[]) [Str ""] ("./movie.jpg","")] ("http://www.google.com","")]
-,Header 2 ("images",[],[]) [Str "images"]
-,Para [Image ("",[],[]) [Str ""] ("file:./lalune.jpg","")]
-,Para [Image ("",[],[]) [Str "Vimwiki"] ("http://vimwiki.googlecode.com/hg/images/vimwiki_logo.png",""),SoftBreak,Image ("",[],[]) [Str ""] ("file:./movie.jpg","")]
-,Header 3 ("image with attributes",[],[]) [Str "image",Space,Str "with",Space,Str "attributes"]
-,Para [Image ("",[],[("style","width:150px;height:120px;")]) [Emph [Str "cool",Space,Str "stuff"]] ("lalune.jpg","")]
-,Para [Image ("",[],[("style","font-color:red")]) [Span ("Non-existing",[],[]) [],Strong [Str "Non-existing"],Space,Str "image"] ("nonexist.jpg","")]
-,Para [Image ("",[],[("style","width:150px;height:120px;")]) [Emph [Str "cool",Space,Str "stuff"]] ("lalune.jpg","")]
-,Header 2 ("lists",[],[]) [Str "lists"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "ordered",Space,Str "list",Space,Str "item",Space,Str "1,",Space,Str "and",Space,Str "here",Space,Str "is",Space,Str "some",Space,Str "math",Space,Str "belonging",Space,Str "to",Space,Str "list",Space,Str "item",Space,Str "1"]
- ,Para [Math DisplayMath "a^2 + b^2 = c^2"]
- ,Plain [Str "and",Space,Str "some",Space,Str "preformatted",Space,Str "and",Space,Str "tables",Space,Str "belonging",Space,Str "to",Space,Str "item",Space,Str "1",Space,Str "as",Space,Str "well"]
- ,CodeBlock ("",[],[]) "I'm part of item 1."
- ,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "this",Space,Str "table"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "is"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "also",Space,Str "a",Space,Str "part"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "of",Space,Str "item",Space,Str "1"]]]])]
- (TableFoot ("",[],[])
- [])
- ,Plain [Str "and",Space,Str "some",Space,Str "more",Space,Str "text",Space,Str "belonging",Space,Str "to",Space,Str "item",Space,Str "1."]]
- ,[Plain [Str "ordered",Space,Str "list",Space,Str "item",Space,Str "2"]]]
-,BulletList
- [[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "2"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "the",Space,Str "#",Space,Str "become",Space,Str "numbers",Space,Str "when",Space,Str "converted",Space,Str "to",Space,Str "HTML"]]]
-,BulletList
- [[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "2"]]]
-,BulletList
- [[Plain [Str "Item",Space,Str "1"]]
- ,[Plain [Str "Item",Space,Str "2"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Sub",Space,Str "item",Space,Str "1",Space,Str "(indentation",Space,Str "4",Space,Str "spaces)",SoftBreak,Str "Sub",Space,Str "item",Space,Str "1",Space,Str "continued",Space,Str "line.",SoftBreak,Str "Sub",Space,Str "item",Space,Str "1",Space,Str "next",Space,Str "continued",Space,Str "line."]]
- ,[Plain [Str "Sub",Space,Str "item",Space,Str "2,",Space,Str "as",Space,Str "an",Space,Str "ordered",Space,Str "list",Space,Str "item",Space,Str "even",Space,Str "though",Space,Str "the",Space,Str "identifier",Space,Str "is",Space,Code ("",[],[]) "*",Space,Str "(indentation",Space,Str "2",Space,Str "spaces",Space,Str "followed",Space,Str "by",Space,Str "one",Space,Str "tab",Space,Str "of",Space,Str "width",Space,Str "4)"]]
- ,[Plain [Str "etc.",SoftBreak,Str "Continuation",Space,Str "of",Space,Str "Item",Space,Str "2",SoftBreak,Str "Next",Space,Str "continuation",Space,Str "of",Space,Str "Item",Space,Str "2"]]]]]
-,Para [Str "But",Space,Str "this",Space,Str "is",Space,Str "a",Space,Str "new",Space,Str "paragraph."]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "1"]
- ,BulletList
- [[Plain [Code ("",[],[]) "1.1"]]]]
- ,[Plain [Str "2"]
- ,BulletList
- [[Plain [Str "2.1"]]]]]
-,BulletList
- [[Plain [Str "3"]]]
-,Header 3 ("ordered lists with non-# identifiers",[],[]) [Str "ordered",Space,Str "lists",Space,Str "with",Space,Str "non-#",Space,Str "identifiers"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "2"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,BulletList
- [[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "2"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "sub",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "more",Space,Str "..."]
- ,BulletList
- [[Plain [Str "and",Space,Str "more",Space,Str "..."]]
- ,[Plain [Str "..."]]]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "sub",Space,Str "item",Space,Str "3"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Numbered",Space,Str "list",Space,Str "sub",Space,Str "sub",Space,Str "item",Space,Str "1"]]
- ,[Plain [Str "Numbered",Space,Str "list",Space,Str "sub",Space,Str "sub",Space,Str "item",Space,Str "2"]]]]
- ,[Plain [Str "etc."]]]]
- ,[Plain [Str "Bulleted",Space,Str "list",Space,Str "item",Space,Str "3"]]]
-,Header 2 ("todo lists",[],[]) [Str "todo",Space,Str "lists"]
-,BulletList
- [[Plain [Span ("",["done0"],[]) [],Str "task",Space,Str "1"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Span ("",["done1"],[]) [],Str "5"]]]]
- ,[Plain [Span ("",["done2"],[]) [],Str "3"]]
- ,[Plain [Str "[]",Space,Str "not",Space,Str "a",Space,Str "todo",Space,Str "item"]]
- ,[Plain [Str "[",Space,Str "]not",Space,Str "a",Space,Str "todo",Space,Str "item"]]
- ,[Plain [Str "[r]",Space,Str "not",Space,Str "a",Space,Str "todo",Space,Str "item"]]
- ,[Plain [Str "[",Space,Str "]",Space,Str "not",Space,Str "a",Space,Str "todo",Space,Str "item"]]
- ,[Plain [Span ("",["done2"],[]) [],Str "a",Space,Str "tab",Space,Str "in",Space,Str "the",Space,Str "todo",Space,Str "list",Space,Str "marker",Space,Code ("",[],[]) "[ ]"]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Span ("",["done3"],[]) [],Str "4",SoftBreak,Str "5"]]
- ,[Plain [Span ("",["done4"],[]) []]
- ,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]]])]
- (TableFoot ("",[],[])
- [])]]]
- ,[Plain [Span ("",["done4"],[]) [],Str "task",Space,Str "2"]]]
-,Header 2 ("math",[],[]) [Str "math"]
-,Para [Math InlineMath " \\sum_i a_i^2 = 1 "]
-,Para [Math DisplayMath "\\sum_i a_i^2\n=\n1"]
-,Para [Math DisplayMath "\\begin{aligned}\n\\sum_i a_i^2 &= 1 + 1 \\\\\n&= 2.\n\\end{aligned}"]
-,Para [Str "edge",Space,Str "case",Space,Str "(the",Space,Code ("",[],[]) "c^2 + ",Space,Str "after",Space,Str "the",Space,Str "multline",Space,Str "tag",Space,Str "is",Space,Str "in",Space,Str "the",Space,Str "equation):"]
-,Para [Math DisplayMath "\\begin{gathered}\nc^2 + \na^2 + b^2\n\\end{gathered}"]
-,Para [Str "edge",Space,Str "case",Space,Str "(the",Space,Str "tag",Space,Str "is",Space,Code ("",[],[]) "hello%bye",Str ")"]
-,Para [Math DisplayMath "\\begin{hello%bye}\n\\int_a^b f(x) dx\n\\end{hello%bye}"]
-,Para [Str "Just",Space,Str "two",Space,Str "dollar",Space,Str "signs:",Space,Str "$$"]
-,Para [Str "[not",Space,Str "math]",Space,Str "You",Space,Str "have",Space,Str "$1",SoftBreak,Str "and",Space,Str "I",Space,Str "have",Space,Str "$1."]
-,Header 2 ("tags",[],[]) [Str "tags"]
-,Para [Span ("-tag-one",[],[]) [Str ""],Span ("tag-one",["tag"],[]) [Str "tag-one"],Space,Span ("-tag-two",[],[]) [Str ""],Span ("tag-two",["tag"],[]) [Str "tag-two"]]
-,Header 2 ("tables",[],[]) [Str "tables"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Year"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Temperature",Space,Str "(low)"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "Temperature",Space,Str "(high)"]]]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1900"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "-10"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "25"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1910"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "-15"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "30"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1920"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "-10"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "32"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1930"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Emph [Str "N/A"]]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Emph [Str "N/A"]]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "1940"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "-2"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "40"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 3 ("centered headerless tables",[],[]) [Str "centered",Space,Str "headerless",Space,Str "tables"]
-,Div ("",["center"],[])
- [Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "d"]]]])]
- (TableFoot ("",[],[])
- [])]
-,Header 2 ("paragraphs",[],[]) [Str "paragraphs"]
-,Para [Str "This",Space,Str "is",Space,Str "first",Space,Str "paragraph",SoftBreak,Str "with",Space,Str "two",Space,Str "lines."]
-,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "second",Space,Str "paragraph",Space,Str "with",SoftBreak,Str "two",Space,Str "lines",Space,Str "after",Space,Str "many",Space,Str "blank",Space,Str "lines."]
-,Header 2 ("definition list",[],[]) [Str "definition",Space,Str "list"]
-,DefinitionList
- [([Str "Term",Space,Str "1"],
- [[Plain [Str "Definition",Space,Str "1"]]])
- ,([Str "Term",Space,Str "2"],
- [[Plain [Str "Definition",Space,Str "2"]]
- ,[Plain [Str "Definition",Space,Str "3"]]])
- ,([Str "Term",Space,Str "::",Space,Span ("separated",[],[]) [],Strong [Str "separated"],Space,Str "by",Space,Str "::",Space,Emph [Str "double",Space,Str "colons"]],
- [[Plain [Str "Def1"]]
- ,[Plain [Str "Def2"]]])
- ,([Str "Term",Space,Str "with",Space,Str "lots",Space,Str "of",Space,Str "trailing",Space,Str "colons:::::::"],
- [[Plain [Str "Definition"]]])
- ,([Str "::",Space,Str "This",Space,Str "is",Space,Str "::",Space,Str "A",Space,Str "term",Space,Str "(rather",Space,Str "than",Space,Str "a",Space,Str "definition)"],
- [[Plain [Str "and",Space,Str "this",Space,Str "is",Space,Str "a",Space,Str "definition"]]])
- ,([Str "Term",Space,Str "Without",Space,Str "definitions"],
- [[]])
- ,([Str "Part",Space,Str "::",Space,Str "of",Space,Str "::",Space,Str "dt"],
- [[Plain [Str "part",Space,Str "of",Space,Str "::dd"]]])]
-,DefinitionList
- [([],
- [[Plain [Str "Definition",Space,Str "1",Space,Str "without",Space,Str "a",Space,Str "term"]]
- ,[Plain [Str "Definition",Space,Str "2",Space,Str "without",Space,Str "a",Space,Str "term"]]])]
-,DefinitionList
- [([Str "T1"],
- [[Plain [Str "D1"]]])]
-,Para [Str "new",Space,Str "paragraph"]
-,DefinitionList
- [([Str "T1"],
- [[Plain [Str "D1"]]])]
-,Para [Str "Not::Definition"]
-,Para [Str "Not",Space,Str "::Definition"]
-,Para [Str "::Not",Space,Str "definition"]
-,BlockQuote
- [Plain [Str "::",Space,Str "blockquote"]]
-,BlockQuote
- [Plain [Str "block",Space,Str "::",Space,Str "quote"]]
-,Header 2 ("metadata placeholders",[],[]) [Str "metadata",Space,Str "placeholders"]
-,Para [Str "%this",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "placeholder"]
-,Para [Str "placeholders",SoftBreak,Str "serves",Space,Str "as",Space,Str "space",Space,Str "/",Space,Str "softbreak",Space,Str "in",Space,Str "paragraphs"]
-,Header 2 ("sup, sub",[],[]) [Str "sup,",Space,Str "sub"]
-,Para [Str "super",Superscript [Str "script"]]
-,Para [Str "sub",Subscript [Str "script"]]
-,Header 2 ("the todo mark",[],[]) [Str "the",Space,Str "todo",Space,Str "mark"]
-,Para [Span ("",["todo"],[]) [Str "TODO:"]]
-,Header 1 ("not implemented yet",[],[]) [Emph [Span ("not implemented yet",[],[]) [],Strong [Str "not",Space,Str "implemented",Space,Str "yet"]]]
-,Header 2 ("tables with spans",[],[]) [Str "tables",Space,Str "with",Space,Str "spans"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "d"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\\/"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "e"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ">"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "f"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\\/"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "\\/"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ">"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "g"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "h"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ">"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ">"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str ">"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 2 ("tables with multiple lines of headers",[],[]) [Str "tables",Space,Str "with",Space,Str "multiple",Space,Str "lines",Space,Str "of",Space,Str "headers"]
-,Table ("",[],[]) (Caption Nothing
- [])
- [(AlignDefault,ColWidthDefault)
- ,(AlignDefault,ColWidthDefault)]
- (TableHead ("",[],[])
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- []]])
- [(TableBody ("",[],[]) (RowHeadColumns 0)
- []
- [Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "a"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "b"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "c"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "d"]]]
- ,Row ("",[],[])
- [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "---"]]
- ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
- [Plain [Str "---"]]]])]
- (TableFoot ("",[],[])
- [])
-,Header 2 ("some other placeholders",[],[]) [Str "some",Space,Str "other",Space,Str "placeholders"]
-,Para [Code ("",[],[]) "template",Space,Str "placeholder",Space,Str "is",Space,Str "ignored."]
-,Para [Code ("",[],[]) "nohtml",Space,Str "placeholder",Space,Str "is",Space,Str "ignored."]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "date", MetaInlines [ Str "2017-05-01" ] )
+ ,
+ ( "title", MetaInlines [ Str "title" ] )
+ ]
+ }
+ )
+ [ Header 1
+ ( "implemented", [], [] )
+ [ Emph
+ [ Span
+ ( "implemented", [], [] ) []
+ , Strong
+ [ Str "implemented" ]
+ ]
+ ]
+ , Header 1
+ ( "header", [], [] )
+ [ Str "header" ]
+ , Header 2
+ ( "header level two", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "two" ]
+ , Header 3
+ ( "header level 3", [], [] )
+ [ Str "header", Space, Code ( "", [], [] ) "level", Space, Str "3" ]
+ , Header 4
+ ( "header level four", [], [] )
+ [ Str "header"
+ , Space
+ , Strikeout
+ [ Str "level" ]
+ , Space
+ , Str "four"
+ ]
+ , Header 5
+ ( "header level 5", [], [] )
+ [ Str "header"
+ , Space
+ , Emph
+ [ Span
+ ( "level", [], [] ) []
+ , Strong
+ [ Str "level" ]
+ , Space
+ , Str "5"
+ ]
+ ]
+ , Header 6
+ ( "header level 6", [], [] )
+ [ Str "header", Space, Str "level", Space, Str "6" ]
+ , Para
+ [ Str "======="
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ , Space
+ , Str "========"
+ ]
+ , Para
+ [ Str "hi=="
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ , Space
+ , Str "=="
+ ]
+ , Para
+ [ Str "==="
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ , Space
+ , Str "=="
+ ]
+ , Para
+ [ Str "==="
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ , Space
+ , Str "===-"
+ ]
+ , Para
+ [ Str "not", Space, Str "a", Space, Str "header:" ]
+ , Para
+ [ Str "=n=" ]
+ , Para
+ [ Str "==="
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "header"
+ , Space
+ , Str "===="
+ ]
+ , Header 2
+ ( "centred header", [ "justcenter" ], [] )
+ [ Str "centred", Space, Str "header" ]
+ , Header 2
+ ( "header with some == in between", [], [] )
+ [ Str "header"
+ , Space
+ , Str "with"
+ , Space
+ , Str "some"
+ , Space
+ , Code
+ ( "", [], [] ) "=="
+ , Space
+ , Str "in"
+ , Space
+ , Str "between"
+ ]
+ , Header 2
+ ( "header with some == in between", [], [] )
+ [ Str "header"
+ , Space
+ , Str "with"
+ , Space
+ , Str "some"
+ , Space
+ , Str "=="
+ , Space
+ , Str "in"
+ , Space
+ , Str "between"
+ ]
+ , Header 2
+ ( "header with some ==in between", [], [] )
+ [ Str "header"
+ , Space
+ , Str "with"
+ , Space
+ , Str "some"
+ , Space
+ , Str "==in"
+ , Space
+ , Str "between"
+ ]
+ , Header 2
+ ( "emph strong and strikeout", [], [] )
+ [ Str "emph"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "strikeout"
+ ]
+ , Para
+ [ Emph
+ [ Str "emph" ]
+ , Space
+ , Span
+ ( "strong", [], [] ) []
+ , Strong
+ [ Str "strong" ]
+ ]
+ , Para
+ [ Span
+ ( "strong and emph", [], [] ) []
+ , Strong
+ [ Emph [ Str "strong", Space, Str "and", Space, Str "emph" ] ]
+ ]
+ , Para
+ [ Emph
+ [ Span
+ ( "emph and strong", [], [] ) []
+ , Strong
+ [ Str "emph", Space, Str "and", Space, Str "strong" ]
+ ]
+ ]
+ , Para
+ [ Span
+ ( "emph inside strong", [], [] ) []
+ , Strong
+ [ Emph [ Str "emph", Space, Str "inside" ], Space, Str "strong" ]
+ ]
+ , Para
+ [ Span
+ ( "strong with emph", [], [] ) []
+ , Strong
+ [ Str "strong", Space, Str "with", Space, Emph [ Str "emph" ] ]
+ ]
+ , Para
+ [ Emph
+ [ Span
+ ( "strong inside", [], [] ) []
+ , Strong
+ [ Str "strong", Space, Str "inside" ]
+ , Space
+ , Str "emph"
+ ]
+ ]
+ , Para
+ [ Emph
+ [ Strikeout
+ [ Str "strikeout" ]
+ , Space
+ , Str "inside"
+ , Space
+ , Str "emph"
+ ]
+ ]
+ , Para
+ [ Strikeout
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "struck", Space, Str "out" ]
+ , Space
+ , Str "with"
+ , Space
+ , Str "emph"
+ ]
+ ]
+ , Para
+ [ Str "*not", SoftBreak, Str "strong*" ]
+ , Para
+ [ Str "just"
+ , Space
+ , Str "two"
+ , Space
+ , Str "stars:"
+ , Space
+ , Str "**"
+ ]
+ , Para
+ [ Str "just"
+ , Space
+ , Str "two"
+ , Space
+ , Str "underscores:"
+ , Space
+ , Str "__"
+ ]
+ , Para
+ [ Str "just"
+ , Space
+ , Str "four"
+ , Space
+ , Str "~s:"
+ , Space
+ , Str "~~~~"
+ ]
+ , Para
+ [ Str "_not", SoftBreak, Str "emph_" ]
+ , Para
+ [ Str "~~not", SoftBreak, Str "strikeout~~" ]
+ , Header 2
+ ( "horizontal rule", [], [] )
+ [ Str "horizontal", Space, Str "rule" ]
+ , Para
+ [ Str "top" ]
+ , HorizontalRule
+ , Para
+ [ Str "middle" ]
+ , HorizontalRule
+ , Para
+ [ Str "not", Space, Str "a", Space, Str "rule-----" ]
+ , Para
+ [ Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "rule"
+ , Space
+ , Str "(trailing"
+ , Space
+ , Str "spaces):"
+ , SoftBreak
+ , Str "-----"
+ ]
+ , Para
+ [ Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "rule"
+ , Space
+ , Str "(leading"
+ , Space
+ , Str "spaces):"
+ , SoftBreak
+ , Str "----"
+ ]
+ , Header 2
+ ( "comments", [], [] )
+ [ Str "comments" ]
+ , Para
+ [ Str "this"
+ , SoftBreak
+ , Str "is"
+ , Space
+ , Str "%%"
+ , Space
+ , Str "not"
+ , Space
+ , Str "secret"
+ ]
+ , Header 2
+ ( "inline code", [], [] )
+ [ Str "inline", Space, Str "code" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Code
+ ( "", [], [] ) "inline code"
+ , Str "."
+ ]
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "two"
+ , Space
+ , Str "backticks:"
+ , Space
+ , Str "``"
+ ]
+ , Header 2
+ ( "preformatted text", [], [] )
+ [ Str "preformatted", Space, Str "text" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) " Tyger! Tyger! burning bright\n In the forests of the night,\n What immortal hand or eye\n Could frame thy fearful symmetry?\n In what distant deeps or skies\n Burnt the fire of thine eyes?\n On what wings dare he aspire?\n What the hand dare sieze the fire?"
+ , Header 3
+ ( "preformatted text with attributes", [], [] )
+ [ Str "preformatted"
+ , Space
+ , Str "text"
+ , Space
+ , Str "with"
+ , Space
+ , Str "attributes"
+ ]
+ , CodeBlock
+ ( ""
+ , []
+ ,
+ [ ( "class", "python" ), ( "style", "color:blue" ) ]
+ ) " for i in range(1, 5):\n print(i)"
+ , Header 3
+ ( "preformatted text with nested syntax", [], [] )
+ [ Str "preformatted"
+ , Space
+ , Str "text"
+ , Space
+ , Str "with"
+ , Space
+ , Str "nested"
+ , Space
+ , Str "syntax"
+ ]
+ , CodeBlock
+ ( "", [ "sql" ], [] ) "SELECT * FROM table"
+ , Header 3
+ ( "empty preformatted text", [], [] )
+ [ Str "empty", Space, Str "preformatted", Space, Str "text" ]
+ , CodeBlock
+ ( "", [], [] ) ""
+ , Header 2
+ ( "block quotes", [], [] )
+ [ Str "block", Space, Str "quotes" ]
+ , BlockQuote
+ [ Plain
+ [ Str "(indentation"
+ , Space
+ , Str "4"
+ , Space
+ , Str "spaces)"
+ , Space
+ , Str "This"
+ , Space
+ , Str "would"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "blockquote"
+ , Space
+ , Str "in"
+ , Space
+ , Str "Vimwiki."
+ , Space
+ , Str "It"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Span
+ ( "highlighted", [], [] ) []
+ , Strong
+ [ Str "highlighted" ]
+ , Space
+ , Str "in"
+ , Space
+ , Str "Vim"
+ , Space
+ , Str "but"
+ , SoftBreak
+ , Str "(indentation"
+ , Space
+ , Str "1"
+ , Space
+ , Str "space"
+ , Space
+ , Str "followed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "1"
+ , Space
+ , Str "tab"
+ , Space
+ , Str "of"
+ , Space
+ , Str "width"
+ , Space
+ , Str "4)"
+ , Space
+ , Str "could"
+ , Space
+ , Str "be"
+ , Space
+ , Str "styled"
+ , Space
+ , Str "by"
+ , Space
+ , Str "CSS"
+ , Space
+ , Str "in"
+ , Space
+ , Str "HTML."
+ , Space
+ , Str "Blockquotes"
+ , Space
+ , Str "are"
+ , Space
+ , Str "usually"
+ , Space
+ , Str "used"
+ , Space
+ , Str "to"
+ , Space
+ , Str "quote"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "(indentation"
+ , Space
+ , Str "1"
+ , Space
+ , Str "tab"
+ , Space
+ , Str "of"
+ , Space
+ , Str "width"
+ , Space
+ , Str "4)"
+ , Space
+ , Str "long"
+ , Space
+ , Str "piece"
+ , Space
+ , Str "of"
+ , Space
+ , Str "text"
+ , Space
+ , Str "from"
+ , Space
+ , Str "another"
+ , Space
+ , Str "source."
+ , Space
+ , Strikeout
+ [ Str "blah", Space, Str "blah" ]
+ , Space
+ , Span
+ ( "-blockquote", [], [] )
+ [ Str "" ]
+ , Span
+ ( "blockquote", [ "tag" ], [] )
+ [ Str "blockquote" ]
+ ]
+ ]
+ , Header 2
+ ( "external links", [], [] )
+ [ Str "external", Space, Str "links" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Emph
+ [ Str "Google" ]
+ , Space
+ , Str "search"
+ , Space
+ , Str "engine"
+ ]
+ ( "http://google.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://pandoc.org" ]
+ ( "http://pandoc.org", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "ftp://vim.org" ]
+ ( "ftp://vim.org", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "http://google.com" ]
+ ( "http://google.com", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "email", Space, Str "me" ]
+ ( "mailto:info@example.org", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "mailto:hello@bye.com" ]
+ ( "mailto:hello@bye.com", "" )
+ ]
+ , Header 2
+ ( "internal links", [], [] )
+ [ Str "internal", Space, Str "links" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "This is a link" ]
+ ( "This is a link", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Description"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "link"
+ ]
+ ( "This is a link source", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "projects/Important Project 1" ]
+ ( "projects/Important Project 1", "wikilink" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "../index" ]
+ ( "../index", "wikilink" )
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "Other", Space, Str "files" ]
+ ( "a subdirectory/", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "try"
+ , Space
+ , Str "me"
+ , Space
+ , Str "to"
+ , Space
+ , Str "test"
+ , Space
+ , Str "tag"
+ , Space
+ , Str "anchors"
+ ]
+ ( "#tag-one", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "try"
+ , Space
+ , Str "me"
+ , Space
+ , Str "to"
+ , Space
+ , Str "test"
+ , Space
+ , Str "header"
+ , Space
+ , Str "anchors"
+ ]
+ ( "#block quotes", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "try"
+ , Space
+ , Str "me"
+ , Space
+ , Str "to"
+ , Space
+ , Str "test"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "anchors"
+ ]
+ ( "#strong", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Tasks", Space, Str "for", Space, Str "tomorrow" ]
+ ( "Todo List#Tomorrow", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "diary:2017-05-01" ]
+ ( "diary/2017-05-01", "wikilink" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Important", Space, Str "Data" ]
+ ( "file:../assets/data.csv", "" )
+ ]
+ , Header 3
+ ( "links with thumbnails", [], [] )
+ [ Str "links", Space, Str "with", Space, Str "thumbnails" ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Image ( "", [], [] ) [ Str "" ] ( "./movie.jpg", "" ) ]
+ ( "http://www.google.com", "" )
+ ]
+ , Header 2
+ ( "images", [], [] )
+ [ Str "images" ]
+ , Para
+ [ Image ( "", [], [] ) [ Str "" ] ( "file:./lalune.jpg", "" ) ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "Vimwiki" ]
+ ( "http://vimwiki.googlecode.com/hg/images/vimwiki_logo.png", "" )
+ , SoftBreak
+ , Image
+ ( "", [], [] )
+ [ Str "" ]
+ ( "file:./movie.jpg", "" )
+ ]
+ , Header 3
+ ( "image with attributes", [], [] )
+ [ Str "image", Space, Str "with", Space, Str "attributes" ]
+ , Para
+ [ Image
+ ( "", [], [ ( "style", "width:150px;height:120px;" ) ] )
+ [ Emph [ Str "cool", Space, Str "stuff" ] ]
+ ( "lalune.jpg", "" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [ ( "style", "font-color:red" ) ] )
+ [ Span
+ ( "Non-existing", [], [] ) []
+ , Strong
+ [ Str "Non-existing" ]
+ , Space
+ , Str "image"
+ ]
+ ( "nonexist.jpg", "" )
+ ]
+ , Para
+ [ Image
+ ( "", [], [ ( "style", "width:150px;height:120px;" ) ] )
+ [ Emph [ Str "cool", Space, Str "stuff" ] ]
+ ( "lalune.jpg", "" )
+ ]
+ , Header 2
+ ( "lists", [], [] )
+ [ Str "lists" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "ordered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1,"
+ , Space
+ , Str "and"
+ , Space
+ , Str "here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Str "math"
+ , Space
+ , Str "belonging"
+ , Space
+ , Str "to"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ , Para
+ [ Math DisplayMath "a^2 + b^2 = c^2" ]
+ , Plain
+ [ Str "and"
+ , Space
+ , Str "some"
+ , Space
+ , Str "preformatted"
+ , Space
+ , Str "and"
+ , Space
+ , Str "tables"
+ , Space
+ , Str "belonging"
+ , Space
+ , Str "to"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ , Space
+ , Str "as"
+ , Space
+ , Str "well"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "I'm part of item 1."
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "this", Space, Str "table" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "is" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain
+ [ Str "also", Space, Str "a", Space, Str "part" ]
+ ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "of", Space, Str "item", Space, Str "1" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Plain
+ [ Str "and"
+ , Space
+ , Str "some"
+ , Space
+ , Str "more"
+ , Space
+ , Str "text"
+ , Space
+ , Str "belonging"
+ , Space
+ , Str "to"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "ordered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "the"
+ , Space
+ , Str "#"
+ , Space
+ , Str "become"
+ , Space
+ , Str "numbers"
+ , Space
+ , Str "when"
+ , Space
+ , Str "converted"
+ , Space
+ , Str "to"
+ , Space
+ , Str "HTML"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain [ Str "Item", Space, Str "1" ] ]
+ ,
+ [ Plain
+ [ Str "Item", Space, Str "2" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ , Space
+ , Str "(indentation"
+ , Space
+ , Str "4"
+ , Space
+ , Str "spaces)"
+ , SoftBreak
+ , Str "Sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ , Space
+ , Str "continued"
+ , Space
+ , Str "line."
+ , SoftBreak
+ , Str "Sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ , Space
+ , Str "next"
+ , Space
+ , Str "continued"
+ , Space
+ , Str "line."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2,"
+ , Space
+ , Str "as"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ordered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "even"
+ , Space
+ , Str "though"
+ , Space
+ , Str "the"
+ , Space
+ , Str "identifier"
+ , Space
+ , Str "is"
+ , Space
+ , Code
+ ( "", [], [] ) "*"
+ , Space
+ , Str "(indentation"
+ , Space
+ , Str "2"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "followed"
+ , Space
+ , Str "by"
+ , Space
+ , Str "one"
+ , Space
+ , Str "tab"
+ , Space
+ , Str "of"
+ , Space
+ , Str "width"
+ , Space
+ , Str "4)"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "etc."
+ , SoftBreak
+ , Str "Continuation"
+ , Space
+ , Str "of"
+ , Space
+ , Str "Item"
+ , Space
+ , Str "2"
+ , SoftBreak
+ , Str "Next"
+ , Space
+ , Str "continuation"
+ , Space
+ , Str "of"
+ , Space
+ , Str "Item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "But"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "new"
+ , Space
+ , Str "paragraph."
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "1" ]
+ , BulletList
+ [ [ Plain [ Code ( "", [], [] ) "1.1" ] ] ]
+ ]
+ ,
+ [ Plain [ Str "2" ], BulletList [ [ Plain [ Str "2.1" ] ] ] ]
+ ]
+ , BulletList
+ [ [ Plain [ Str "3" ] ] ]
+ , Header 3
+ ( "ordered lists with non-# identifiers", [], [] )
+ [ Str "ordered"
+ , Space
+ , Str "lists"
+ , Space
+ , Str "with"
+ , Space
+ , Str "non-#"
+ , Space
+ , Str "identifiers"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "more", Space, Str "..." ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "and", Space, Str "more", Space, Str "..." ]
+ ]
+ ,
+ [ Plain [ Str "..." ] ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "1"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Numbered"
+ , Space
+ , Str "list"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "sub"
+ , Space
+ , Str "item"
+ , Space
+ , Str "2"
+ ]
+ ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "etc." ] ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Bulleted"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , Space
+ , Str "3"
+ ]
+ ]
+ ]
+ , Header 2
+ ( "todo lists", [], [] )
+ [ Str "todo", Space, Str "lists" ]
+ , BulletList
+ [
+ [ Plain
+ [ Span ( "", [ "done0" ], [] ) [], Str "task", Space, Str "1" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Plain [ Span ( "", [ "done1" ], [] ) [], Str "5" ] ] ]
+ ]
+ ,
+ [ Plain [ Span ( "", [ "done2" ], [] ) [], Str "3" ] ]
+ ,
+ [ Plain
+ [ Str "[]"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "todo"
+ , Space
+ , Str "item"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "["
+ , Space
+ , Str "]not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "todo"
+ , Space
+ , Str "item"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "[r]"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "todo"
+ , Space
+ , Str "item"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "["
+ , Space
+ , Str "]"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "todo"
+ , Space
+ , Str "item"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Span
+ ( "", [ "done2" ], [] ) []
+ , Str "a"
+ , Space
+ , Str "tab"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "todo"
+ , Space
+ , Str "list"
+ , Space
+ , Str "marker"
+ , Space
+ , Code
+ ( "", [], [] ) "[ ]"
+ ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain
+ [ Span
+ ( "", [ "done3" ], [] ) []
+ , Str "4"
+ , SoftBreak
+ , Str "5"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Span ( "", [ "done4" ], [] ) [] ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
+ ]
+ ]
+ ,
+ [ Plain
+ [ Span ( "", [ "done4" ], [] ) [], Str "task", Space, Str "2" ]
+ ]
+ ]
+ , Header 2
+ ( "math", [], [] )
+ [ Str "math" ]
+ , Para
+ [ Math InlineMath " \\sum_i a_i^2 = 1 " ]
+ , Para
+ [ Math DisplayMath "\\sum_i a_i^2\n=\n1" ]
+ , Para
+ [ Math DisplayMath "\\begin{aligned}\n\\sum_i a_i^2 &= 1 + 1 \\\\\n&= 2.\n\\end{aligned}" ]
+ , Para
+ [ Str "edge"
+ , Space
+ , Str "case"
+ , Space
+ , Str "(the"
+ , Space
+ , Code
+ ( "", [], [] ) "c^2 + "
+ , Space
+ , Str "after"
+ , Space
+ , Str "the"
+ , Space
+ , Str "multline"
+ , Space
+ , Str "tag"
+ , Space
+ , Str "is"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "equation):"
+ ]
+ , Para
+ [ Math DisplayMath "\\begin{gathered}\nc^2 + \na^2 + b^2\n\\end{gathered}" ]
+ , Para
+ [ Str "edge"
+ , Space
+ , Str "case"
+ , Space
+ , Str "(the"
+ , Space
+ , Str "tag"
+ , Space
+ , Str "is"
+ , Space
+ , Code
+ ( "", [], [] ) "hello%bye"
+ , Str ")"
+ ]
+ , Para
+ [ Math DisplayMath "\\begin{hello%bye}\n\\int_a^b f(x) dx\n\\end{hello%bye}" ]
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "two"
+ , Space
+ , Str "dollar"
+ , Space
+ , Str "signs:"
+ , Space
+ , Str "$$"
+ ]
+ , Para
+ [ Str "[not"
+ , Space
+ , Str "math]"
+ , Space
+ , Str "You"
+ , Space
+ , Str "have"
+ , Space
+ , Str "$1"
+ , SoftBreak
+ , Str "and"
+ , Space
+ , Str "I"
+ , Space
+ , Str "have"
+ , Space
+ , Str "$1."
+ ]
+ , Header 2
+ ( "tags", [], [] )
+ [ Str "tags" ]
+ , Para
+ [ Span
+ ( "-tag-one", [], [] )
+ [ Str "" ]
+ , Span
+ ( "tag-one", [ "tag" ], [] )
+ [ Str "tag-one" ]
+ , Space
+ , Span
+ ( "-tag-two", [], [] )
+ [ Str "" ]
+ , Span
+ ( "tag-two", [ "tag" ], [] )
+ [ Str "tag-two" ]
+ ]
+ , Header 2
+ ( "tables", [], [] )
+ [ Str "tables" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Year" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Temperature", Space, Str "(low)" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "Temperature", Space, Str "(high)" ] ]
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1900" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "-10" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "25" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1910" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "-15" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "30" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1920" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "-10" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "32" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1930" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Emph [ Str "N/A" ] ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Emph [ Str "N/A" ] ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "1940" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "-2" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "40" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 3
+ ( "centered headerless tables", [], [] )
+ [ Str "centered", Space, Str "headerless", Space, Str "tables" ]
+ , Div
+ ( "", [ "center" ], [] )
+ [ Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "d" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ ]
+ , Header 2
+ ( "paragraphs", [], [] )
+ [ Str "paragraphs" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "first"
+ , Space
+ , Str "paragraph"
+ , SoftBreak
+ , Str "with"
+ , Space
+ , Str "two"
+ , Space
+ , Str "lines."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "second"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "with"
+ , SoftBreak
+ , Str "two"
+ , Space
+ , Str "lines"
+ , Space
+ , Str "after"
+ , Space
+ , Str "many"
+ , Space
+ , Str "blank"
+ , Space
+ , Str "lines."
+ ]
+ , Header 2
+ ( "definition list", [], [] )
+ [ Str "definition", Space, Str "list" ]
+ , DefinitionList
+ [
+ (
+ [ Str "Term", Space, Str "1" ]
+ ,
+ [ [ Plain [ Str "Definition", Space, Str "1" ] ] ]
+ )
+ ,
+ (
+ [ Str "Term", Space, Str "2" ]
+ ,
+ [
+ [ Plain [ Str "Definition", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Definition", Space, Str "3" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "Term"
+ , Space
+ , Str "::"
+ , Space
+ , Span
+ ( "separated", [], [] ) []
+ , Strong
+ [ Str "separated" ]
+ , Space
+ , Str "by"
+ , Space
+ , Str "::"
+ , Space
+ , Emph
+ [ Str "double", Space, Str "colons" ]
+ ]
+ ,
+ [ [ Plain [ Str "Def1" ] ], [ Plain [ Str "Def2" ] ] ]
+ )
+ ,
+ (
+ [ Str "Term"
+ , Space
+ , Str "with"
+ , Space
+ , Str "lots"
+ , Space
+ , Str "of"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "colons:::::::"
+ ]
+ ,
+ [ [ Plain [ Str "Definition" ] ] ]
+ )
+ ,
+ (
+ [ Str "::"
+ , Space
+ , Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "::"
+ , Space
+ , Str "A"
+ , Space
+ , Str "term"
+ , Space
+ , Str "(rather"
+ , Space
+ , Str "than"
+ , Space
+ , Str "a"
+ , Space
+ , Str "definition)"
+ ]
+ ,
+ [
+ [ Plain
+ [ Str "and"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "definition"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Str "Term", Space, Str "Without", Space, Str "definitions" ]
+ , [ [] ]
+ )
+ ,
+ (
+ [ Str "Part"
+ , Space
+ , Str "::"
+ , Space
+ , Str "of"
+ , Space
+ , Str "::"
+ , Space
+ , Str "dt"
+ ]
+ ,
+ [ [ Plain [ Str "part", Space, Str "of", Space, Str "::dd" ] ] ]
+ )
+ ]
+ , DefinitionList
+ [
+ ( []
+ ,
+ [
+ [ Plain
+ [ Str "Definition"
+ , Space
+ , Str "1"
+ , Space
+ , Str "without"
+ , Space
+ , Str "a"
+ , Space
+ , Str "term"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Definition"
+ , Space
+ , Str "2"
+ , Space
+ , Str "without"
+ , Space
+ , Str "a"
+ , Space
+ , Str "term"
+ ]
+ ]
+ ]
+ )
+ ]
+ , DefinitionList
+ [ ( [ Str "T1" ], [ [ Plain [ Str "D1" ] ] ] ) ]
+ , Para
+ [ Str "new", Space, Str "paragraph" ]
+ , DefinitionList
+ [ ( [ Str "T1" ], [ [ Plain [ Str "D1" ] ] ] ) ]
+ , Para
+ [ Str "Not::Definition" ]
+ , Para
+ [ Str "Not", Space, Str "::Definition" ]
+ , Para
+ [ Str "::Not", Space, Str "definition" ]
+ , BlockQuote
+ [ Plain [ Str "::", Space, Str "blockquote" ] ]
+ , BlockQuote
+ [ Plain [ Str "block", Space, Str "::", Space, Str "quote" ] ]
+ , Header 2
+ ( "metadata placeholders", [], [] )
+ [ Str "metadata", Space, Str "placeholders" ]
+ , Para
+ [ Str "%this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "a"
+ , Space
+ , Str "placeholder"
+ ]
+ , Para
+ [ Str "placeholders"
+ , SoftBreak
+ , Str "serves"
+ , Space
+ , Str "as"
+ , Space
+ , Str "space"
+ , Space
+ , Str "/"
+ , Space
+ , Str "softbreak"
+ , Space
+ , Str "in"
+ , Space
+ , Str "paragraphs"
+ ]
+ , Header 2
+ ( "sup, sub", [], [] )
+ [ Str "sup,", Space, Str "sub" ]
+ , Para
+ [ Str "super", Superscript [ Str "script" ] ]
+ , Para
+ [ Str "sub", Subscript [ Str "script" ] ]
+ , Header 2
+ ( "the todo mark", [], [] )
+ [ Str "the", Space, Str "todo", Space, Str "mark" ]
+ , Para
+ [ Span ( "", [ "todo" ], [] ) [ Str "TODO:" ] ]
+ , Header 1
+ ( "not implemented yet", [], [] )
+ [ Emph
+ [ Span
+ ( "not implemented yet", [], [] ) []
+ , Strong
+ [ Str "not", Space, Str "implemented", Space, Str "yet" ]
+ ]
+ ]
+ , Header 2
+ ( "tables with spans", [], [] )
+ [ Str "tables", Space, Str "with", Space, Str "spans" ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "d" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "\\/" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "e" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str ">" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "f" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "\\/" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "\\/" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str ">" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "g" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "h" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str ">" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str ">" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str ">" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 2
+ ( "tables with multiple lines of headers", [], [] )
+ [ Str "tables"
+ , Space
+ , Str "with"
+ , Space
+ , Str "multiple"
+ , Space
+ , Str "lines"
+ , Space
+ , Str "of"
+ , Space
+ , Str "headers"
+ ]
+ , Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 ) []
+ ]
+ ]
+ )
+ [ TableBody
+ ( "", [], [] )
+ ( RowHeadColumns 0 ) []
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "a" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "b" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "c" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "d" ] ]
+ ]
+ , Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "---" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "---" ] ]
+ ]
+ ]
+ ]
+ ( TableFoot ( "", [], [] ) [] )
+ , Header 2
+ ( "some other placeholders", [], [] )
+ [ Str "some", Space, Str "other", Space, Str "placeholders" ]
+ , Para
+ [ Code
+ ( "", [], [] ) "template"
+ , Space
+ , Str "placeholder"
+ , Space
+ , Str "is"
+ , Space
+ , Str "ignored."
+ ]
+ , Para
+ [ Code
+ ( "", [], [] ) "nohtml"
+ , Space
+ , Str "placeholder"
+ , Space
+ , Str "is"
+ , Space
+ , Str "ignored."
+ ]
+ ]
diff --git a/test/writer.asciidoc b/test/writer.asciidoc
index 61014ed69..f5fce08f7 100644
--- a/test/writer.asciidoc
+++ b/test/writer.asciidoc
@@ -431,8 +431,8 @@ Superscripts: a^bc^d a^_hello_^ a^hello there^.
Subscripts: H~2~O, H~23~O, H~many of them~O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
'''''
@@ -630,10 +630,10 @@ Here is a movie image:movie.jpg[movie] icon.
== Footnotes
-Here is a footnote reference,footnote:[Here is the footnote. It can go
-anywhere after the footnote reference. It need not be placed at the end of the
-document.] and another.[multiblock footnote omitted] This should _not_ be a
-footnote reference, because it contains a space.[^my note] Here is an inline
+Here is a footnote reference,footnote:[Here is the footnote. It can go anywhere
+after the footnote reference. It need not be placed at the end of the document.]
+and another.[multiblock footnote omitted] This should _not_ be a footnote
+reference, because it contains a space.[^my note] Here is an inline
note.footnote:[This is _easier_ to type. Inline notes may contain
http://google.com[links] and `]` verbatim characters, as well as [bracketed
text].]
diff --git a/test/writer.asciidoctor b/test/writer.asciidoctor
index 6e920990e..21ec18ec6 100644
--- a/test/writer.asciidoctor
+++ b/test/writer.asciidoctor
@@ -432,8 +432,8 @@ Superscripts: a^bc^d a^_hello_^ a^hello there^.
Subscripts: H~2~O, H~23~O, H~many of them~O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
'''''
@@ -447,8 +447,8 @@ spaces: a^b c^d, a~b c~d.
'`He said, "`I want to go.`"`' Were you alive in the 70’s?
-Here is some quoted '``+code+``' and a
-"`http://example.com/?foo=1&bar=2[quoted link]`".
+Here is some quoted '``+code+``' and a "`http://example.com/?foo=1&bar=2[quoted
+link]`".
Some dashes: one—two — three—four — five.
@@ -631,10 +631,10 @@ Here is a movie image:movie.jpg[movie] icon.
== Footnotes
-Here is a footnote reference,footnote:[Here is the footnote. It can go
-anywhere after the footnote reference. It need not be placed at the end of the
-document.] and another.[multiblock footnote omitted] This should _not_ be a
-footnote reference, because it contains a space.[^my note] Here is an inline
+Here is a footnote reference,footnote:[Here is the footnote. It can go anywhere
+after the footnote reference. It need not be placed at the end of the document.]
+and another.[multiblock footnote omitted] This should _not_ be a footnote
+reference, because it contains a space.[^my note] Here is an inline
note.footnote:[This is _easier_ to type. Inline notes may contain
http://google.com[links] and `+]+` verbatim characters, as well as [bracketed
text].]
diff --git a/test/writer.context b/test/writer.context
index 78667813b..ae45d1580 100644
--- a/test/writer.context
+++ b/test/writer.context
@@ -643,8 +643,8 @@ Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a\lettertilde{}b c\lettertilde{}d.
\thinrule
@@ -878,10 +878,10 @@ Here is a movie {\externalfigure[movie.jpg]} icon.
\section[title={Footnotes},reference={footnotes}]
-Here is a footnote reference,\footnote{Here is the footnote. It can go
- anywhere after the footnote reference. It need not be placed at the end of
- the document.} and another.\startbuffer Here's the long note. This one
- contains multiple blocks.
+Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere
+ after the footnote reference. It need not be placed at the end of the
+ document.} and another.\startbuffer Here's the long note. This one contains
+ multiple blocks.
Subsequent blocks are indented to show that they belong to the footnote (as
with list items).
diff --git a/test/writer.docbook4 b/test/writer.docbook4
index 27d91a2f0..baf1937b5 100644
--- a/test/writer.docbook4
+++ b/test/writer.docbook4
@@ -66,8 +66,8 @@
In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
- item. Because a hard-wrapped line in the middle of a paragraph looked
- like a list item.
+ item. Because a hard-wrapped line in the middle of a paragraph looked like
+ a list item.
Here’s one with a bullet. * criminey.
@@ -1014,19 +1014,19 @@ These should not be escaped: \$ \\ \> \[ \{
Smart quotes, ellipses, dashes
- Hello,
said the spider. Shelob
is
- my name.
+ Hello,
said the spider. Shelob
is my
+ name.
A
, B
, and C
are letters.
- Oak,
elm,
and beech
are
- names of trees. So is pine.
+ Oak,
elm,
and beech
are names
+ of trees. So is pine.
- He said, I want to go.
Were you alive in
- the 70’s?
+ He said, I want to go.
Were you alive in the
+ 70’s?
Here is some quoted code
and a
@@ -1366,8 +1366,8 @@ or here: <http://example.com/>
Here is a footnote reference,
- Here is the footnote. It can go anywhere after the footnote
- reference. It need not be placed at the end of the document.
+ Here is the footnote. It can go anywhere after the footnote reference.
+ It need not be placed at the end of the document.
and another.
@@ -1384,14 +1384,12 @@ or here: <http://example.com/>
If you want, you can indent every line, but you can also be lazy and
just indent the first line of each block.
- This should not be a footnote
- reference, because it contains a space.[^my note] Here is an inline
- note.
+ This should not be a footnote reference,
+ because it contains a space.[^my note] Here is an inline note.
- This is easier to type. Inline notes may
- contain links and
- ] verbatim characters, as well as [bracketed
- text].
+ This is easier to type. Inline notes may contain
+ links and ]
+ verbatim characters, as well as [bracketed text].
diff --git a/test/writer.docbook5 b/test/writer.docbook5
index afee571fa..dd73803aa 100644
--- a/test/writer.docbook5
+++ b/test/writer.docbook5
@@ -68,8 +68,8 @@
In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
- item. Because a hard-wrapped line in the middle of a paragraph looked
- like a list item.
+ item. Because a hard-wrapped line in the middle of a paragraph looked like
+ a list item.
Here’s one with a bullet. * criminey.
@@ -989,19 +989,19 @@ These should not be escaped: \$ \\ \> \[ \{
Smart quotes, ellipses, dashes
- Hello,
said the spider. Shelob
is
- my name.
+ Hello,
said the spider. Shelob
is my
+ name.
A
, B
, and C
are letters.
- Oak,
elm,
and beech
are
- names of trees. So is pine.
+ Oak,
elm,
and beech
are names
+ of trees. So is pine.
- He said, I want to go.
Were you alive in
- the 70’s?
+ He said, I want to go.
Were you alive in the
+ 70’s?
Here is some quoted code
and a
@@ -1266,8 +1266,7 @@ These should not be escaped: \$ \\ \> \[ \{
AT&T.
- Here’s an inline
- link.
+ Here’s an inline link.
Here’s an inline link in
@@ -1342,8 +1341,8 @@ or here: <http://example.com/>
Here is a footnote reference,
- Here is the footnote. It can go anywhere after the footnote
- reference. It need not be placed at the end of the document.
+ Here is the footnote. It can go anywhere after the footnote reference.
+ It need not be placed at the end of the document.
and another.
@@ -1360,14 +1359,12 @@ or here: <http://example.com/>
If you want, you can indent every line, but you can also be lazy and
just indent the first line of each block.
- This should not be a footnote
- reference, because it contains a space.[^my note] Here is an inline
- note.
+ This should not be a footnote reference,
+ because it contains a space.[^my note] Here is an inline note.
- This is easier to type. Inline notes may
- contain links and
- ] verbatim characters, as well as [bracketed
- text].
+ This is easier to type. Inline notes may contain
+ links and
+ ] verbatim characters, as well as [bracketed text].
diff --git a/test/writer.haddock b/test/writer.haddock
index fbe6c257b..82c45f358 100644
--- a/test/writer.haddock
+++ b/test/writer.haddock
@@ -1,7 +1,7 @@
This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
markdown test suite.
-______________________________________________________________________________
+________________________________________________________________________________
= Headers
#headers#
@@ -34,7 +34,7 @@ with no blank line
with no blank line
-______________________________________________________________________________
+________________________________________________________________________________
= Paragraphs
#paragraphs#
@@ -50,7 +50,7 @@ Here’s one with a bullet. * criminey.
There should be a hard line break
here.
-______________________________________________________________________________
+________________________________________________________________________________
= Block Quotes
#block-quotes#
@@ -80,7 +80,7 @@ This should not be a block quote: 2 > 1.
And a following paragraph.
-______________________________________________________________________________
+________________________________________________________________________________
= Code Blocks
#code-blocks#
@@ -101,7 +101,7 @@ And:
>
> These should not be escaped: \$ \\ \> \[ \{
-______________________________________________________________________________
+________________________________________________________________________________
= Lists
#lists#
@@ -265,7 +265,7 @@ M.A. 2007
B. Williams
-______________________________________________________________________________
+________________________________________________________________________________
= Definition Lists
#definition-lists#
@@ -398,7 +398,7 @@ Code:
Hr’s:
-______________________________________________________________________________
+________________________________________________________________________________
= Inline Markup
#inline-markup#
@@ -425,10 +425,10 @@ Superscripts: abcd a/hello/ ahello there.
Subscripts: H2O, H23O, Hmany of themO.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
-______________________________________________________________________________
+________________________________________________________________________________
= Smart quotes, ellipses, dashes
#smart-quotes-ellipses-dashes#
@@ -450,7 +450,7 @@ Dashes between numbers: 5–7, 255–66, 1987–1999.
Ellipses…and…and….
-______________________________________________________________________________
+________________________________________________________________________________
= LaTeX
#latex#
@@ -475,7 +475,7 @@ These shouldn’t be math:
Here’s a LaTeX table:
-______________________________________________________________________________
+________________________________________________________________________________
= Special Characters
#special-characters#
@@ -530,7 +530,7 @@ Plus: +
Minus: -
-______________________________________________________________________________
+________________________________________________________________________________
= Links
#links#
@@ -607,7 +607,7 @@ Auto-links should not occur here: @\ @
> or here:
-______________________________________________________________________________
+________________________________________________________________________________
= Images
#images#
@@ -618,14 +618,14 @@ From “Voyage dans la Lune” by Georges Melies (1902):
Here is a movie <> icon.
-______________________________________________________________________________
+________________________________________________________________________________
= Footnotes
#footnotes#
Here is a footnote reference,<#notes [1]> and another.<#notes [2]> This should
-/not/ be a footnote reference, because it contains a space.[^my note] Here is
-an inline note.<#notes [3]>
+/not/ be a footnote reference, because it contains a space.[^my note] Here is an
+inline note.<#notes [3]>
Notes can go in quotes.<#notes [4]>
@@ -640,17 +640,16 @@ This paragraph should not be part of the note, as it is not indented.
2. Here’s the long note. This one contains multiple blocks.
- Subsequent blocks are indented to show that they belong to the footnote
- (as with list items).
+ Subsequent blocks are indented to show that they belong to the footnote (as
+ with list items).
> { }
If you want, you can indent every line, but you can also be lazy and just
indent the first line of each block.
-3. This is /easier/ to type. Inline notes may contain
- and @]@ verbatim characters, as well as
- [bracketed text].
+3. This is /easier/ to type. Inline notes may contain
+ and @]@ verbatim characters, as well as [bracketed text].
4. In quote.
diff --git a/test/writer.jats_archiving b/test/writer.jats_archiving
index 70e15b6b8..cc9cdb323 100644
--- a/test/writer.jats_archiving
+++ b/test/writer.jats_archiving
@@ -68,9 +68,9 @@ Gruber’s markdown test suite.
Paragraphs
Here’s a regular paragraph.
- In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
- item. Because a hard-wrapped line in the middle of a paragraph looked like a
- list item.
+ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
+ Because a hard-wrapped line in the middle of a paragraph looked like a list
+ item.
Here’s one with a bullet. * criminey.
There should be a hard line break
here.
@@ -634,8 +634,7 @@ These should not be escaped: \$ \\ \> \[ \{
This is strikeout .
Superscripts: abc d ahello
ahello there .
- Subscripts: H2 O, H23 O,
- Hmany of them O.
+ Subscripts: H2 O, H23 O, Hmany of them O.
These should not be superscripts or subscripts, because of the unescaped
spaces: a^b c^d, a~b c~d.
@@ -689,8 +688,7 @@ These should not be escaped: \$ \\ \> \[ \{
d d x f ( x ) = lim h → 0 f ( x + h ) − f ( x ) h
- Here’s one that has a line break in it:
-
+ Here’s one that has a line break in it:
α + ω × x 2 .
@@ -780,8 +778,7 @@ These should not be escaped: \$ \\ \> \[ \{
Reference
- Foo
- bar .
+ Foo bar .
With embedded
[brackets] .
b by itself
@@ -853,9 +850,8 @@ These should not be escaped: \$ \\ \> \[ \{
Footnotes
Here is a footnote reference,1 and
another.2 This should
- not be a footnote reference, because it contains a
- space.[^my note] Here is an inline
- note.3
+ not be a footnote reference, because it contains a space.[^my
+ note] Here is an inline note.3
Notes can go in quotes.4
@@ -881,12 +877,12 @@ These should not be escaped: \$ \\ \> \[ \{
{ <code> }
- If you want, you can indent every line, but you can also be lazy and
- just indent the first line of each block.
+ If you want, you can indent every line, but you can also be lazy and just
+ indent the first line of each block.
- 3 This is easier to type. Inline notes
- may contain
+ 3
This is easier to type. Inline notes may
+ contain
links
and ] verbatim characters, as well as [bracketed
text].
diff --git a/test/writer.jats_articleauthoring b/test/writer.jats_articleauthoring
index 59485a114..c2bddccb6 100644
--- a/test/writer.jats_articleauthoring
+++ b/test/writer.jats_articleauthoring
@@ -57,9 +57,9 @@ Gruber’s markdown test suite.
Paragraphs
Here’s a regular paragraph.
- In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
- item. Because a hard-wrapped line in the middle of a paragraph looked like a
- list item.
+ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
+ Because a hard-wrapped line in the middle of a paragraph looked like a list
+ item.
Here’s one with a bullet. * criminey.
There should be a hard line break
here.
@@ -631,8 +631,7 @@ These should not be escaped: \$ \\ \> \[ \{
This is strikeout .
Superscripts: abc d ahello
ahello there .
- Subscripts: H2 O, H23 O,
- Hmany of them O.
+ Subscripts: H2 O, H23 O, Hmany of them O.
These should not be superscripts or subscripts, because of the unescaped
spaces: a^b c^d, a~b c~d.
@@ -764,8 +763,7 @@ These should not be escaped: \$ \\ \> \[ \{
Reference
- Foo
- bar .
+ Foo bar .
With embedded
[brackets] .
b by itself
@@ -836,8 +834,8 @@ These should not be escaped: \$ \\ \> \[ \{
Reference
- Foo
- bar .
+ Foo bar .
With embedded
[brackets] .
b by itself
@@ -853,9 +850,8 @@ These should not be escaped: \$ \\ \> \[ \{
Footnotes
Here is a footnote reference,1 and
another.2 This should
- not be a footnote reference, because it contains a
- space.[^my note] Here is an inline
- note.3
+ not be a footnote reference, because it contains a space.[^my
+ note] Here is an inline note.3
Notes can go in quotes.4
@@ -881,12 +877,12 @@ These should not be escaped: \$ \\ \> \[ \{
{ <code> }
- If you want, you can indent every line, but you can also be lazy and
- just indent the first line of each block.
+ If you want, you can indent every line, but you can also be lazy and just
+ indent the first line of each block.
- 3 This is easier to type. Inline notes
- may contain
+ 3
This is easier to type. Inline notes may
+ contain
links
and ] verbatim characters, as well as [bracketed
text].
diff --git a/test/writer.latex b/test/writer.latex
index abf772df4..a89078b31 100644
--- a/test/writer.latex
+++ b/test/writer.latex
@@ -711,8 +711,8 @@ a\textsuperscript{hello~there}.
Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
H\textsubscript{many~of~them}O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a\^{}b c\^{}d, a\textasciitilde b c\textasciitilde d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a\^{}b c\^{}d, a\textasciitilde b c\textasciitilde d.
\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
@@ -905,8 +905,7 @@ Foo \href{/url/}{biz}.
Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
URL}.
-Here's a link with an amersand in the link text:
-\href{http://att.com/}{AT\&T}.
+Here's a link with an amersand in the link text: \href{http://att.com/}{AT\&T}.
Here's an \href{/script?foo=1\&bar=2}{inline link}.
@@ -961,9 +960,9 @@ Here is a movie \includegraphics{movie.jpg} icon.
\hypertarget{footnotes}{%
\section{Footnotes}\label{footnotes}}
-Here is a footnote reference,\footnote{Here is the footnote. It can go
- anywhere after the footnote reference. It need not be placed at the end of
- the document.} and another.\footnote{Here's the long note. This one contains
+Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere
+ after the footnote reference. It need not be placed at the end of the
+ document.} and another.\footnote{Here's the long note. This one contains
multiple blocks.
Subsequent blocks are indented to show that they belong to the footnote (as
@@ -977,8 +976,8 @@ Here is a footnote reference,\footnote{Here is the footnote. It can go
indent the first line of each block.} This should \emph{not} be a footnote
reference, because it contains a space.{[}\^{}my note{]} Here is an inline
note.\footnote{This is \emph{easier} to type. Inline notes may contain
- \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
- well as {[}bracketed text{]}.}
+ \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as well
+ as {[}bracketed text{]}.}
\begin{quote}
Notes can go in quotes.\footnote{In quote.}
diff --git a/test/writer.man b/test/writer.man
index d3f1dfe14..d1d3cfd33 100644
--- a/test/writer.man
+++ b/test/writer.man
@@ -496,8 +496,8 @@ Superscripts: a^bc^d a^\f[I]hello\f[R]^ a^hello\ there^.
.PP
Subscripts: H~2~O, H~23~O, H~many\ of\ them~O.
.PP
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
.PP
* * * * *
.SH Smart quotes, ellipses, dashes
@@ -706,9 +706,9 @@ Here is a movie [IMAGE: movie] icon.
* * * * *
.SH Footnotes
.PP
-Here is a footnote reference,[1] and another.[2] This should \f[I]not\f[R] be
-a footnote reference, because it contains a space.[\[ha]my note] Here is an
-inline note.[3]
+Here is a footnote reference,[1] and another.[2] This should \f[I]not\f[R] be a
+footnote reference, because it contains a space.[\[ha]my note] Here is an inline
+note.[3]
.RS
.PP
Notes can go in quotes.[4]
@@ -728,8 +728,8 @@ It need not be placed at the end of the document.
Here\[cq]s the long note.
This one contains multiple blocks.
.PP
-Subsequent blocks are indented to show that they belong to the footnote (as
-with list items).
+Subsequent blocks are indented to show that they belong to the footnote (as with
+list items).
.IP
.nf
\f[C]
@@ -737,8 +737,8 @@ with list items).
\f[R]
.fi
.PP
-If you want, you can indent every line, but you can also be lazy and just
-indent the first line of each block.
+If you want, you can indent every line, but you can also be lazy and just indent
+the first line of each block.
.SS [3]
.PP
This is \f[I]easier\f[R] to type.
diff --git a/test/writer.markdown b/test/writer.markdown
index 6a149882c..375e1b864 100644
--- a/test/writer.markdown
+++ b/test/writer.markdown
@@ -9,7 +9,7 @@ title: Pandoc Test Suite
This is a set of tests for pandoc. Most of them are adapted from John Gruber's
markdown test suite.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Headers
@@ -33,7 +33,7 @@ with no blank line
with no blank line
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Paragraphs
@@ -48,7 +48,7 @@ Here's one with a bullet. \* criminey.
There should be a hard line break\
here.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Block Quotes
@@ -77,7 +77,7 @@ This should not be a block quote: 2 \> 1.
And a following paragraph.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Code Blocks
@@ -97,7 +97,7 @@ And:
These should not be escaped: \$ \\ \> \[ \{
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Lists
@@ -254,7 +254,7 @@ M.A. 2007
B. Williams
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Definition Lists
@@ -507,7 +507,7 @@ Hr's:
```
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Inline Markup
@@ -533,10 +533,10 @@ Superscripts: a^bc^d a^*hello*^ a^hello there^.
Subscripts: H~2~O, H~23~O, H~many of them~O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a\^b c\^d, a\~b c\~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a\^b c\^d, a\~b c\~d.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Smart quotes, ellipses, dashes
@@ -557,7 +557,7 @@ Dashes between numbers: 5--7, 255--66, 1987--1999.
Ellipses...and...and....
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# LaTeX
@@ -589,7 +589,7 @@ Cat & 1 \\ \hline
\end{tabular}
```
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Special Characters
@@ -643,7 +643,7 @@ Plus: +
Minus: -
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Links
@@ -693,8 +693,7 @@ Foo [biz](/url/ "Title with "quote" inside").
Here's a [link with an ampersand in the URL](http://example.com/?foo=1&bar=2).
-Here's a link with an amersand in the link text:
-[AT&T](http://att.com/ "AT&T").
+Here's a link with an amersand in the link text: [AT&T](http://att.com/ "AT&T").
Here's an [inline link](/script?foo=1&bar=2).
@@ -716,7 +715,7 @@ Auto-links should not occur here: ` `
or here:
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Images
@@ -726,13 +725,13 @@ From "Voyage dans la Lune" by Georges Melies (1902):
Here is a movie ![movie](movie.jpg) icon.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
# Footnotes
Here is a footnote reference,[^1] and another.[^2] This should *not* be a
-footnote reference, because it contains a space.\[\^my note\] Here is an
-inline note.[^3]
+footnote reference, because it contains a space.\[\^my note\] Here is an inline
+note.[^3]
> Notes can go in quotes.[^4]
@@ -740,13 +739,13 @@ inline note.[^3]
This paragraph should not be part of the note, as it is not indented.
-[^1]: Here is the footnote. It can go anywhere after the footnote reference.
- It need not be placed at the end of the document.
+[^1]: Here is the footnote. It can go anywhere after the footnote reference. It
+ need not be placed at the end of the document.
[^2]: Here's the long note. This one contains multiple blocks.
- Subsequent blocks are indented to show that they belong to the footnote
- (as with list items).
+ Subsequent blocks are indented to show that they belong to the footnote (as
+ with list items).
{ }
diff --git a/test/writer.ms b/test/writer.ms
index 329c959fc..fc2e66a34 100644
--- a/test/writer.ms
+++ b/test/writer.ms
@@ -653,8 +653,8 @@ Superscripts: a\*{bc\*}d a\*{\f[I]hello\f[R]\*} a\*{hello\ there\*}.
.PP
Subscripts: H\*<2\*>O, H\*<23\*>O, H\*O.
.PP
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
.HLINE
.SH 1
Smart quotes, ellipses, dashes
@@ -973,8 +973,8 @@ and another.\**
Here\[cq]s the long note.
This one contains multiple blocks.
.PP
-Subsequent blocks are indented to show that they belong to the footnote (as
-with list items).
+Subsequent blocks are indented to show that they belong to the footnote (as with
+list items).
.IP
.nf
\f[C]
@@ -982,8 +982,8 @@ with list items).
\f[]
.fi
.LP
-If you want, you can indent every line, but you can also be lazy and just
-indent the first line of each block.
+If you want, you can indent every line, but you can also be lazy and just indent
+the first line of each block.
.FE
This should \f[I]not\f[R] be a footnote reference, because it contains a
space.[\[ha]my note] Here is an inline note.\**
diff --git a/test/writer.muse b/test/writer.muse
index d9efdddd5..2c96f6bf2 100644
--- a/test/writer.muse
+++ b/test/writer.muse
@@ -483,8 +483,8 @@ Superscripts: abc d a*hello* ahello there .
Subscripts: H2 O, H23 O, Hmany of them O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
----
@@ -643,8 +643,7 @@ Foo [[/url/][biz]].
** With ampersands
-Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
-URL]].
+Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the URL]].
Here’s a link with an amersand in the link text: [[http://att.com/][AT&T]].
@@ -686,9 +685,8 @@ Here is a movie [[movie.jpg][movie]] icon.
* Footnotes
-Here is a footnote reference,[1] and another.[2] This should *not* be a
-footnote reference, because it contains a space.[^my note] Here is an inline
-note.[3]
+Here is a footnote reference,[1] and another.[2] This should *not* be a footnote
+reference, because it contains a space.[^my note] Here is an inline note.[3]
Notes can go in quotes.[4]
@@ -703,8 +701,8 @@ This paragraph should not be part of the note, as it is not indented.
[2] Here’s the long note. This one contains multiple blocks.
- Subsequent blocks are indented to show that they belong to the footnote
- (as with list items).
+ Subsequent blocks are indented to show that they belong to the footnote (as
+ with list items).
{ }
diff --git a/test/writer.native b/test/writer.native
index f9132c797..e86464f3e 100644
--- a/test/writer.native
+++ b/test/writer.native
@@ -1,409 +1,2385 @@
-Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
-[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",SoftBreak,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
-,HorizontalRule
-,Header 1 ("headers",[],[]) [Str "Headers"]
-,Header 2 ("level-2-with-an-embedded-link",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link ("",[],[]) [Str "embedded",Space,Str "link"] ("/url","")]
-,Header 3 ("level-3-with-emphasis",[],[]) [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
-,Header 4 ("level-4",[],[]) [Str "Level",Space,Str "4"]
-,Header 5 ("level-5",[],[]) [Str "Level",Space,Str "5"]
-,Header 1 ("level-1",[],[]) [Str "Level",Space,Str "1"]
-,Header 2 ("level-2-with-emphasis",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
-,Header 3 ("level-3",[],[]) [Str "Level",Space,Str "3"]
-,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
-,Header 2 ("level-2",[],[]) [Str "Level",Space,Str "2"]
-,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
-,HorizontalRule
-,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
-,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",SoftBreak,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",SoftBreak,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",SoftBreak,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",SoftBreak,Str "list",Space,Str "item."]
-,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",SoftBreak,Str "*",Space,Str "criminey."]
-,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."]
-,HorizontalRule
-,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
-,Para [Str "E-mail",Space,Str "style:"]
-,BlockQuote
- [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",SoftBreak,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
-,BlockQuote
- [Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
- ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
- ,Para [Str "A",Space,Str "list:"]
- ,OrderedList (1,Decimal,Period)
- [[Plain [Str "item",Space,Str "one"]]
- ,[Plain [Str "item",Space,Str "two"]]]
- ,Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
- ,BlockQuote
- [Para [Str "nested"]]
- ,BlockQuote
- [Para [Str "nested"]]]
-,Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "block",Space,Str "quote:",Space,Str "2",SoftBreak,Str ">",Space,Str "1."]
-,Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
-,HorizontalRule
-,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
-,Para [Str "And:"]
-,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
-,HorizontalRule
-,Header 1 ("lists",[],[]) [Str "Lists"]
-,Header 2 ("unordered",[],[]) [Str "Unordered"]
-,Para [Str "Asterisks",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "asterisk",Space,Str "1"]]
- ,[Plain [Str "asterisk",Space,Str "2"]]
- ,[Plain [Str "asterisk",Space,Str "3"]]]
-,Para [Str "Asterisks",Space,Str "loose:"]
-,BulletList
- [[Para [Str "asterisk",Space,Str "1"]]
- ,[Para [Str "asterisk",Space,Str "2"]]
- ,[Para [Str "asterisk",Space,Str "3"]]]
-,Para [Str "Pluses",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "Plus",Space,Str "1"]]
- ,[Plain [Str "Plus",Space,Str "2"]]
- ,[Plain [Str "Plus",Space,Str "3"]]]
-,Para [Str "Pluses",Space,Str "loose:"]
-,BulletList
- [[Para [Str "Plus",Space,Str "1"]]
- ,[Para [Str "Plus",Space,Str "2"]]
- ,[Para [Str "Plus",Space,Str "3"]]]
-,Para [Str "Minuses",Space,Str "tight:"]
-,BulletList
- [[Plain [Str "Minus",Space,Str "1"]]
- ,[Plain [Str "Minus",Space,Str "2"]]
- ,[Plain [Str "Minus",Space,Str "3"]]]
-,Para [Str "Minuses",Space,Str "loose:"]
-,BulletList
- [[Para [Str "Minus",Space,Str "1"]]
- ,[Para [Str "Minus",Space,Str "2"]]
- ,[Para [Str "Minus",Space,Str "3"]]]
-,Header 2 ("ordered",[],[]) [Str "Ordered"]
-,Para [Str "Tight:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second"]]
- ,[Plain [Str "Third"]]]
-,Para [Str "and:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "One"]]
- ,[Plain [Str "Two"]]
- ,[Plain [Str "Three"]]]
-,Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second"]]
- ,[Para [Str "Third"]]]
-,Para [Str "and",Space,Str "using",Space,Str "spaces:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "One"]]
- ,[Para [Str "Two"]]
- ,[Para [Str "Three"]]]
-,Para [Str "Multiple",Space,Str "paragraphs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
- ,Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog\8217s",SoftBreak,Str "back."]]
- ,[Para [Str "Item",Space,Str "2."]]
- ,[Para [Str "Item",Space,Str "3."]]]
-,Header 2 ("nested",[],[]) [Str "Nested"]
-,BulletList
- [[Plain [Str "Tab"]
- ,BulletList
- [[Plain [Str "Tab"]
- ,BulletList
- [[Plain [Str "Tab"]]]]]]]
-,Para [Str "Here\8217s",Space,Str "another:"]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "First"]]
- ,[Plain [Str "Second:"]
- ,BulletList
- [[Plain [Str "Fee"]]
- ,[Plain [Str "Fie"]]
- ,[Plain [Str "Foe"]]]]
- ,[Plain [Str "Third"]]]
-,Para [Str "Same",Space,Str "thing",Space,Str "but",Space,Str "with",Space,Str "paragraphs:"]
-,OrderedList (1,Decimal,Period)
- [[Para [Str "First"]]
- ,[Para [Str "Second:"]
- ,BulletList
- [[Plain [Str "Fee"]]
- ,[Plain [Str "Fie"]]
- ,[Plain [Str "Foe"]]]]
- ,[Para [Str "Third"]]]
-,Header 2 ("tabs-and-spaces",[],[]) [Str "Tabs",Space,Str "and",Space,Str "spaces"]
-,BulletList
- [[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "tabs"]]
- ,[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "spaces"]
- ,BulletList
- [[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "tabs"]]
- ,[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",SoftBreak,Str "indented",Space,Str "with",Space,Str "spaces"]]]]]
-,Header 2 ("fancy-list-markers",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
-,OrderedList (2,Decimal,TwoParens)
- [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
- ,[Para [Str "and",Space,Str "now",Space,Str "3"]
- ,Para [Str "with",Space,Str "a",Space,Str "continuation"]
- ,OrderedList (4,LowerRoman,Period)
- [[Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",SoftBreak,Str "starting",Space,Str "with",Space,Str "4"]]
- ,[Plain [Str "more",Space,Str "items"]
- ,OrderedList (1,UpperAlpha,TwoParens)
- [[Plain [Str "a",Space,Str "subsublist"]]
- ,[Plain [Str "a",Space,Str "subsublist"]]]]]]]
-,Para [Str "Nesting:"]
-,OrderedList (1,UpperAlpha,Period)
- [[Plain [Str "Upper",Space,Str "Alpha"]
- ,OrderedList (1,UpperRoman,Period)
- [[Plain [Str "Upper",Space,Str "Roman."]
- ,OrderedList (6,Decimal,TwoParens)
- [[Plain [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
- ,OrderedList (3,LowerAlpha,OneParen)
- [[Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
-,Para [Str "Autonumbering:"]
-,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Autonumber."]]
- ,[Plain [Str "More."]
- ,OrderedList (1,DefaultStyle,DefaultDelim)
- [[Plain [Str "Nested."]]]]]
-,Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"]
-,Para [Str "M.A.\160\&2007"]
-,Para [Str "B.",Space,Str "Williams"]
-,HorizontalRule
-,Header 1 ("definition-lists",[],[]) [Str "Definition",Space,Str "Lists"]
-,Para [Str "Tight",Space,Str "using",Space,Str "spaces:"]
-,DefinitionList
- [([Str "apple"],
- [[Plain [Str "red",Space,Str "fruit"]]])
- ,([Str "orange"],
- [[Plain [Str "orange",Space,Str "fruit"]]])
- ,([Str "banana"],
- [[Plain [Str "yellow",Space,Str "fruit"]]])]
-,Para [Str "Tight",Space,Str "using",Space,Str "tabs:"]
-,DefinitionList
- [([Str "apple"],
- [[Plain [Str "red",Space,Str "fruit"]]])
- ,([Str "orange"],
- [[Plain [Str "orange",Space,Str "fruit"]]])
- ,([Str "banana"],
- [[Plain [Str "yellow",Space,Str "fruit"]]])]
-,Para [Str "Loose:"]
-,DefinitionList
- [([Str "apple"],
- [[Para [Str "red",Space,Str "fruit"]]])
- ,([Str "orange"],
- [[Para [Str "orange",Space,Str "fruit"]]])
- ,([Str "banana"],
- [[Para [Str "yellow",Space,Str "fruit"]]])]
-,Para [Str "Multiple",Space,Str "blocks",Space,Str "with",Space,Str "italics:"]
-,DefinitionList
- [([Emph [Str "apple"]],
- [[Para [Str "red",Space,Str "fruit"]
- ,Para [Str "contains",Space,Str "seeds,",SoftBreak,Str "crisp,",Space,Str "pleasant",Space,Str "to",Space,Str "taste"]]])
- ,([Emph [Str "orange"]],
- [[Para [Str "orange",Space,Str "fruit"]
- ,CodeBlock ("",[],[]) "{ orange code block }"
- ,BlockQuote
- [Para [Str "orange",Space,Str "block",Space,Str "quote"]]]])]
-,Para [Str "Multiple",Space,Str "definitions,",Space,Str "tight:"]
-,DefinitionList
- [([Str "apple"],
- [[Plain [Str "red",Space,Str "fruit"]]
- ,[Plain [Str "computer"]]])
- ,([Str "orange"],
- [[Plain [Str "orange",Space,Str "fruit"]]
- ,[Plain [Str "bank"]]])]
-,Para [Str "Multiple",Space,Str "definitions,",Space,Str "loose:"]
-,DefinitionList
- [([Str "apple"],
- [[Para [Str "red",Space,Str "fruit"]]
- ,[Para [Str "computer"]]])
- ,([Str "orange"],
- [[Para [Str "orange",Space,Str "fruit"]]
- ,[Para [Str "bank"]]])]
-,Para [Str "Blank",Space,Str "line",Space,Str "after",Space,Str "term,",Space,Str "indented",Space,Str "marker,",Space,Str "alternate",Space,Str "markers:"]
-,DefinitionList
- [([Str "apple"],
- [[Para [Str "red",Space,Str "fruit"]]
- ,[Para [Str "computer"]]])
- ,([Str "orange"],
- [[Para [Str "orange",Space,Str "fruit"]
- ,OrderedList (1,Decimal,Period)
- [[Plain [Str "sublist"]]
- ,[Plain [Str "sublist"]]]]])]
-,Header 1 ("html-blocks",[],[]) [Str "HTML",Space,Str "Blocks"]
-,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
-,Div ("",[],[])
- [Plain [Str "foo"]]
-,Para [Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
-,Div ("",[],[])
- [Div ("",[],[])
- [Div ("",[],[])
- [Para [Str "foo"]]]
- ,Div ("",[],[])
- [Plain [Str "bar"]]]
-,Para [Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
-,RawBlock (Format "html") ""
-,RawBlock (Format "html") ""
-,RawBlock (Format "html") ""
-,Plain [Str "This",Space,Str "is",Space,Emph [Str "emphasized"]]
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") ""
-,Plain [Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"]]
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") "
"
-,RawBlock (Format "html") ""
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "simple",Space,Str "block:"]
-,Div ("",[],[])
- [Para [Str "foo"]]
-,Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"]
-,CodeBlock ("",[],[]) "\n foo\n
"
-,Para [Str "As",Space,Str "should",Space,Str "this:"]
-,CodeBlock ("",[],[]) "foo
"
-,Para [Str "Now,",Space,Str "nested:"]
-,Div ("",[],[])
- [Div ("",[],[])
- [Div ("",[],[])
- [Plain [Str "foo"]]]]
-,Para [Str "This",Space,Str "should",Space,Str "just",Space,Str "be",Space,Str "an",Space,Str "HTML",Space,Str "comment:"]
-,RawBlock (Format "html") ""
-,Para [Str "Multiline:"]
-,RawBlock (Format "html") ""
-,RawBlock (Format "html") ""
-,Para [Str "Code",Space,Str "block:"]
-,CodeBlock ("",[],[]) ""
-,Para [Str "Just",Space,Str "plain",Space,Str "comment,",Space,Str "with",Space,Str "trailing",Space,Str "spaces",Space,Str "on",Space,Str "the",Space,Str "line:"]
-,RawBlock (Format "html") ""
-,Para [Str "Code:"]
-,CodeBlock ("",[],[]) " "
-,Para [Str "Hr\8217s:"]
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,RawBlock (Format "html") " "
-,HorizontalRule
-,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
-,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
-,Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
-,Para [Str "An",Space,Emph [Link ("",[],[]) [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
-,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
-,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
-,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
-,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
-,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "",Str "."]
-,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]]
-,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello\160there"],Str "."]
-,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many\160of\160them"],Str "O."]
-,Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",SoftBreak,Str "because",Space,Str "of",Space,Str "the",Space,Str "unescaped",Space,Str "spaces:",Space,Str "a^b",Space,Str "c^d,",Space,Str "a~b",Space,Str "c~d."]
-,HorizontalRule
-,Header 1 ("smart-quotes-ellipses-dashes",[],[]) [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
-,Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Quoted DoubleQuote [Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name."]]
-,Para [Quoted SingleQuote [Str "A"],Str ",",Space,Quoted SingleQuote [Str "B"],Str ",",Space,Str "and",Space,Quoted SingleQuote [Str "C"],Space,Str "are",Space,Str "letters."]
-,Para [Quoted SingleQuote [Str "Oak,"],Space,Quoted SingleQuote [Str "elm,"],Space,Str "and",Space,Quoted SingleQuote [Str "beech"],Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",SoftBreak,Str "So",Space,Str "is",Space,Quoted SingleQuote [Str "pine."]]
-,Para [Quoted SingleQuote [Str "He",Space,Str "said,",Space,Quoted DoubleQuote [Str "I",Space,Str "want",Space,Str "to",Space,Str "go."]],Space,Str "Were",Space,Str "you",Space,Str "alive",Space,Str "in",Space,Str "the",SoftBreak,Str "70\8217s?"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "quoted",Space,Quoted SingleQuote [Code ("",[],[]) "code"],Space,Str "and",Space,Str "a",Space,Quoted DoubleQuote [Link ("",[],[]) [Str "quoted",Space,Str "link"] ("http://example.com/?foo=1&bar=2","")],Str "."]
-,Para [Str "Some",Space,Str "dashes:",Space,Str "one\8212two",Space,Str "\8212",Space,Str "three\8212four",Space,Str "\8212",Space,Str "five."]
-,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
-,Para [Str "Ellipses\8230and\8230and\8230."]
-,HorizontalRule
-,Header 1 ("latex",[],[]) [Str "LaTeX"]
-,BulletList
- [[Plain [RawInline (Format "tex") "\\cite[22-23]{smith.1899}"]]
- ,[Plain [Math InlineMath "2+2=4"]]
- ,[Plain [Math InlineMath "x \\in y"]]
- ,[Plain [Math InlineMath "\\alpha \\wedge \\omega"]]
- ,[Plain [Math InlineMath "223"]]
- ,[Plain [Math InlineMath "p",Str "-Tree"]]
- ,[Plain [Str "Here\8217s",Space,Str "some",Space,Str "display",Space,Str "math:",SoftBreak,Math DisplayMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"]]
- ,[Plain [Str "Here\8217s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",Space,Math InlineMath "\\alpha + \\omega \\times x^2",Str "."]]]
-,Para [Str "These",Space,Str "shouldn\8217t",Space,Str "be",Space,Str "math:"]
-,BulletList
- [[Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code ("",[],[]) "$e = mc^2$",Str "."]]
- ,[Plain [Str "$22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money.",Space,Str "So",Space,Str "is",Space,Str "$34,000.",SoftBreak,Str "(It",Space,Str "worked",Space,Str "if",Space,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized.)"]]
- ,[Plain [Str "Shoes",Space,Str "($20)",Space,Str "and",Space,Str "socks",Space,Str "($5)."]]
- ,[Plain [Str "Escaped",Space,Code ("",[],[]) "$",Str ":",Space,Str "$73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23$."]]]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
-,RawBlock (Format "tex") "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
-,HorizontalRule
-,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
-,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
-,BulletList
- [[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
- ,[Plain [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
- ,[Plain [Str "section:",Space,Str "\167"]]
- ,[Plain [Str "set",Space,Str "membership:",Space,Str "\8712"]]
- ,[Plain [Str "copyright:",Space,Str "\169"]]]
-,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
-,Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it."]
-,Para [Str "This",Space,Str "&",Space,Str "that."]
-,Para [Str "4",Space,Str "<",Space,Str "5."]
-,Para [Str "6",Space,Str ">",Space,Str "5."]
-,Para [Str "Backslash:",Space,Str "\\"]
-,Para [Str "Backtick:",Space,Str "`"]
-,Para [Str "Asterisk:",Space,Str "*"]
-,Para [Str "Underscore:",Space,Str "_"]
-,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
-,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
-,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
-,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
-,Para [Str "Left",Space,Str "paren:",Space,Str "("]
-,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
-,Para [Str "Greater-than:",Space,Str ">"]
-,Para [Str "Hash:",Space,Str "#"]
-,Para [Str "Period:",Space,Str "."]
-,Para [Str "Bang:",Space,Str "!"]
-,Para [Str "Plus:",Space,Str "+"]
-,Para [Str "Minus:",Space,Str "-"]
-,HorizontalRule
-,Header 1 ("links",[],[]) [Str "Links"]
-,Header 2 ("explicit",[],[]) [Str "Explicit"]
-,Para [Str "Just",Space,Str "a",Space,Link ("",[],[]) [Str "URL"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title"),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title preceded by two spaces"),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title preceded by a tab"),Str "."]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title with \"quotes\" in it")]
-,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title with single quotes")]
-,Para [Link ("",[],[]) [Str "with_underscore"] ("/url/with_underscore","")]
-,Para [Link ("",[],[]) [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
-,Para [Link ("",[],[]) [Str "Empty"] ("",""),Str "."]
-,Header 2 ("reference",[],[]) [Str "Reference"]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
-,Para [Str "With",Space,Link ("",[],[]) [Str "embedded",Space,Str "[brackets]"] ("/url/",""),Str "."]
-,Para [Link ("",[],[]) [Str "b"] ("/url/",""),Space,Str "by",Space,Str "itself",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "link."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "once"] ("/url",""),Str "."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "twice"] ("/url",""),Str "."]
-,Para [Str "Indented",Space,Link ("",[],[]) [Str "thrice"] ("/url",""),Str "."]
-,Para [Str "This",Space,Str "should",Space,Str "[not][]",Space,Str "be",Space,Str "a",Space,Str "link."]
-,CodeBlock ("",[],[]) "[not]: /url"
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/","Title with \"quotes\" inside"),Str "."]
-,Para [Str "Foo",Space,Link ("",[],[]) [Str "biz"] ("/url/","Title with \"quote\" inside"),Str "."]
-,Header 2 ("with-ampersands",[],[]) [Str "With",Space,Str "ampersands"]
-,Para [Str "Here\8217s",Space,Str "a",Space,Link ("",[],[]) [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link ("",[],[]) [Str "AT&T"] ("http://att.com/","AT&T"),Str "."]
-,Para [Str "Here\8217s",Space,Str "an",Space,Link ("",[],[]) [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
-,Para [Str "Here\8217s",Space,Str "an",Space,Link ("",[],[]) [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
-,Header 2 ("autolinks",[],[]) [Str "Autolinks"]
-,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link ("",["uri"],[]) [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
-,BulletList
- [[Plain [Str "In",Space,Str "a",Space,Str "list?"]]
- ,[Plain [Link ("",["uri"],[]) [Str "http://example.com/"] ("http://example.com/","")]]
- ,[Plain [Str "It",Space,Str "should."]]]
-,Para [Str "An",Space,Str "e-mail",Space,Str "address:",Space,Link ("",["email"],[]) [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
-,BlockQuote
- [Para [Str "Blockquoted:",Space,Link ("",["uri"],[]) [Str "http://example.com/"] ("http://example.com/","")]]
-,Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code ("",[],[]) " "]
-,CodeBlock ("",[],[]) "or here: "
-,HorizontalRule
-,Header 1 ("images",[],[]) [Str "Images"]
-,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
-,Para [Image ("",[],[]) [Str "lalune"] ("lalune.jpg","fig:Voyage dans la Lune")]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image ("",[],[]) [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
-,HorizontalRule
-,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
-,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Note [Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "after",Space,Str "the",Space,Str "footnote",SoftBreak,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],Space,Str "and",Space,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",SoftBreak,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",SoftBreak,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",SoftBreak,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],SoftBreak,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",SoftBreak,Str "contains",Space,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",Space,Str "note.",Note [Para [Str "This",SoftBreak,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",SoftBreak,Link ("",[],[]) [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",SoftBreak,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
-,BlockQuote
- [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
-,OrderedList (1,Decimal,Period)
- [[Plain [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
-,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."]]
+Pandoc
+ ( Meta
+ { unMeta = fromList
+ [
+ ( "author"
+ , MetaList
+ [ MetaInlines
+ [ Str "John", Space, Str "MacFarlane" ]
+ , MetaInlines
+ [ Str "Anonymous" ]
+ ]
+ )
+ ,
+ ( "date"
+ , MetaInlines
+ [ Str "July", Space, Str "17,", Space, Str "2006" ]
+ )
+ ,
+ ( "title"
+ , MetaInlines
+ [ Str "Pandoc", Space, Str "Test", Space, Str "Suite" ]
+ )
+ ]
+ }
+ )
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "set"
+ , Space
+ , Str "of"
+ , Space
+ , Str "tests"
+ , Space
+ , Str "for"
+ , Space
+ , Str "pandoc."
+ , Space
+ , Str "Most"
+ , Space
+ , Str "of"
+ , Space
+ , Str "them"
+ , Space
+ , Str "are"
+ , Space
+ , Str "adapted"
+ , Space
+ , Str "from"
+ , SoftBreak
+ , Str "John"
+ , Space
+ , Str "Gruber\8217s"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "test"
+ , Space
+ , Str "suite."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "headers", [], [] )
+ [ Str "Headers" ]
+ , Header 2
+ ( "level-2-with-an-embedded-link", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "link" ]
+ ( "/url", "" )
+ ]
+ , Header 3
+ ( "level-3-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "3"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Header 4
+ ( "level-4", [], [] )
+ [ Str "Level", Space, Str "4" ]
+ , Header 5
+ ( "level-5", [], [] )
+ [ Str "Level", Space, Str "5" ]
+ , Header 1
+ ( "level-1", [], [] )
+ [ Str "Level", Space, Str "1" ]
+ , Header 2
+ ( "level-2-with-emphasis", [], [] )
+ [ Str "Level"
+ , Space
+ , Str "2"
+ , Space
+ , Str "with"
+ , Space
+ , Emph
+ [ Str "emphasis" ]
+ ]
+ , Header 3
+ ( "level-3", [], [] )
+ [ Str "Level", Space, Str "3" ]
+ , Para
+ [ Str "with", Space, Str "no", Space, Str "blank", Space, Str "line" ]
+ , Header 2
+ ( "level-2", [], [] )
+ [ Str "Level", Space, Str "2" ]
+ , Para
+ [ Str "with", Space, Str "no", Space, Str "blank", Space, Str "line" ]
+ , HorizontalRule
+ , Header 1
+ ( "paragraphs", [], [] )
+ [ Str "Paragraphs" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "regular"
+ , Space
+ , Str "paragraph."
+ ]
+ , Para
+ [ Str "In"
+ , Space
+ , Str "Markdown"
+ , Space
+ , Str "1.0.0"
+ , Space
+ , Str "and"
+ , Space
+ , Str "earlier."
+ , Space
+ , Str "Version"
+ , SoftBreak
+ , Str "8."
+ , Space
+ , Str "This"
+ , Space
+ , Str "line"
+ , Space
+ , Str "turns"
+ , Space
+ , Str "into"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item."
+ , SoftBreak
+ , Str "Because"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard-wrapped"
+ , Space
+ , Str "line"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "middle"
+ , Space
+ , Str "of"
+ , Space
+ , Str "a"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "looked"
+ , Space
+ , Str "like"
+ , Space
+ , Str "a"
+ , SoftBreak
+ , Str "list"
+ , Space
+ , Str "item."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "with"
+ , Space
+ , Str "a"
+ , Space
+ , Str "bullet."
+ , SoftBreak
+ , Str "*"
+ , Space
+ , Str "criminey."
+ ]
+ , Para
+ [ Str "There"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "hard"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ , LineBreak
+ , Str "here."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "block-quotes", [], [] )
+ [ Str "Block", Space, Str "Quotes" ]
+ , Para
+ [ Str "E-mail", Space, Str "style:" ]
+ , BlockQuote
+ [ Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote."
+ , SoftBreak
+ , Str "It"
+ , Space
+ , Str "is"
+ , Space
+ , Str "pretty"
+ , Space
+ , Str "short."
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Code"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "sub status {\n print \"working\";\n}"
+ , Para
+ [ Str "A", Space, Str "list:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "item", Space, Str "one" ] ]
+ ,
+ [ Plain [ Str "item", Space, Str "two" ] ]
+ ]
+ , Para
+ [ Str "Nested", Space, Str "block", Space, Str "quotes:" ]
+ , BlockQuote
+ [ Para [ Str "nested" ] ]
+ , BlockQuote
+ [ Para [ Str "nested" ] ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "block"
+ , Space
+ , Str "quote:"
+ , Space
+ , Str "2"
+ , SoftBreak
+ , Str ">"
+ , Space
+ , Str "1."
+ ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "a"
+ , Space
+ , Str "following"
+ , Space
+ , Str "paragraph."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "code-blocks", [], [] )
+ [ Str "Code", Space, Str "Blocks" ]
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
+ , Para
+ [ Str "And:" ]
+ , CodeBlock
+ ( ""
+ , []
+ , []
+ ) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
+ , HorizontalRule
+ , Header 1
+ ( "lists", [], [] )
+ [ Str "Lists" ]
+ , Header 2
+ ( "unordered", [], [] )
+ [ Str "Unordered" ]
+ , Para
+ [ Str "Asterisks", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Asterisks", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "asterisk", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "asterisk", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Pluses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "Plus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Plus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "tight:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Plain [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Para
+ [ Str "Minuses", Space, Str "loose:" ]
+ , BulletList
+ [
+ [ Para [ Str "Minus", Space, Str "1" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "2" ] ]
+ ,
+ [ Para [ Str "Minus", Space, Str "3" ] ]
+ ]
+ , Header 2
+ ( "ordered", [], [] )
+ [ Str "Ordered" ]
+ , Para
+ [ Str "Tight:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain [ Str "Second" ] ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "One" ] ]
+ ,
+ [ Plain [ Str "Two" ] ]
+ ,
+ [ Plain [ Str "Three" ] ]
+ ]
+ , Para
+ [ Str "Loose", Space, Str "using", Space, Str "tabs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para [ Str "Second" ] ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "and", Space, Str "using", Space, Str "spaces:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [ [ Para [ Str "One" ] ], [ Para [ Str "Two" ] ], [ Para [ Str "Three" ] ] ]
+ , Para
+ [ Str "Multiple", Space, Str "paragraphs:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para
+ [ Str "Item", Space, Str "1,", Space, Str "graf", Space, Str "one." ]
+ , Para
+ [ Str "Item"
+ , Space
+ , Str "1."
+ , Space
+ , Str "graf"
+ , Space
+ , Str "two."
+ , Space
+ , Str "The"
+ , Space
+ , Str "quick"
+ , Space
+ , Str "brown"
+ , Space
+ , Str "fox"
+ , Space
+ , Str "jumped"
+ , Space
+ , Str "over"
+ , Space
+ , Str "the"
+ , Space
+ , Str "lazy"
+ , Space
+ , Str "dog\8217s"
+ , SoftBreak
+ , Str "back."
+ ]
+ ]
+ ,
+ [ Para [ Str "Item", Space, Str "2." ] ]
+ ,
+ [ Para [ Str "Item", Space, Str "3." ] ]
+ ]
+ , Header 2
+ ( "nested", [], [] )
+ [ Str "Nested" ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "Tab" ]
+ , BulletList
+ [ [ Plain [ Str "Tab" ], BulletList [ [ Plain [ Str "Tab" ] ] ] ] ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s", Space, Str "another:" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain [ Str "First" ] ]
+ ,
+ [ Plain
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Fee" ] ]
+ ,
+ [ Plain [ Str "Fie" ] ]
+ ,
+ [ Plain [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Plain [ Str "Third" ] ]
+ ]
+ , Para
+ [ Str "Same"
+ , Space
+ , Str "thing"
+ , Space
+ , Str "but"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paragraphs:"
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Para [ Str "First" ] ]
+ ,
+ [ Para
+ [ Str "Second:" ]
+ , BulletList
+ [
+ [ Plain [ Str "Fee" ] ]
+ ,
+ [ Plain [ Str "Fie" ] ]
+ ,
+ [ Plain [ Str "Foe" ] ]
+ ]
+ ]
+ ,
+ [ Para [ Str "Third" ] ]
+ ]
+ , Header 2
+ ( "tabs-and-spaces", [], [] )
+ [ Str "Tabs", Space, Str "and", Space, Str "spaces" ]
+ , BulletList
+ [
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tabs"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ ]
+ , BulletList
+ [
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "example"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "tabs"
+ ]
+ ]
+ ,
+ [ Para
+ [ Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "example"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item"
+ , SoftBreak
+ , Str "indented"
+ , Space
+ , Str "with"
+ , Space
+ , Str "spaces"
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Header 2
+ ( "fancy-list-markers", [], [] )
+ [ Str "Fancy", Space, Str "list", Space, Str "markers" ]
+ , OrderedList
+ ( 2, Decimal, TwoParens )
+ [
+ [ Para [ Str "begins", Space, Str "with", Space, Str "2" ] ]
+ ,
+ [ Para
+ [ Str "and", Space, Str "now", Space, Str "3" ]
+ , Para
+ [ Str "with", Space, Str "a", Space, Str "continuation" ]
+ , OrderedList
+ ( 4, LowerRoman, Period )
+ [
+ [ Plain
+ [ Str "sublist"
+ , Space
+ , Str "with"
+ , Space
+ , Str "roman"
+ , Space
+ , Str "numerals,"
+ , SoftBreak
+ , Str "starting"
+ , Space
+ , Str "with"
+ , Space
+ , Str "4"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "more", Space, Str "items" ]
+ , OrderedList
+ ( 1, UpperAlpha, TwoParens )
+ [
+ [ Plain [ Str "a", Space, Str "subsublist" ] ]
+ ,
+ [ Plain [ Str "a", Space, Str "subsublist" ] ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Nesting:" ]
+ , OrderedList
+ ( 1, UpperAlpha, Period )
+ [
+ [ Plain
+ [ Str "Upper", Space, Str "Alpha" ]
+ , OrderedList
+ ( 1, UpperRoman, Period )
+ [
+ [ Plain
+ [ Str "Upper", Space, Str "Roman." ]
+ , OrderedList
+ ( 6, Decimal, TwoParens )
+ [
+ [ Plain
+ [ Str "Decimal"
+ , Space
+ , Str "start"
+ , Space
+ , Str "with"
+ , Space
+ , Str "6"
+ ]
+ , OrderedList
+ ( 3, LowerAlpha, OneParen )
+ [
+ [ Plain
+ [ Str "Lower"
+ , Space
+ , Str "alpha"
+ , Space
+ , Str "with"
+ , Space
+ , Str "paren"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Autonumbering:" ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [
+ [ Plain [ Str "Autonumber." ] ]
+ ,
+ [ Plain
+ [ Str "More." ]
+ , OrderedList
+ ( 1, DefaultStyle, DefaultDelim )
+ [ [ Plain [ Str "Nested." ] ] ]
+ ]
+ ]
+ , Para
+ [ Str "Should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "list"
+ , Space
+ , Str "item:"
+ ]
+ , Para
+ [ Str "M.A.\160\&2007" ]
+ , Para
+ [ Str "B.", Space, Str "Williams" ]
+ , HorizontalRule
+ , Header 1
+ ( "definition-lists", [], [] )
+ [ Str "Definition", Space, Str "Lists" ]
+ , Para
+ [ Str "Tight", Space, Str "using", Space, Str "spaces:" ]
+ , DefinitionList
+ [
+ ( [ Str "apple" ], [ [ Plain [ Str "red", Space, Str "fruit" ] ] ] )
+ ,
+ ( [ Str "orange" ], [ [ Plain [ Str "orange", Space, Str "fruit" ] ] ] )
+ ,
+ ( [ Str "banana" ], [ [ Plain [ Str "yellow", Space, Str "fruit" ] ] ] )
+ ]
+ , Para
+ [ Str "Tight", Space, Str "using", Space, Str "tabs:" ]
+ , DefinitionList
+ [
+ ( [ Str "apple" ], [ [ Plain [ Str "red", Space, Str "fruit" ] ] ] )
+ ,
+ ( [ Str "orange" ], [ [ Plain [ Str "orange", Space, Str "fruit" ] ] ] )
+ ,
+ ( [ Str "banana" ], [ [ Plain [ Str "yellow", Space, Str "fruit" ] ] ] )
+ ]
+ , Para
+ [ Str "Loose:" ]
+ , DefinitionList
+ [
+ ( [ Str "apple" ], [ [ Para [ Str "red", Space, Str "fruit" ] ] ] )
+ ,
+ ( [ Str "orange" ], [ [ Para [ Str "orange", Space, Str "fruit" ] ] ] )
+ ,
+ ( [ Str "banana" ], [ [ Para [ Str "yellow", Space, Str "fruit" ] ] ] )
+ ]
+ , Para
+ [ Str "Multiple"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "with"
+ , Space
+ , Str "italics:"
+ ]
+ , DefinitionList
+ [
+ (
+ [ Emph [ Str "apple" ] ]
+ ,
+ [
+ [ Para
+ [ Str "red", Space, Str "fruit" ]
+ , Para
+ [ Str "contains"
+ , Space
+ , Str "seeds,"
+ , SoftBreak
+ , Str "crisp,"
+ , Space
+ , Str "pleasant"
+ , Space
+ , Str "to"
+ , Space
+ , Str "taste"
+ ]
+ ]
+ ]
+ )
+ ,
+ (
+ [ Emph [ Str "orange" ] ]
+ ,
+ [
+ [ Para
+ [ Str "orange", Space, Str "fruit" ]
+ , CodeBlock
+ ( "", [], [] ) "{ orange code block }"
+ , BlockQuote
+ [ Para [ Str "orange", Space, Str "block", Space, Str "quote" ] ]
+ ]
+ ]
+ )
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "definitions,", Space, Str "tight:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [
+ [ Plain [ Str "red", Space, Str "fruit" ] ]
+ ,
+ [ Plain [ Str "computer" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [
+ [ Plain [ Str "orange", Space, Str "fruit" ] ]
+ ,
+ [ Plain [ Str "bank" ] ]
+ ]
+ )
+ ]
+ , Para
+ [ Str "Multiple", Space, Str "definitions,", Space, Str "loose:" ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [
+ [ Para [ Str "red", Space, Str "fruit" ] ]
+ ,
+ [ Para [ Str "computer" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [
+ [ Para [ Str "orange", Space, Str "fruit" ] ]
+ ,
+ [ Para [ Str "bank" ] ]
+ ]
+ )
+ ]
+ , Para
+ [ Str "Blank"
+ , Space
+ , Str "line"
+ , Space
+ , Str "after"
+ , Space
+ , Str "term,"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "marker,"
+ , Space
+ , Str "alternate"
+ , Space
+ , Str "markers:"
+ ]
+ , DefinitionList
+ [
+ (
+ [ Str "apple" ]
+ ,
+ [
+ [ Para [ Str "red", Space, Str "fruit" ] ]
+ ,
+ [ Para [ Str "computer" ] ]
+ ]
+ )
+ ,
+ (
+ [ Str "orange" ]
+ ,
+ [
+ [ Para
+ [ Str "orange", Space, Str "fruit" ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [ [ Plain [ Str "sublist" ] ], [ Plain [ Str "sublist" ] ] ]
+ ]
+ ]
+ )
+ ]
+ , Header 1
+ ( "html-blocks", [], [] )
+ [ Str "HTML", Space, Str "Blocks" ]
+ , Para
+ [ Str "Simple"
+ , Space
+ , Str "block"
+ , Space
+ , Str "on"
+ , Space
+ , Str "one"
+ , Space
+ , Str "line:"
+ ]
+ , Div
+ ( "", [], [] )
+ [ Plain [ Str "foo" ] ]
+ , Para
+ [ Str "And"
+ , Space
+ , Str "nested"
+ , Space
+ , Str "without"
+ , Space
+ , Str "indentation:"
+ ]
+ , Div
+ ( "", [], [] )
+ [ Div
+ ( "", [], [] )
+ [ Div ( "", [], [] ) [ Para [ Str "foo" ] ] ]
+ , Div
+ ( "", [], [] )
+ [ Plain [ Str "bar" ] ]
+ ]
+ , Para
+ [ Str "Interpreted"
+ , Space
+ , Str "markdown"
+ , Space
+ , Str "in"
+ , Space
+ , Str "a"
+ , Space
+ , Str "table:"
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , RawBlock
+ ( Format "html" ) ""
+ , RawBlock
+ ( Format "html" ) ""
+ , Plain
+ [ Str "This", Space, Str "is", Space, Emph [ Str "emphasized" ] ]
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) ""
+ , Plain
+ [ Str "And"
+ , Space
+ , Str "this"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ ]
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) "
"
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "simple"
+ , Space
+ , Str "block:"
+ ]
+ , Div
+ ( "", [], [] )
+ [ Para [ Str "foo" ] ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "code"
+ , Space
+ , Str "block,"
+ , Space
+ , Str "though:"
+ ]
+ , CodeBlock
+ ( "", [], [] ) "\n foo\n
"
+ , Para
+ [ Str "As", Space, Str "should", Space, Str "this:" ]
+ , CodeBlock
+ ( "", [], [] ) "foo
"
+ , Para
+ [ Str "Now,", Space, Str "nested:" ]
+ , Div
+ ( "", [], [] )
+ [ Div ( "", [], [] ) [ Div ( "", [], [] ) [ Plain [ Str "foo" ] ] ] ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "just"
+ , Space
+ , Str "be"
+ , Space
+ , Str "an"
+ , Space
+ , Str "HTML"
+ , Space
+ , Str "comment:"
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Multiline:" ]
+ , RawBlock
+ ( Format "html" ) ""
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Code", Space, Str "block:" ]
+ , CodeBlock
+ ( "", [], [] ) ""
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "plain"
+ , Space
+ , Str "comment,"
+ , Space
+ , Str "with"
+ , Space
+ , Str "trailing"
+ , Space
+ , Str "spaces"
+ , Space
+ , Str "on"
+ , Space
+ , Str "the"
+ , Space
+ , Str "line:"
+ ]
+ , RawBlock
+ ( Format "html" ) ""
+ , Para
+ [ Str "Code:" ]
+ , CodeBlock
+ ( "", [], [] ) " "
+ , Para
+ [ Str "Hr\8217s:" ]
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , RawBlock
+ ( Format "html" ) " "
+ , HorizontalRule
+ , Header 1
+ ( "inline-markup", [], [] )
+ [ Str "Inline", Space, Str "Markup" ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "emphasized" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Emph
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Str "strong" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Str "so"
+ , Space
+ , Strong
+ [ Str "is", Space, Str "this" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "An"
+ , Space
+ , Emph
+ [ Link
+ ( "", [], [] )
+ [ Str "emphasized", Space, Str "link" ]
+ ( "/url", "" )
+ ]
+ , Str "."
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word."
+ ]
+ , Para
+ [ Strong
+ [ Emph
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "strong"
+ , Space
+ , Str "and"
+ , Space
+ , Str "em."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Strong
+ [ Emph [ Str "this" ] ]
+ , Space
+ , Str "word."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "is"
+ , Space
+ , Str "code:"
+ , Space
+ , Code
+ ( "", [], [] ) ">"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) "\\$"
+ , Str ","
+ , Space
+ , Code
+ ( "", [], [] ) ""
+ , Str "."
+ ]
+ , Para
+ [ Strikeout
+ [ Str "This", Space, Str "is", Space, Emph [ Str "strikeout" ], Str "." ]
+ ]
+ , Para
+ [ Str "Superscripts:"
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "bc" ]
+ , Str "d"
+ , Space
+ , Str "a"
+ , Superscript
+ [ Emph [ Str "hello" ] ]
+ , Space
+ , Str "a"
+ , Superscript
+ [ Str "hello\160there" ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Subscripts:"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "2" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "23" ]
+ , Str "O,"
+ , Space
+ , Str "H"
+ , Subscript
+ [ Str "many\160of\160them" ]
+ , Str "O."
+ ]
+ , Para
+ [ Str "These"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "superscripts"
+ , Space
+ , Str "or"
+ , Space
+ , Str "subscripts,"
+ , SoftBreak
+ , Str "because"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "unescaped"
+ , Space
+ , Str "spaces:"
+ , Space
+ , Str "a^b"
+ , Space
+ , Str "c^d,"
+ , Space
+ , Str "a~b"
+ , Space
+ , Str "c~d."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "smart-quotes-ellipses-dashes", [], [] )
+ [ Str "Smart"
+ , Space
+ , Str "quotes,"
+ , Space
+ , Str "ellipses,"
+ , Space
+ , Str "dashes"
+ ]
+ , Para
+ [ Quoted DoubleQuote
+ [ Str "Hello," ]
+ , Space
+ , Str "said"
+ , Space
+ , Str "the"
+ , Space
+ , Str "spider."
+ , Space
+ , Quoted DoubleQuote
+ [ Quoted SingleQuote
+ [ Str "Shelob" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "my"
+ , Space
+ , Str "name."
+ ]
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "A" ]
+ , Str ","
+ , Space
+ , Quoted SingleQuote
+ [ Str "B" ]
+ , Str ","
+ , Space
+ , Str "and"
+ , Space
+ , Quoted SingleQuote
+ [ Str "C" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "letters."
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "Oak," ]
+ , Space
+ , Quoted SingleQuote
+ [ Str "elm," ]
+ , Space
+ , Str "and"
+ , Space
+ , Quoted SingleQuote
+ [ Str "beech" ]
+ , Space
+ , Str "are"
+ , Space
+ , Str "names"
+ , Space
+ , Str "of"
+ , Space
+ , Str "trees."
+ , SoftBreak
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Quoted SingleQuote
+ [ Str "pine." ]
+ ]
+ , Para
+ [ Quoted SingleQuote
+ [ Str "He"
+ , Space
+ , Str "said,"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "I", Space, Str "want", Space, Str "to", Space, Str "go." ]
+ ]
+ , Space
+ , Str "Were"
+ , Space
+ , Str "you"
+ , Space
+ , Str "alive"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "70\8217s?"
+ ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "some"
+ , Space
+ , Str "quoted"
+ , Space
+ , Quoted SingleQuote
+ [ Code ( "", [], [] ) "code" ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "a"
+ , Space
+ , Quoted DoubleQuote
+ [ Link
+ ( "", [], [] )
+ [ Str "quoted", Space, Str "link" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ ]
+ , Str "."
+ ]
+ , Para
+ [ Str "Some"
+ , Space
+ , Str "dashes:"
+ , Space
+ , Str "one\8212two"
+ , Space
+ , Str "\8212"
+ , Space
+ , Str "three\8212four"
+ , Space
+ , Str "\8212"
+ , Space
+ , Str "five."
+ ]
+ , Para
+ [ Str "Dashes"
+ , Space
+ , Str "between"
+ , Space
+ , Str "numbers:"
+ , Space
+ , Str "5\8211\&7,"
+ , Space
+ , Str "255\8211\&66,"
+ , Space
+ , Str "1987\8211\&1999."
+ ]
+ , Para
+ [ Str "Ellipses\8230and\8230and\8230." ]
+ , HorizontalRule
+ , Header 1
+ ( "latex", [], [] )
+ [ Str "LaTeX" ]
+ , BulletList
+ [
+ [ Plain [ RawInline ( Format "tex" ) "\\cite[22-23]{smith.1899}" ] ]
+ ,
+ [ Plain [ Math InlineMath "2+2=4" ] ]
+ ,
+ [ Plain [ Math InlineMath "x \\in y" ] ]
+ ,
+ [ Plain [ Math InlineMath "\\alpha \\wedge \\omega" ] ]
+ ,
+ [ Plain [ Math InlineMath "223" ] ]
+ ,
+ [ Plain [ Math InlineMath "p", Str "-Tree" ] ]
+ ,
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "some"
+ , Space
+ , Str "display"
+ , Space
+ , Str "math:"
+ , SoftBreak
+ , Math DisplayMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Here\8217s"
+ , Space
+ , Str "one"
+ , Space
+ , Str "that"
+ , Space
+ , Str "has"
+ , Space
+ , Str "a"
+ , Space
+ , Str "line"
+ , Space
+ , Str "break"
+ , Space
+ , Str "in"
+ , Space
+ , Str "it:"
+ , Space
+ , Math InlineMath "\\alpha + \\omega \\times x^2"
+ , Str "."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "These"
+ , Space
+ , Str "shouldn\8217t"
+ , Space
+ , Str "be"
+ , Space
+ , Str "math:"
+ ]
+ , BulletList
+ [
+ [ Plain
+ [ Str "To"
+ , Space
+ , Str "get"
+ , Space
+ , Str "the"
+ , Space
+ , Str "famous"
+ , Space
+ , Str "equation,"
+ , Space
+ , Str "write"
+ , Space
+ , Code
+ ( "", [], [] ) "$e = mc^2$"
+ , Str "."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "$22,000"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Emph
+ [ Str "lot" ]
+ , Space
+ , Str "of"
+ , Space
+ , Str "money."
+ , Space
+ , Str "So"
+ , Space
+ , Str "is"
+ , Space
+ , Str "$34,000."
+ , SoftBreak
+ , Str "(It"
+ , Space
+ , Str "worked"
+ , Space
+ , Str "if"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "lot" ]
+ , Space
+ , Str "is"
+ , Space
+ , Str "emphasized.)"
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Shoes"
+ , Space
+ , Str "($20)"
+ , Space
+ , Str "and"
+ , Space
+ , Str "socks"
+ , Space
+ , Str "($5)."
+ ]
+ ]
+ ,
+ [ Plain
+ [ Str "Escaped"
+ , Space
+ , Code
+ ( "", [], [] ) "$"
+ , Str ":"
+ , Space
+ , Str "$73"
+ , Space
+ , Emph
+ [ Str "this"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "emphasized"
+ ]
+ , Space
+ , Str "23$."
+ ]
+ ]
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "LaTeX"
+ , Space
+ , Str "table:"
+ ]
+ , RawBlock
+ ( Format "tex" ) "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
+ , HorizontalRule
+ , Header 1
+ ( "special-characters", [], [] )
+ [ Str "Special", Space, Str "Characters" ]
+ , Para
+ [ Str "Here", Space, Str "is", Space, Str "some", Space, Str "unicode:" ]
+ , BulletList
+ [
+ [ Plain [ Str "I", Space, Str "hat:", Space, Str "\206" ] ]
+ ,
+ [ Plain [ Str "o", Space, Str "umlaut:", Space, Str "\246" ] ]
+ ,
+ [ Plain [ Str "section:", Space, Str "\167" ] ]
+ ,
+ [ Plain [ Str "set", Space, Str "membership:", Space, Str "\8712" ] ]
+ ,
+ [ Plain [ Str "copyright:", Space, Str "\169" ] ]
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "has"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "their"
+ , Space
+ , Str "name."
+ ]
+ , Para
+ [ Str "AT&T"
+ , Space
+ , Str "is"
+ , Space
+ , Str "another"
+ , Space
+ , Str "way"
+ , Space
+ , Str "to"
+ , Space
+ , Str "write"
+ , Space
+ , Str "it."
+ ]
+ , Para
+ [ Str "This", Space, Str "&", Space, Str "that." ]
+ , Para
+ [ Str "4", Space, Str "<", Space, Str "5." ]
+ , Para
+ [ Str "6", Space, Str ">", Space, Str "5." ]
+ , Para
+ [ Str "Backslash:", Space, Str "\\" ]
+ , Para
+ [ Str "Backtick:", Space, Str "`" ]
+ , Para
+ [ Str "Asterisk:", Space, Str "*" ]
+ , Para
+ [ Str "Underscore:", Space, Str "_" ]
+ , Para
+ [ Str "Left", Space, Str "brace:", Space, Str "{" ]
+ , Para
+ [ Str "Right", Space, Str "brace:", Space, Str "}" ]
+ , Para
+ [ Str "Left", Space, Str "bracket:", Space, Str "[" ]
+ , Para
+ [ Str "Right", Space, Str "bracket:", Space, Str "]" ]
+ , Para
+ [ Str "Left", Space, Str "paren:", Space, Str "(" ]
+ , Para
+ [ Str "Right", Space, Str "paren:", Space, Str ")" ]
+ , Para
+ [ Str "Greater-than:", Space, Str ">" ]
+ , Para
+ [ Str "Hash:", Space, Str "#" ]
+ , Para
+ [ Str "Period:", Space, Str "." ]
+ , Para
+ [ Str "Bang:", Space, Str "!" ]
+ , Para
+ [ Str "Plus:", Space, Str "+" ]
+ , Para
+ [ Str "Minus:", Space, Str "-" ]
+ , HorizontalRule
+ , Header 1
+ ( "links", [], [] )
+ [ Str "Links" ]
+ , Header 2
+ ( "explicit", [], [] )
+ [ Str "Explicit" ]
+ , Para
+ [ Str "Just"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "URL" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title preceded by two spaces" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title preceded by a tab" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title with \"quotes\" in it" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "URL", Space, Str "and", Space, Str "title" ]
+ ( "/url/", "title with single quotes" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "with_underscore" ]
+ ( "/url/with_underscore", "" )
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "Email", Space, Str "link" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , Para
+ [ Link ( "", [], [] ) [ Str "Empty" ] ( "", "" ), Str "." ]
+ , Header 2
+ ( "reference", [], [] )
+ [ Str "Reference" ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "With"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "embedded", Space, Str "[brackets]" ]
+ ( "/url/", "" )
+ , Str "."
+ ]
+ , Para
+ [ Link
+ ( "", [], [] )
+ [ Str "b" ]
+ ( "/url/", "" )
+ , Space
+ , Str "by"
+ , Space
+ , Str "itself"
+ , Space
+ , Str "should"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "once" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "twice" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Indented"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "thrice" ]
+ ( "/url", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Str "[not][]"
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link."
+ ]
+ , CodeBlock
+ ( "", [], [] ) "[not]: /url"
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "bar" ]
+ ( "/url/", "Title with \"quotes\" inside" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Foo"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "biz" ]
+ ( "/url/", "Title with \"quote\" inside" )
+ , Str "."
+ ]
+ , Header 2
+ ( "with-ampersands", [], [] )
+ [ Str "With", Space, Str "ampersands" ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "URL"
+ ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "a"
+ , Space
+ , Str "link"
+ , Space
+ , Str "with"
+ , Space
+ , Str "an"
+ , Space
+ , Str "amersand"
+ , Space
+ , Str "in"
+ , Space
+ , Str "the"
+ , Space
+ , Str "link"
+ , Space
+ , Str "text:"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "AT&T" ]
+ ( "http://att.com/", "AT&T" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "inline", Space, Str "link" ]
+ ( "/script?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "an"
+ , Space
+ , Link
+ ( "", [], [] )
+ [ Str "inline"
+ , Space
+ , Str "link"
+ , Space
+ , Str "in"
+ , Space
+ , Str "pointy"
+ , Space
+ , Str "braces"
+ ]
+ ( "/script?foo=1&bar=2", "" )
+ , Str "."
+ ]
+ , Header 2
+ ( "autolinks", [], [] )
+ [ Str "Autolinks" ]
+ , Para
+ [ Str "With"
+ , Space
+ , Str "an"
+ , Space
+ , Str "ampersand:"
+ , Space
+ , Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://example.com/?foo=1&bar=2" ]
+ ( "http://example.com/?foo=1&bar=2", "" )
+ ]
+ , BulletList
+ [
+ [ Plain [ Str "In", Space, Str "a", Space, Str "list?" ] ]
+ ,
+ [ Plain
+ [ Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://example.com/" ]
+ ( "http://example.com/", "" )
+ ]
+ ]
+ ,
+ [ Plain [ Str "It", Space, Str "should." ] ]
+ ]
+ , Para
+ [ Str "An"
+ , Space
+ , Str "e-mail"
+ , Space
+ , Str "address:"
+ , Space
+ , Link
+ ( "", [ "email" ], [] )
+ [ Str "nobody@nowhere.net" ]
+ ( "mailto:nobody@nowhere.net", "" )
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Blockquoted:"
+ , Space
+ , Link
+ ( "", [ "uri" ], [] )
+ [ Str "http://example.com/" ]
+ ( "http://example.com/", "" )
+ ]
+ ]
+ , Para
+ [ Str "Auto-links"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "occur"
+ , Space
+ , Str "here:"
+ , Space
+ , Code
+ ( "", [], [] ) " "
+ ]
+ , CodeBlock
+ ( "", [], [] ) "or here: "
+ , HorizontalRule
+ , Header 1
+ ( "images", [], [] )
+ [ Str "Images" ]
+ , Para
+ [ Str "From"
+ , Space
+ , Quoted DoubleQuote
+ [ Str "Voyage", Space, Str "dans", Space, Str "la", Space, Str "Lune" ]
+ , Space
+ , Str "by"
+ , Space
+ , Str "Georges"
+ , Space
+ , Str "Melies"
+ , Space
+ , Str "(1902):"
+ ]
+ , Para
+ [ Image
+ ( "", [], [] )
+ [ Str "lalune" ]
+ ( "lalune.jpg", "fig:Voyage dans la Lune" )
+ ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "movie"
+ , Space
+ , Image
+ ( "", [], [] )
+ [ Str "movie" ]
+ ( "movie.jpg", "" )
+ , Space
+ , Str "icon."
+ ]
+ , HorizontalRule
+ , Header 1
+ ( "footnotes", [], [] )
+ [ Str "Footnotes" ]
+ , Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "a"
+ , Space
+ , Str "footnote"
+ , Space
+ , Str "reference,"
+ , Note
+ [ Para
+ [ Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "the"
+ , Space
+ , Str "footnote."
+ , Space
+ , Str "It"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "anywhere"
+ , Space
+ , Str "after"
+ , Space
+ , Str "the"
+ , Space
+ , Str "footnote"
+ , SoftBreak
+ , Str "reference."
+ , Space
+ , Str "It"
+ , Space
+ , Str "need"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "placed"
+ , Space
+ , Str "at"
+ , Space
+ , Str "the"
+ , Space
+ , Str "end"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "document."
+ ]
+ ]
+ , Space
+ , Str "and"
+ , Space
+ , Str "another."
+ , Note
+ [ Para
+ [ Str "Here\8217s"
+ , Space
+ , Str "the"
+ , Space
+ , Str "long"
+ , Space
+ , Str "note."
+ , Space
+ , Str "This"
+ , Space
+ , Str "one"
+ , Space
+ , Str "contains"
+ , Space
+ , Str "multiple"
+ , SoftBreak
+ , Str "blocks."
+ ]
+ , Para
+ [ Str "Subsequent"
+ , Space
+ , Str "blocks"
+ , Space
+ , Str "are"
+ , Space
+ , Str "indented"
+ , Space
+ , Str "to"
+ , Space
+ , Str "show"
+ , Space
+ , Str "that"
+ , Space
+ , Str "they"
+ , Space
+ , Str "belong"
+ , Space
+ , Str "to"
+ , Space
+ , Str "the"
+ , SoftBreak
+ , Str "footnote"
+ , Space
+ , Str "(as"
+ , Space
+ , Str "with"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items)."
+ ]
+ , CodeBlock
+ ( "", [], [] ) " { }"
+ , Para
+ [ Str "If"
+ , Space
+ , Str "you"
+ , Space
+ , Str "want,"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "indent"
+ , Space
+ , Str "every"
+ , Space
+ , Str "line,"
+ , Space
+ , Str "but"
+ , Space
+ , Str "you"
+ , Space
+ , Str "can"
+ , Space
+ , Str "also"
+ , Space
+ , Str "be"
+ , SoftBreak
+ , Str "lazy"
+ , Space
+ , Str "and"
+ , Space
+ , Str "just"
+ , Space
+ , Str "indent"
+ , Space
+ , Str "the"
+ , Space
+ , Str "first"
+ , Space
+ , Str "line"
+ , Space
+ , Str "of"
+ , Space
+ , Str "each"
+ , Space
+ , Str "block."
+ ]
+ ]
+ , SoftBreak
+ , Str "This"
+ , Space
+ , Str "should"
+ , Space
+ , Emph
+ [ Str "not" ]
+ , Space
+ , Str "be"
+ , Space
+ , Str "a"
+ , Space
+ , Str "footnote"
+ , Space
+ , Str "reference,"
+ , Space
+ , Str "because"
+ , Space
+ , Str "it"
+ , SoftBreak
+ , Str "contains"
+ , Space
+ , Str "a"
+ , Space
+ , Str "space.[^my"
+ , Space
+ , Str "note]"
+ , Space
+ , Str "Here"
+ , Space
+ , Str "is"
+ , Space
+ , Str "an"
+ , Space
+ , Str "inline"
+ , Space
+ , Str "note."
+ , Note
+ [ Para
+ [ Str "This"
+ , SoftBreak
+ , Str "is"
+ , Space
+ , Emph
+ [ Str "easier" ]
+ , Space
+ , Str "to"
+ , Space
+ , Str "type."
+ , Space
+ , Str "Inline"
+ , Space
+ , Str "notes"
+ , Space
+ , Str "may"
+ , Space
+ , Str "contain"
+ , SoftBreak
+ , Link
+ ( "", [], [] )
+ [ Str "links" ]
+ ( "http://google.com", "" )
+ , Space
+ , Str "and"
+ , Space
+ , Code
+ ( "", [], [] ) "]"
+ , Space
+ , Str "verbatim"
+ , Space
+ , Str "characters,"
+ , SoftBreak
+ , Str "as"
+ , Space
+ , Str "well"
+ , Space
+ , Str "as"
+ , Space
+ , Str "[bracketed"
+ , Space
+ , Str "text]."
+ ]
+ ]
+ ]
+ , BlockQuote
+ [ Para
+ [ Str "Notes"
+ , Space
+ , Str "can"
+ , Space
+ , Str "go"
+ , Space
+ , Str "in"
+ , Space
+ , Str "quotes."
+ , Note
+ [ Para [ Str "In", Space, Str "quote." ] ]
+ ]
+ ]
+ , OrderedList
+ ( 1, Decimal, Period )
+ [
+ [ Plain
+ [ Str "And"
+ , Space
+ , Str "in"
+ , Space
+ , Str "list"
+ , Space
+ , Str "items."
+ , Note
+ [ Para [ Str "In", Space, Str "list." ] ]
+ ]
+ ]
+ ]
+ , Para
+ [ Str "This"
+ , Space
+ , Str "paragraph"
+ , Space
+ , Str "should"
+ , Space
+ , Str "not"
+ , Space
+ , Str "be"
+ , Space
+ , Str "part"
+ , Space
+ , Str "of"
+ , Space
+ , Str "the"
+ , Space
+ , Str "note,"
+ , Space
+ , Str "as"
+ , Space
+ , Str "it"
+ , Space
+ , Str "is"
+ , Space
+ , Str "not"
+ , Space
+ , Str "indented."
+ ]
+ ]
diff --git a/test/writer.opendocument b/test/writer.opendocument
index fa524eb26..9e6ef336e 100644
--- a/test/writer.opendocument
+++ b/test/writer.opendocument
@@ -1207,9 +1207,9 @@ link Paragraphs
Here’s a regular
paragraph.
-In Markdown 1.0.0 and earlier. Version
-8. This line turns into a list item. Because a hard-wrapped line in the middle
-of a paragraph looked like a list item.
+In Markdown 1.0.0 and earlier. Version 8.
+This line turns into a list item. Because a hard-wrapped line in the middle of a
+paragraph looked like a list item.
Here’s one with a bullet. *
criminey.
There should be a hard line
@@ -1218,8 +1218,7 @@ break here.
Block
Quotes
E-mail style:
-This is a block quote. It is pretty
-short.
+This is a block quote. It is pretty short.
Code in a block quote:
sub status {
print "working";
@@ -1236,8 +1235,8 @@ short.
Nested block quotes:
nested
nested
-This should not be a block quote:
-2 > 1.
+This should not be a block quote: 2
+> 1.
And a following paragraph.
Code
@@ -1464,12 +1463,12 @@ and spaces
this is a list item indented with
spaces
- this is an example list item indented
- with tabs
+ this is an example list item indented with
+ tabs
- this is an example list item indented
- with spaces
+ this is an example list item indented with
+ spaces
@@ -1485,8 +1484,8 @@ list markers
with a continuation
- sublist with roman numerals, starting
- with 4
+ sublist with roman numerals, starting with
+ 4
more items
@@ -1537,8 +1536,7 @@ list markers
-Should not be a list
-item:
+Should not be a list item:
M.A. 2007
B. Williams
@@ -1573,8 +1571,8 @@ fruit
italics:
apple
red
-fruit contains
-seeds, crisp, pleasant to taste
+fruitcontains seeds,
+crisp, pleasant to taste
orange
orange
fruit { orange code block } orange
@@ -1613,15 +1611,12 @@ fruit
HTML
Blocks
-Simple block on one
-line:
+Simple block on one line:
foo
-And nested without
-indentation:
+And nested without indentation:
foo
bar
-Interpreted markdown in a
-table:
+Interpreted markdown in a table:
This is
emphasized
And this is
@@ -1689,13 +1684,13 @@ subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
Smart
quotes, ellipses,
dashes
-“Hello,” said the spider.
-“‘Shelob’ is my name.”
+“Hello,” said the spider. “‘Shelob’
+is my name.”
‘A’, ‘B’, and ‘C’ are letters.
‘Oak,’ ‘elm,’ and ‘beech’ are names of
trees. So is ‘pine.’
-‘He said, “I want to go.”’ Were you
-alive in the 70’s?
+‘He said, “I want to go.”’ Were you alive
+in the 70’s?
Here is some quoted
‘code ’ and a
“quoted
@@ -1743,8 +1738,8 @@ five.
$22,000 is a
- lot of money. So is $34,000.
- (It worked if “lot” is emphasized.)
+ lot of money. So is $34,000. (It
+ worked if “lot” is emphasized.)
Shoes ($20) and socks ($5).
@@ -1778,8 +1773,8 @@ Characters
copyright: ©
-AT&T has an ampersand in
-their name.
+AT&T has an ampersand in their
+name.
AT&T is another way to write
it.
This & that.
@@ -1888,25 +1883,23 @@ icon.
Footnotes
Here is a footnote
reference,1 Here
-is the footnote. It can go anywhere after the footnote reference. It need not
-be placed at the end of the document.
-and
+is the footnote. It can go anywhere after the footnote reference. It need not be
+placed at the end of the document. and
another.2 Here’s
the long note. This one contains multiple
blocks. Subsequent blocks are
indented to show that they belong to the footnote (as with list
items). { <code> }If
you want, you can indent every line, but you can also be lazy and just indent
-the first line of each block. This
-should not be a footnote
-reference, because it contains a space.[^my note] Here is an inline
+the first line of each block. This should
+not be a footnote reference, because
+it contains a space.[^my note] Here is an inline
note.3 This
-is easier to type. Inline notes
-may contain
+is easier to type. Inline notes may
+contain
links
-and ] verbatim
-characters, as well as [bracketed
-text].
+and ] verbatim characters,
+as well as [bracketed text].
Notes can go in
quotes.4 In
quote.
diff --git a/test/writer.org b/test/writer.org
index 38ec35a3e..604aca21d 100644
--- a/test/writer.org
+++ b/test/writer.org
@@ -566,8 +566,8 @@ Superscripts: a^{bc}d a^{/hello/} a^{hello there}.
Subscripts: H_{2}O, H_{23}O, H_{many of them}O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
--------------
@@ -739,8 +739,7 @@ Foo [[/url/][biz]].
:PROPERTIES:
:CUSTOM_ID: with-ampersands
:END:
-Here's a [[http://example.com/?foo=1&bar=2][link with an ampersand in the
-URL]].
+Here's a [[http://example.com/?foo=1&bar=2][link with an ampersand in the URL]].
Here's a link with an amersand in the link text: [[http://att.com/][AT&T]].
@@ -801,8 +800,8 @@ note.[fn:3]
This paragraph should not be part of the note, as it is not indented.
-[fn:1] Here is the footnote. It can go anywhere after the footnote reference.
- It need not be placed at the end of the document.
+[fn:1] Here is the footnote. It can go anywhere after the footnote reference. It
+ need not be placed at the end of the document.
[fn:2] Here's the long note. This one contains multiple blocks.
@@ -813,8 +812,8 @@ This paragraph should not be part of the note, as it is not indented.
{ }
#+end_example
- If you want, you can indent every line, but you can also be lazy and
- just indent the first line of each block.
+ If you want, you can indent every line, but you can also be lazy and just
+ indent the first line of each block.
[fn:3] This is /easier/ to type. Inline notes may contain
[[http://google.com][links]] and =]= verbatim characters, as well as
diff --git a/test/writer.plain b/test/writer.plain
index b8767957f..b9425f9c0 100644
--- a/test/writer.plain
+++ b/test/writer.plain
@@ -5,7 +5,7 @@ July 17, 2006
This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
markdown test suite.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Headers
@@ -29,7 +29,7 @@ Level 2
with no blank line
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Paragraphs
@@ -44,7 +44,7 @@ Here’s one with a bullet. * criminey.
There should be a hard line break
here.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Block Quotes
@@ -73,7 +73,7 @@ This should not be a block quote: 2 > 1.
And a following paragraph.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Code Blocks
@@ -93,7 +93,7 @@ And:
These should not be escaped: \$ \\ \> \[ \{
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Lists
@@ -250,7 +250,7 @@ M.A. 2007
B. Williams
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Definition Lists
@@ -395,7 +395,7 @@ Code:
Hr’s:
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Inline Markup
@@ -421,10 +421,10 @@ Superscripts: a^(bc)d a^(hello) a^(hello there).
Subscripts: H₂O, H₂₃O, H_(many of them)O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Smart quotes, ellipses, dashes
@@ -444,7 +444,7 @@ Dashes between numbers: 5–7, 255–66, 1987–1999.
Ellipses…and…and….
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
LaTeX
@@ -468,7 +468,7 @@ These shouldn’t be math:
Here’s a LaTeX table:
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Special Characters
@@ -522,7 +522,7 @@ Plus: +
Minus: -
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Links
@@ -594,7 +594,7 @@ Auto-links should not occur here:
or here:
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Images
@@ -604,7 +604,7 @@ From “Voyage dans la Lune” by Georges Melies (1902):
Here is a movie [movie] icon.
-------------------------------------------------------------------------------
+--------------------------------------------------------------------------------
Footnotes
@@ -622,13 +622,13 @@ need not be placed at the end of the document.
[2] Here’s the long note. This one contains multiple blocks.
-Subsequent blocks are indented to show that they belong to the footnote (as
-with list items).
+Subsequent blocks are indented to show that they belong to the footnote (as with
+list items).
{ }
-If you want, you can indent every line, but you can also be lazy and just
-indent the first line of each block.
+If you want, you can indent every line, but you can also be lazy and just indent
+the first line of each block.
[3] This is easier to type. Inline notes may contain links and ] verbatim
characters, as well as [bracketed text].
diff --git a/test/writer.rst b/test/writer.rst
index 8d68f7ed5..0baaa670c 100644
--- a/test/writer.rst
+++ b/test/writer.rst
@@ -580,8 +580,8 @@ Superscripts: a\ :sup:`bc`\ d a\ :sup:`hello` a\ :sup:`hello there`.
Subscripts: H\ :sub:`2`\ O, H\ :sub:`23`\ O, H\ :sub:`many of them`\ O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
--------------
diff --git a/test/writer.tei b/test/writer.tei
index 587a6fcca..1ded37956 100644
--- a/test/writer.tei
+++ b/test/writer.tei
@@ -54,9 +54,9 @@ Gruber’s markdown test suite.
Paragraphs
Here’s a regular paragraph.
-
In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
- item. Because a hard-wrapped line in the middle of a paragraph looked like a
- list item.
+
In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
+ Because a hard-wrapped line in the middle of a paragraph looked like a list
+ item.
Here’s one with a bullet. * criminey.
There should be a hard line break
here.
@@ -630,10 +630,10 @@ These should not be escaped: \$ \\ \> \[ \{
Hello,
said the spider. Shelob
is my
name.
A
, B
, and C
are letters.
-
Oak,
elm,
and beech
are
- names of trees. So is pine.
-
He said, I want to go.
Were you alive in
- the 70’s?
+
Oak,
elm,
and beech
are names
+ of trees. So is pine.
+
He said, I want to go.
Were you alive in the
+ 70’s?
Here is some quoted code
and a
[quoted
link](http://example.com/?foo=1&bar=2)
.
@@ -821,8 +821,8 @@ or here: <http://example.com/>
Footnotes
Here is a footnote reference,
- Here is the footnote. It can go anywhere after the footnote reference.
- It need not be placed at the end of the document.
+ Here is the footnote. It can go anywhere after the footnote reference. It
+ need not be placed at the end of the document.
and another.
Here’s the long note. This one contains multiple blocks.
Subsequent blocks are indented to show that they belong to the footnote
@@ -830,8 +830,8 @@ or here: <http://example.com/>
{ <code> }
-
If you want, you can indent every line, but you can also be lazy and
- just indent the first line of each block.
+ If you want, you can indent every line, but you can also be lazy and just
+ indent the first line of each block.
This should not be a footnote
reference, because it contains a space.[^my note] Here is an inline
note.
diff --git a/test/writer.texinfo b/test/writer.texinfo
index 53a25d515..ca80f3245 100644
--- a/test/writer.texinfo
+++ b/test/writer.texinfo
@@ -732,8 +732,8 @@ Superscripts: a@sup{bc}d a@sup{@emph{hello}} a@sup{hello@ there}.
Subscripts: H@sub{2}O, H@sub{23}O, H@sub{many@ of@ them}O.
-These should not be superscripts or subscripts, because of the unescaped
-spaces: a^b c^d, a~b c~d.
+These should not be superscripts or subscripts, because of the unescaped spaces:
+a^b c^d, a~b c~d.
@iftex
@bigskip@hrule@bigskip
@@ -1014,24 +1014,22 @@ Here is a movie @image{movie,,,movie,jpg} icon.
@node Footnotes
@chapter Footnotes
@anchor{#footnotes}
-Here is a footnote reference,@footnote{Here is the footnote. It can go
-anywhere after the footnote reference. It need not be placed at the end of the
-document.} and another.@footnote{Here's the long note. This one contains
-multiple blocks.
+Here is a footnote reference,@footnote{Here is the footnote. It can go anywhere
+after the footnote reference. It need not be placed at the end of the document.}
+and another.@footnote{Here's the long note. This one contains multiple blocks.
-Subsequent blocks are indented to show that they belong to the footnote (as
-with list items).
+Subsequent blocks are indented to show that they belong to the footnote (as with
+list items).
@verbatim
{ }
@end verbatim
-If you want, you can indent every line, but you can also be lazy and just
-indent the first line of each block.} This should @emph{not} be a footnote
-reference, because it contains a space.[^my note] Here is an inline
-note.@footnote{This is @emph{easier} to type. Inline notes may contain
-@uref{http://google.com,links} and @code{]} verbatim characters, as well as
-[bracketed text].}
+If you want, you can indent every line, but you can also be lazy and just indent
+the first line of each block.} This should @emph{not} be a footnote reference,
+because it contains a space.[^my note] Here is an inline note.@footnote{This is
+@emph{easier} to type. Inline notes may contain @uref{http://google.com,links}
+and @code{]} verbatim characters, as well as [bracketed text].}
@quotation
Notes can go in quotes.@footnote{In quote.}
--
cgit v1.2.3