parent
791043772b
commit
5c0b3743be
2 changed files with 41 additions and 4 deletions
|
@ -300,10 +300,11 @@ blockToRST (Table caption aligns widths headers rows) = do
|
|||
else gridTable opts blocksToDoc (all null headers)
|
||||
(map (const AlignDefault) aligns) widths
|
||||
headers rows
|
||||
return $ if null caption
|
||||
then tbl $$ blankline
|
||||
else (".. table:: " <> caption') $$ blankline $$ nest 3 tbl $$
|
||||
blankline
|
||||
return $ blankline $$
|
||||
(if null caption
|
||||
then tbl
|
||||
else (".. table:: " <> caption') $$ blankline $$ nest 3 tbl) $$
|
||||
blankline
|
||||
blockToRST (BulletList items) = do
|
||||
contents <- mapM bulletListItemToRST items
|
||||
-- ensure that sublists have preceding blank line
|
||||
|
|
36
test/command/5898.md
Normal file
36
test/command/5898.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
```
|
||||
% pandoc -f html -t rst
|
||||
<html>
|
||||
<body>
|
||||
<ul>
|
||||
<li>A list of stuff with a table inside
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>First</th><th>Second</th><th>Third</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>First</td>
|
||||
<td>Second</td>
|
||||
<td>Third</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
<li>Another list item</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
^D
|
||||
- A list of stuff with a table inside
|
||||
|
||||
===== ====== =====
|
||||
First Second Third
|
||||
===== ====== =====
|
||||
First Second Third
|
||||
===== ====== =====
|
||||
|
||||
- Another list item
|
||||
```
|
Loading…
Reference in a new issue