git.iko.soy/typeable/pandoc
on master help sign in
Added failing HTML reader test for table.
9090c54John MacFarlane
tests/html-reader.html+19−1
@@ -431,6 +431,24 @@ An e-mail address: nobody [at] nowhere.net<blockquote>
431<p><em>Trailing space </em>text</p>
431<p><em>Trailing space </em>text</p>
432<p>text<em> Leading spaces</em></p>
432<p>text<em> Leading spaces</em></p>
433<p><em>Trailing spaces </em>text</p>
433<p><em>Trailing spaces </em>text</p>
434−
434+<h1>Tables</h1>
435+<table>
436+ <tr>
437+ <th>X</th>
438+ <th>Y</th>
439+ <th>Z</th>
440+ </tr>
441+ <tr>
442+ <td>1</td>
443+ <td>2</td>
444+ <td>3</td>
445+ </tr>
446+ <tr>
447+ <td>4</td>
448+ <td>5</td>
449+ <td>6</td>
450+ </tr>
451+</table>
452+</body>
435</body>
453</body>
436</html>
454</html>
tests/html-reader.native+12−1
@@ -308,4 +308,15 @@ Pandoc (Meta {unMeta = fromList [("generator",MetaInlines [Str "pandoc"]),("titl
308,Para [Str "text",Space,Emph [Str "Leading",Space,Str "space"]]
308,Para [Str "text",Space,Emph [Str "Leading",Space,Str "space"]]
309,Para [Emph [Str "Trailing",Space,Str "space"],Space,Str "text"]
309,Para [Emph [Str "Trailing",Space,Str "space"],Space,Str "text"]
310,Para [Str "text",Space,Emph [Str "Leading",Space,Str "spaces"]]
310,Para [Str "text",Space,Emph [Str "Leading",Space,Str "spaces"]]
311−,Para [Emph [Str "Trailing",Space,Str "spaces"],Space,Str "text"]]
311+,Para [Emph [Str "Trailing",Space,Str "spaces"],Space,Str "text"]
312+,Header 1 ("",[],[]) [Str "Tables"]
313+,Table [] [AlignLeft,AlignLeft,AlignLeft] [0.3333333333333333,0.3333333333333333,0.3333333333333333]
314+ [[Plain [Str "X"]]
315+ ,[Plain [Str "Y"]]
316+ ,[Plain [Str "Z"]]]
317+ [[[Plain [Str "1"]]
318+ ,[Plain [Str "2"]]
319+ ,[Plain [Str "3"]]]
320+ ,[[Plain [Str "4"]]
321+ ,[Plain [Str "5"]]
322+ ,[Plain [Str "6"]]]]]