showdown
showdown copied to clipboard
Footnote Above Table Causes Table Not to Render
Summary
Whenever there is a footnote used above a table it will not be rendered correctly. As a workaround a comment can be placed before the actual table.
Example
Footnote [^1]
[^1]: https://example.com
| C1 | C2 |
| --- | --- |
| k1 | v2 |
<p>Footnote <a href="https://example.com">^1</a></p>
<p>C1 | C2 | --- | --- |
| k1 | v2 |</p>
Workaround
Footnote [^1]
[^1]: https://example.com
<!-- comment -->
| C1 | C2 |
| --- | --- |
| k1 | v2 |
<p>Footnote <a href="https://example.com">^1</a></p>
<!-- comment -->
<table>
<thead>
<tr>
<th>C1</th>
<th>C2</th>
</tr>
</thead>
<tbody>
<tr>
<td>k1</td>
<td>v2</td>
</tr>
</tbody>
</table>