Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing a table RST->MD(HTML table) results in double captions #10094

Closed
levitvas opened this issue Aug 16, 2024 · 0 comments
Closed

Parsing a table RST->MD(HTML table) results in double captions #10094

levitvas opened this issue Aug 16, 2024 · 0 comments

Comments

@levitvas
Copy link

When parsing a table from RST and outputing as a regular table (not grid table) results in double captions.
Input table:

.. table:: Test Table

   ================================== ==== =========== =============== ===== === =====
   Functions for tests                1    2Test       3Untested       4Alg  5   6Col
   ================================== ==== =========== =============== ===== === =====
   a                                  yes              yes
   b                                       yes
   c                                                                         yes yes
   d                                  yes
   e                                                   yes             yes
   ================================== ==== =========== =============== ===== === =====

Result:

<table>
<caption>Test Table</caption>
<thead>
<tr>
<th>Functions for tests</th>
<th>1</th>
<th>2Test</th>
<th>3Untested</th>
<th>4Alg</th>
<th>5</th>
<th>6Col</th>
</tr>
</thead>
<tbody>
<tr>
<td><p>a b c d e</p></td>
<td><p>yes</p>
<p>yes</p></td>
<td><p>yes</p></td>
<td><p>yes</p>
<p>yes</p></td>
<td><p>yes</p></td>
<td><p>yes</p></td>
<td><p>yes</p></td>
</tr>
</tbody>
</table>

: Test Table

There is another caption outside of the table, starting with :
Is it possible to disable the : caption, since there already is one with the HTML caption tag, which Markdown supports by default.
Command used to run pandoc in.rst -f rst -t markdown+simple_tables-grid_tables -o out.md

Pandoc version
Latest version 3.3 on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants