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

rst writer with --list-tables=true: table with caption as input is getting two captions in the rst output #10226

Closed
PhilipPartsch opened this issue Sep 27, 2024 · 0 comments
Labels

Comments

@PhilipPartsch
Copy link

Explain the problem.
If a table has a caption in the input, the rst writer with --list-tables=true generates a unecassary additional table, which leads to two captions.

current output:

.. table:: Table 1 — Terminology

   .. list-table:: Table 1 — Terminology

expected output:

.. list-table:: Table 1 — Terminology

Issue in the source code:
The current rst writer is adding always an additional table rst directive if a table caption is been set.
In case we create a list-table we should not do this, as the list-table directive gives the opportunity to set a caption by itself.
See

Pandoc version?
3.4

jgm added a commit that referenced this issue Sep 27, 2024
- Fix alignment of list items corresponding to cells.
- Don't enclose the list table in a `.. table::`; this leads to
  doubled captions.

Closes #10226.
Closes #10227.
Modified test output for #4564.
@jgm jgm closed this as completed in 9a3aed9 Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant