How to add footnotes for the markdown table

Hello, is it possible to add footnotes for a Markdown table, which appears just below the table rather than the bottom of the page?

Here is a markdown table:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

Your kind guidance would be much appreciated!

Are you looking for a caption ?
https://pandoc.org/MANUAL.html#extension-pipe_tables

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

  : About the table

But Pandoc will put that above I think. See Pandoc Manual for supported Markdown syntax
https://pandoc.org/MANUAL.html#tables

Otherwise, you can use R packages to format table to your liking. Some of them have footnote for table support

With those tools, you can format your table as you wish !

2 Likes

Yes I am not sure ca footnotes are supported in markdown syntax. You would have to take advantage of RMD and use R to create the table.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

Thank you so much @cderv.

Yes, the caption is needed. Meanwhile, how about the footnote that specifically explains some content in the table and usually appears just below the table? After searching a while, I'm not sure whether it could be achieved in the Markdown table.

Thanks for the package recommendation. I'm drafting manuscripts using Rmarkdown and need to generate word documents to collaborate with my supervisor. Thus, the flextable package might be my focus.

Get it. Thanks @cderv!

Please post a solution if you find one