forked from commonmark/cmark
-
Notifications
You must be signed in to change notification settings - Fork 194
Open
r-lib/commonmark
#32Description
Currently LaTeX output for footnotes is not implemented:
Lines 447 to 449 in c32ef78
| case CMARK_NODE_FOOTNOTE_DEFINITION: | |
| case CMARK_NODE_FOOTNOTE_REFERENCE: | |
| // TODO |
I don't have much expertise on C but I wonder if the team is interested in getting it implemented. Basically what we need to do is to add the footnote content to \footnote{} in the case of CMARK_NODE_FOOTNOTE_REFERENCE, and output nil in the case of CMARK_NODE_FOOTNOTE_DEFINITION .
case CMARK_NODE_FOOTNOTE_DEFINITION:
break;
case CMARK_NODE_FOOTNOTE_REFERENCE:
if (entering) {
LIT("\\footnote{");
// How can I get the footnote content here?
} else {
LIT("}");
}
break;Thanks!
Metadata
Metadata
Assignees
Labels
No labels