diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-08-18 14:36:40 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-08-18 14:36:40 -0700 |
commit | 8d441af3da4709fd48a44e860d5a0cd4d35792af (patch) | |
tree | 2592fa03c4923df4723ac487c89bbe1cb0558607 /tests/writer.native | |
parent | 3117c668a7d245689bfc291d5d9a64cb3178b52c (diff) |
Adjusted writers and tests for change in parsing of div/span.
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs.
Otherwise Div and Span are "transparent" block containers.
Diffstat (limited to 'tests/writer.native')
-rw-r--r-- | tests/writer.native | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/writer.native b/tests/writer.native index d1b14b24e..678d7595f 100644 --- a/tests/writer.native +++ b/tests/writer.native @@ -228,15 +228,9 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa ,[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:"] -,RawBlock (Format "html") "<div>" -,Plain [Str "foo"] -,RawBlock (Format "html") "</div>\n" +,Div ("",[],[]) [Plain [Str "foo"]] ,Para [Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"] -,RawBlock (Format "html") "<div>\n<div>\n<div>" -,Plain [Str "foo"] -,RawBlock (Format "html") "</div>\n</div>\n<div>" -,Plain [Str "bar"] -,RawBlock (Format "html") "</div>\n</div>\n" +,Div ("",[],[]) [Div ("",[],[]) [Div ("",[],[]) [Plain [Str "foo"]]],Div ("",[],[]) [Plain [Str "bar"]]] ,Para [Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"] ,RawBlock (Format "html") "<table>\n<tr>\n<td>" ,Plain [Str "This",Space,Str "is",Space,Emph [Str "emphasized"]] @@ -244,17 +238,13 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa ,Plain [Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"]] ,RawBlock (Format "html") "</td>\n</tr>\n</table>\n\n<script type=\"text/javascript\">document.write('This *should not* be interpreted as markdown');</script>\n" ,Para [Str "Here\8217s",Space,Str "a",Space,Str "simple",Space,Str "block:"] -,RawBlock (Format "html") "<div>\n " -,Plain [Str "foo"] -,RawBlock (Format "html") "</div>\n" +,Div ("",[],[]) [Plain [Str "foo"]] ,Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"] ,CodeBlock ("",[],[]) "<div>\n foo\n</div>" ,Para [Str "As",Space,Str "should",Space,Str "this:"] ,CodeBlock ("",[],[]) "<div>foo</div>" ,Para [Str "Now,",Space,Str "nested:"] -,RawBlock (Format "html") "<div>\n <div>\n <div>\n " -,Plain [Str "foo"] -,RawBlock (Format "html") "</div>\n </div>\n</div>\n" +,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") "<!-- Comment -->\n" ,Para [Str "Multiline:"] |