git.iko.soy/typeable/pandoc
on master help sign in
Added HTML reader tests for empty strong, emph.
commit976f4f2d8fd8b5b984da52dc63d665038c4d023f authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 1 Apr 2014, 10:15 (13 years ago) parent1cadba1
2 files changed+2
tests/html-reader.html+1 tests/html-reader.native+1
tests/html-reader.html+1
@@ -302,6 +302,7 @@ These should not be escaped: \$ \\ \> \[ \{
302302<h1>Inline Markup</h1>
303303<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
304304<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
305+<p>Empty <strong></strong> and <em></em>.
305306<p>An <em><a href="/url">emphasized link</a></em>.</p>
306307<p><strong><em>This is strong and em.</em></strong></p>
307308<p>So is <strong><em>this</em></strong> word.</p>
tests/html-reader.native+1
@@ -186,6 +186,7 @@ Pandoc (Meta {unMeta = fromList [("generator",MetaInlines [Str "pandoc"]),("titl
186186,Header 1 ("",[],[]) [Str "Inline",Space,Str "Markup"]
187187,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 "."]
188188,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 "."]
189+,Para [Str "Empty",Space,Strong [],Space,Str "and",Space,Emph [],Str "."]
189190,Para [Str "An",Space,Emph [Link [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
190191,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
191192,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]