aboutsummaryrefslogtreecommitdiff
path: root/tests/markdown-reader-more.native
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-12 11:10:48 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-12 11:10:48 -0700
commitf97ec6db2c66c25e0a62500939ce1a848a7587b0 (patch)
tree757aee33c969280c07f95e5e38147949fa20c703 /tests/markdown-reader-more.native
parentab75e1d3bdf830875b02602055cbff29ba63e1fb (diff)
downloadpandoc-f97ec6db2c66c25e0a62500939ce1a848a7587b0.tar.gz
Markdown reader: Improved parsing of indented code in list items.
Indented code at the beginning of a list item must be indented eight spaces from the margin (or from the edge of the container), or four spaces past the list marker, whichever is farther. Some examples in `tests/markdown-reader-more.txt`.
Diffstat (limited to 'tests/markdown-reader-more.native')
-rw-r--r--tests/markdown-reader-more.native9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native
index b4713bc93..3e171e085 100644
--- a/tests/markdown-reader-more.native
+++ b/tests/markdown-reader-more.native
@@ -22,6 +22,15 @@
,BulletList
[[Plain [Str "one",Space,RawInline (Format "html") "<!--\n- two\n-->"]]
,[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"]