diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-13 18:03:15 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-13 18:03:15 -0800 |
commit | 9ee9096d07305519dec4c22f0e5f7bbdea2e25f1 (patch) | |
tree | b8ea4ed536ff73e11eb9bd28c686777396cc8a1d /tests | |
parent | 6b5302e063de7fcaddde69c74dac9c3841db1c24 (diff) | |
download | pandoc-9ee9096d07305519dec4c22f0e5f7bbdea2e25f1.tar.gz |
Added tests for markdown line blocks and explicit header attributes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/markdown-reader-more.native | 6 | ||||
-rw-r--r-- | tests/markdown-reader-more.txt | 15 |
2 files changed, 20 insertions, 1 deletions
diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native index d2330b4d9..2a345a977 100644 --- a/tests/markdown-reader-more.native +++ b/tests/markdown-reader-more.native @@ -63,4 +63,8 @@ ,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",""),Str "."] ,Para [Str "Another",Space,Str "link",Space,Str "to",Space,Link [Str "it"] ("#my-header",""),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."]] +,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"] +,Header 2 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"] +,Para [Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be",LineBreak,Str "\160\160\160\160or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160\160\160\160\160due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"] +,Para [Str "Continuation",Space,Str "line",LineBreak,Str "\160\160and",Space,Str "another"]] diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt index 01fcd5952..b8ff74f26 100644 --- a/tests/markdown-reader-more.txt +++ b/tests/markdown-reader-more.txt @@ -147,3 +147,18 @@ Another link to [it][My header]. [my other header]: /foo But this is not a link to [My other header], since the reference is defined. + +## Explicit header attributes {#foobar .baz key="val"} + +## Line blocks + +| But can a bee be said to be +| or not to be an entire bee, +| when half the bee is not a bee, +| due to some ancient injury? +| +| Continuation + line +| and + another + |