Files
John MacFarlane 1a56865705 Markdown writer: avoid emitting markdown caption if...
...table has fallen back to raw HTML, which will then contain
a `<caption>` tag.

Closes #10094.
2024-08-29 11:15:20 -07:00

754 B

% pandoc -f rst -t markdown_strict
.. table:: Test Table

   ================================== ====
   Functions for tests                1   
   ================================== ====
   a                                  yes 
   b                                      
   c                                      
   d                                  yes
   e                                      
   ================================== ====
^D
<table>
<caption>Test Table</caption>
<thead>
<tr>
<th>Functions for tests</th>
<th>1</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>yes</td>
</tr>
<tr>
<td>b</td>
<td></td>
</tr>
<tr>
<td>c</td>
<td></td>
</tr>
<tr>
<td>d</td>
<td>yes</td>
</tr>
<tr>
<td>e</td>
<td></td>
</tr>
</tbody>
</table>