aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-09-23 09:25:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-09-23 09:25:37 -0700
commitaa89f6be186e2a442920860e5bf53149aabdac55 (patch)
tree4c295896da3c947260c176bc7f4fd3b67bbd03dd /test/command
parentf0a6eb913d7ace9de720539efb8984ea00ac82db (diff)
downloadpandoc-aa89f6be186e2a442920860e5bf53149aabdac55.tar.gz
HTML reader: handle empty tbody element in table.
Closes #7589.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/7589.md73
1 files changed, 73 insertions, 0 deletions
diff --git a/test/command/7589.md b/test/command/7589.md
new file mode 100644
index 000000000..f9e8fb14f
--- /dev/null
+++ b/test/command/7589.md
@@ -0,0 +1,73 @@
+```
+% pandoc -f html -t native
+<table>
+ <thead>
+ <tr>
+ <th>experience</th>
+ <th>expertise</th>
+ <th>paradigms</th>
+ <th>haskell</th>
+ <th>name</th>
+ <th>image</th>
+ </tr>
+ </thead>
+ <tbody></tbody>
+</table>
+^D
+[ Table
+ ( "", [], [] )
+ ( Caption Nothing [] )
+ [
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ,
+ ( AlignDefault, ColWidthDefault )
+ ]
+ ( TableHead
+ ( "", [], [] )
+ [ Row
+ ( "", [], [] )
+ [ Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "experience" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "expertise" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "paradigms" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "haskell" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "name" ] ]
+ , Cell
+ ( "", [], [] ) AlignDefault
+ ( RowSpan 1 )
+ ( ColSpan 1 )
+ [ Plain [ Str "image" ] ]
+ ]
+ ]
+ )
+ [ TableBody ( "", [], [] ) ( RowHeadColumns 0 ) [] [] ]
+ ( TableFoot ( "", [], [] ) [] )
+]
+```