Skip to content

Does pantable support footnote? #35

Answered by ickc
gepcel asked this question in Q&A
Discussion options

You must be logged in to vote

In addition to the inline footnote you used, you could do it like this:

# First paragraph

Some text first[^note1].

```table
---
caption: |
    Caption of table[^note2]

    [^note2]: Description for table.
markdown: true
---
Col1, Col2
A, B


```
[^note1]: Some description here.

Essentially the entirety of the value of caption will be processed as an individual markdown fragment in terms of function calls.

Another method will be something like,

```table
---
caption: Caption of table[^note2]
markdown: true
---
Col1, Col2
A," B

[^note2]: Description for table."
```

which take advantage of the fact in pantable v0.13+ all the markdown cells are processed in a batch, allowing them to see th…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ickc
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
Converted from issue

This discussion was converted from issue #35 on December 19, 2020 04:27.