Skip to content

Commit

Permalink
try to generate \footnote{}
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui authored Oct 11, 2024
1 parent be62b2b commit 170be64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cmark/latex.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,14 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
break;

case CMARK_NODE_FOOTNOTE_DEFINITION:
break;
case CMARK_NODE_FOOTNOTE_REFERENCE:
// TODO
if (entering) {
LIT("\\footnote{");
// How can I get the footnote content here?
} else {
LIT("}");
}
break;

default:
Expand Down

0 comments on commit 170be64

Please sign in to comment.