2016-04-10 18:13:53 +02:00
|
|
|
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"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,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"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "foo"] ("/url",""),Space,Str "and",Space,Link ("",[],[]) [Str "bar"] ("/url","title")]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("raw-context-environments",[],[]) [Str "Raw",Space,Str "ConTeXt",Space,Str "environments"]
|
2018-08-15 19:25:12 +02:00
|
|
|
,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]"
|
2016-10-31 22:04:22 +01:00
|
|
|
,Header 2 ("raw-latex-environments",[],[]) [Str "Raw",Space,Str "LaTeX",Space,Str "environments"]
|
2018-08-15 19:25:12 +02:00
|
|
|
,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}"
|
2014-08-14 19:56:41 +02:00
|
|
|
,Header 2 ("urls-with-spaces-and-punctuation",[],[]) [Str "URLs",Space,Str "with",Space,Str "spaces",Space,Str "and",Space,Str "punctuation"]
|
2015-12-12 00:58:11 +01:00
|
|
|
,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")]
|
2015-07-26 20:09:10 +02:00
|
|
|
,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","")]
|
2012-10-30 06:45:52 +01:00
|
|
|
,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"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,HorizontalRule
|
|
|
|
,HorizontalRule
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("raw-html-before-header",[],[]) [Str "Raw",Space,Str "HTML",Space,Str "before",Space,Str "header"]
|
2013-08-15 08:24:45 +02:00
|
|
|
,Para [RawInline (Format "html") "<a>",RawInline (Format "html") "</a>"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 3 ("my-header",[],[]) [Str "my",Space,Str "header"]
|
|
|
|
,Header 2 ("in-math",[],[]) [Str "$",Space,Str "in",Space,Str "math"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Para [Math InlineMath "\\$2 + \\$3"]
|
2014-10-20 01:42:56 +02:00
|
|
|
,Para [Math InlineMath "x = \\text{the $n$th root of $y$}"]
|
2014-05-27 20:59:28 +02:00
|
|
|
,Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "math:"]
|
|
|
|
,Para [Str "$PATH",Space,Str "90",Space,Str "$PATH"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("commented-out-list-item",[],[]) [Str "Commented-out",Space,Str "list",Space,Str "item"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
2015-12-12 00:58:11 +01:00
|
|
|
[[Plain [Str "one",SoftBreak,RawInline (Format "html") "<!--\n- two\n-->"]]
|
2011-01-21 07:36:40 +01:00
|
|
|
,[Plain [Str "three"]]]
|
2014-08-12 20:10:48 +02:00
|
|
|
,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
|
Markdown reader: use CommonMark rules for list item nesting.
Closes #3511.
Previously pandoc used the four-space rule: continuation paragraphs,
sublists, and other block level content had to be indented 4
spaces. Now the indentation required is determined by the
first line of the list item: to be included in the list item,
blocks must be indented to the level of the first non-space
content after the list marker. Exception: if are 5 or more spaces
after the list marker, then the content is interpreted as an
indented code block, and continuation paragraphs must be indented
two spaces beyond the end of the list marker. See the CommonMark
spec for more details and examples.
Documents that adhere to the four-space rule should, in most cases,
be parsed the same way by the new rules. Here are some examples
of texts that will be parsed differently:
- a
- b
will be parsed as a list item with a sublist; under the four-space
rule, it would be a list with two items.
- a
code
Here we have an indented code block under the list item, even though it
is only indented six spaces from the margin, because it is four spaces
past the point where a continuation paragraph could begin. With the
four-space rule, this would be a regular paragraph rather than a code
block.
- a
code
Here the code block will start with two spaces, whereas under
the four-space rule, it would start with `code`. With the four-space
rule, indented code under a list item always must be indented eight
spaces from the margin, while the new rules require only that it
be indented four spaces from the beginning of the first non-space
text after the list marker (here, `a`).
This change was motivated by a slew of bug reports from people
who expected lists to work differently (#3125, #2367, #2575, #2210,
#1990, #1137, #744, #172, #137, #128) and by the growing prevalance
of CommonMark (now used by GitHub, for example).
Users who want to use the old rules can select the `four_space_rule`
extension.
* Added `four_space_rule` extension.
* Added `Ext_four_space_rule` to `Extensions`.
* `Parsing` now exports `gobbleAtMostSpaces`, and the type
of `gobbleSpaces` has been changed so that a `ReaderOptions`
parameter is not needed.
2017-08-19 19:56:15 +02:00
|
|
|
[[CodeBlock ("",[],[]) "code\ncode"
|
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[CodeBlock ("",[],[]) "code\ncode"]
|
|
|
|
,[CodeBlock ("",[],[]) "code\ncode"]]
|
|
|
|
,BulletList
|
|
|
|
[[CodeBlock ("",[],[]) "code\ncode"]
|
|
|
|
,[Plain [Str "no",Space,Str "code"]]]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("backslash-newline",[],[]) [Str "Backslash",Space,Str "newline"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Para [Str "hi",LineBreak,Str "there"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("code-spans",[],[]) [Str "Code",Space,Str "spans"]
|
2011-01-27 05:44:25 +01:00
|
|
|
,Para [Code ("",[],[]) "hi\\"]
|
|
|
|
,Para [Code ("",[],[]) "hi there"]
|
|
|
|
,Para [Code ("",[],[]) "hi````there"]
|
Major rewrite of markdown reader.
* Use Builder's Inlines/Blocks instead of lists.
* Return values in the reader monad, which are then
run (at the end of parsing) against the final
parser state. This allows links, notes, and
example numbers to be resolved without a second
parser pass.
* An effect of using Builder is that everything is
normalized automatically.
* New exports from Text.Pandoc.Parsing:
widthsFromIndices, NoteTable', KeyTable', Key', toKey',
withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart,
doubleQuoteEnd, ellipses, apostrophe, dash
* Updated opendocument tests.
* Don't derive Show for ParserState.
* Benchmarks: markdown reader takes 82% of the time it took before.
Markdown writer takes 92% of the time (here the speedup is probably
due to the fact that everything is normalized by default).
2012-07-28 06:04:02 +02:00
|
|
|
,Para [Str "`hi"]
|
|
|
|
,Para [Str "there`"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("multilingual-urls",[],[]) [Str "Multilingual",Space,Str "URLs"]
|
2018-09-19 23:49:46 +02:00
|
|
|
,Para [Link ("",["uri"],[]) [Str "http://\27979.com?\27979=\27979"] ("http://\27979.com?\27979=\27979","")]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "foo"] ("/bar/\27979?x=\27979","title")]
|
2018-09-19 23:49:46 +02:00
|
|
|
,Para [Link ("",["email"],[]) [Str "\27979@foo.\27979.baz"] ("mailto:\27979@foo.\27979.baz","")]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("numbered-examples",[],[]) [Str "Numbered",Space,Str "examples"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Example,TwoParens)
|
Major rewrite of markdown reader.
* Use Builder's Inlines/Blocks instead of lists.
* Return values in the reader monad, which are then
run (at the end of parsing) against the final
parser state. This allows links, notes, and
example numbers to be resolved without a second
parser pass.
* An effect of using Builder is that everything is
normalized automatically.
* New exports from Text.Pandoc.Parsing:
widthsFromIndices, NoteTable', KeyTable', Key', toKey',
withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart,
doubleQuoteEnd, ellipses, apostrophe, dash
* Updated opendocument tests.
* Don't derive Show for ParserState.
* Benchmarks: markdown reader takes 82% of the time it took before.
Markdown writer takes 92% of the time (here the speedup is probably
due to the fact that everything is normalized by default).
2012-07-28 06:04:02 +02:00
|
|
|
[[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)."]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (3,Example,TwoParens)
|
Major rewrite of markdown reader.
* Use Builder's Inlines/Blocks instead of lists.
* Return values in the reader monad, which are then
run (at the end of parsing) against the final
parser state. This allows links, notes, and
example numbers to be resolved without a second
parser pass.
* An effect of using Builder is that everything is
normalized automatically.
* New exports from Text.Pandoc.Parsing:
widthsFromIndices, NoteTable', KeyTable', Key', toKey',
withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart,
doubleQuoteEnd, ellipses, apostrophe, dash
* Updated opendocument tests.
* Don't derive Show for ParserState.
* Benchmarks: markdown reader takes 82% of the time it took before.
Markdown writer takes 92% of the time (here the speedup is probably
due to the fact that everything is normalized by default).
2012-07-28 06:04:02 +02:00
|
|
|
[[Plain [Str "Third",Space,Str "example."]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("macros",[],[]) [Str "Macros"]
|
2018-08-15 19:25:12 +02:00
|
|
|
,RawBlock (Format "tex") "\\newcommand{\\tuple}[1]{\\langle #1 \\rangle}"
|
Rewrote LaTeX reader with proper tokenization.
This rewrite is primarily motivated by the need to
get macros working properly. A side benefit is that the
reader is significantly faster (27s -> 19s in one
benchmark, and there is a lot of room for further
optimization).
We now tokenize the input text, then parse the token stream.
Macros modify the token stream, so they should now be effective
in any context, including math. Thus, we no longer need the clunky
macro processing capacities of texmath.
A custom state LaTeXState is used instead of ParserState.
This, plus the tokenization, will require some rewriting
of the exported functions rawLaTeXInline, inlineCommand,
rawLaTeXBlock.
* Added Text.Pandoc.Readers.LaTeX.Types (new exported module).
Exports Macro, Tok, TokType, Line, Column. [API change]
* Text.Pandoc.Parsing: adjusted type of `insertIncludedFile`
so it can be used with token parser.
* Removed old texmath macro stuff from Parsing.
Use Macro from Text.Pandoc.Readers.LaTeX.Types instead.
* Removed texmath macro material from Markdown reader.
* Changed types for Text.Pandoc.Readers.LaTeX's
rawLaTeXInline and rawLaTeXBlock. (Both now return a String,
and they are polymorphic in state.)
* Added orgMacros field to OrgState. [API change]
* Removed readerApplyMacros from ReaderOptions.
Now we just check the `latex_macros` reader extension.
* Allow `\newcommand\foo{blah}` without braces.
Fixes #1390.
Fixes #2118.
Fixes #3236.
Fixes #3779.
Fixes #934.
Fixes #982.
2017-07-01 19:31:43 +02:00
|
|
|
,Para [Math InlineMath "\\langle x,y \\rangle"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("case-insensitive-references",[],[]) [Str "Case-insensitive",Space,Str "references"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "Fum"] ("/fum","")]
|
|
|
|
,Para [Link ("",[],[]) [Str "FUM"] ("/fum","")]
|
|
|
|
,Para [Link ("",[],[]) [Str "bat"] ("/bat","")]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("curly-smart-quotes",[],[]) [Str "Curly",Space,Str "smart",Space,Str "quotes"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Para [Quoted DoubleQuote [Str "Hi"]]
|
2012-01-03 02:04:59 +01:00
|
|
|
,Para [Quoted SingleQuote [Str "Hi"]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("consecutive-lists",[],[]) [Str "Consecutive",Space,Str "lists"]
|
2012-01-03 02:04:59 +01:00
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "one"]]
|
|
|
|
,[Plain [Str "two"]]]
|
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Plain [Str "one"]]
|
|
|
|
,[Plain [Str "two"]]]
|
|
|
|
,OrderedList (1,LowerAlpha,Period)
|
|
|
|
[[Plain [Str "one"]]
|
2013-01-04 05:43:44 +01:00
|
|
|
,[Plain [Str "two"]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,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"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,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."]
|
2013-01-14 03:03:15 +01:00
|
|
|
,Header 2 ("foobar",["baz"],[("key","val")]) [Str "Explicit",Space,Str "header",Space,Str "attributes"]
|
2014-10-23 19:23:13 +02:00
|
|
|
,BlockQuote
|
|
|
|
[Header 2 ("foobar",["baz"],[("key","val")]) [Str "Header",Space,Str "attributes",Space,Str "inside",Space,Str "block",Space,Str "quote"]]
|
2013-01-14 03:03:15 +01:00
|
|
|
,Header 2 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"]
|
2016-10-13 08:46:44 +02:00
|
|
|
,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"]]
|
2013-01-21 18:50:39 +01:00
|
|
|
,Header 2 ("grid-tables",[],[]) [Str "Grid",Space,Str "Tables"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignDefault,ColWidth 0.2638888888888889)
|
|
|
|
,(AlignDefault,ColWidth 0.16666666666666666)
|
|
|
|
,(AlignDefault,ColWidth 0.18055555555555555)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "col",Space,Str "1"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "col",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "col",Space,Str "3"]]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r2",Space,Str "d"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "e"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "f"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2013-01-21 18:50:39 +01:00
|
|
|
,Para [Str "Headless"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignDefault,ColWidth 0.2638888888888889)
|
|
|
|
,(AlignDefault,ColWidth 0.16666666666666666)
|
|
|
|
,(AlignDefault,ColWidth 0.18055555555555555)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r2",Space,Str "d"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "e"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "f"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2016-11-15 16:41:54 +01:00
|
|
|
,Para [Str "With",Space,Str "alignments"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignRight,ColWidth 0.2638888888888889)
|
|
|
|
,(AlignLeft,ColWidth 0.16666666666666666)
|
|
|
|
,(AlignCenter,ColWidth 0.18055555555555555)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "col",Space,Str "1"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "col",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "col",Space,Str "3"]]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r2",Space,Str "d"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "e"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "f"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2016-11-15 16:41:54 +01:00
|
|
|
,Para [Str "Headless",Space,Str "with",Space,Str "alignments"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignRight,ColWidth 0.2638888888888889)
|
|
|
|
,(AlignLeft,ColWidth 0.16666666666666666)
|
|
|
|
,(AlignCenter,ColWidth 0.18055555555555555)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r2",Space,Str "d"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "e"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "f"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2013-01-21 18:50:39 +01:00
|
|
|
,Para [Str "Spaces",Space,Str "at",Space,Str "ends",Space,Str "of",Space,Str "lines"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignDefault,ColWidth 0.2638888888888889)
|
|
|
|
,(AlignDefault,ColWidth 0.16666666666666666)
|
|
|
|
,(AlignDefault,ColWidth 0.18055555555555555)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r1",Space,Str "a",SoftBreak,Str "r1",Space,Str "bis"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "b",SoftBreak,Str "b",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "c",SoftBreak,Str "c",Space,Str "2"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "r2",Space,Str "d"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "e"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "f"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2013-01-21 18:50:39 +01:00
|
|
|
,Para [Str "Multiple",Space,Str "blocks",Space,Str "in",Space,Str "a",Space,Str "cell"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignDefault,ColWidth 0.2638888888888889)
|
|
|
|
,(AlignDefault,ColWidth 0.16666666666666666)
|
|
|
|
,(AlignDefault,ColWidth 0.18055555555555555)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Header 1 ("col-1",[],[]) [Str "col",Space,Str "1"]
|
|
|
|
,Plain [Str "col",Space,Str "1"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Header 1 ("col-2",[],[]) [Str "col",Space,Str "2"]
|
|
|
|
,Plain [Str "col",Space,Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Header 1 ("col-3",[],[]) [Str "col",Space,Str "3"]
|
|
|
|
,Plain [Str "col",Space,Str "3"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Para [Str "r1",Space,Str "a"]
|
|
|
|
,Para [Str "r1",Space,Str "bis"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[BulletList
|
|
|
|
[[Plain [Str "b"]]
|
|
|
|
,[Plain [Str "b",Space,Str "2"]]
|
|
|
|
,[Plain [Str "b",Space,Str "2"]]]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "c",SoftBreak,Str "c",Space,Str "2",SoftBreak,Str "c",Space,Str "2"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2013-01-28 07:13:05 +01:00
|
|
|
,Para [Str "Empty",Space,Str "cells"]
|
2020-03-28 23:22:48 +01:00
|
|
|
,Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignDefault,ColWidth 5.555555555555555e-2)
|
|
|
|
,(AlignDefault,ColWidth 5.555555555555555e-2)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])
|
2013-02-16 07:56:53 +01:00
|
|
|
,Header 2 ("entities-in-links-and-titles",[],[]) [Str "Entities",Space,Str "in",Space,Str "links",Space,Str "and",Space,Str "titles"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "link"] ("/\252rl","\246\246!")]
|
2018-09-19 23:49:46 +02:00
|
|
|
,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","")]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "foobar"] ("/\252rl","\246\246!")]
|
2013-03-14 03:18:20 +01:00
|
|
|
,Header 2 ("parentheses-in-urls",[],[]) [Str "Parentheses",Space,Str "in",Space,Str "URLs"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "link"] ("/hi(there)","")]
|
|
|
|
,Para [Link ("",[],[]) [Str "link"] ("/hithere)","")]
|
|
|
|
,Para [Link ("",[],[]) [Str "linky"] ("hi_(there_(nested))","")]
|
2015-05-13 18:50:16 +02:00
|
|
|
,Header 2 ("backslashes-in-link-references",[],[]) [Str "Backslashes",Space,Str "in",Space,Str "link",Space,Str "references"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "*",RawInline (Format "tex") "\\a"] ("b","")]
|
2013-06-19 18:00:37 +02:00
|
|
|
,Header 2 ("reference-link-fallbacks",[],[]) [Str "Reference",Space,Str "link",Space,Str "fallbacks"]
|
2014-05-03 07:58:47 +02:00
|
|
|
,Para [Str "[",Emph [Str "not",Space,Str "a",Space,Str "link"],Str "]",Space,Str "[",Emph [Str "nope"],Str "]\8230"]
|
2014-12-15 19:50:10 +01:00
|
|
|
,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"]
|
2020-09-09 06:56:12 +02:00
|
|
|
,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 = 3, citationHash = 0}] [Str "[@mapreduce]"],Space,Str "as",Space,Str "its",SoftBreak,Str "most",Space,Str "vocal",Space,Str "proponent."]
|
2014-05-03 07:58:47 +02:00
|
|
|
,Header 2 ("empty-reference-links",[],[]) [Str "Empty",Space,Str "reference",Space,Str "links"]
|
|
|
|
,Para [Str "bar"]
|
2015-07-26 20:09:10 +02:00
|
|
|
,Para [Link ("",[],[]) [Str "foo2"] ("","")]
|
2015-02-25 19:16:05 +01:00
|
|
|
,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
|
2016-09-28 12:33:05 +02:00
|
|
|
[[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","")]]]
|