Skip to content

Double captions in RST->MD table. #10091

Answered by jgm
levitvas asked this question in Q&A
Aug 15, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Two separate issues here:

markdown writer: doubled caption

In the markdown writer, we fall back to HTML when tables can't be represented in native markdown. Now, I'm not sure why that is happening here, because this table can be represented in native markdown, and when I run the latest version of pandoc -f rst -t markdown, I get

  Function           1         2   three
  ------------------ --------- --- -------
  test1 tes2 test3   yes yes   2   yes

  : Test Table

Maybe you're using an older version? However, I can reproduce the doubled caption if I used a more complex table. E.g.

% pandoc -f rst -t markdown-grid_tables
.. table:: My table

   +------------------------+------------+----…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jgm
Comment options

jgm Aug 16, 2024
Maintainer

@levitvas
Comment options

Answer selected by levitvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants