File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,13 @@ static bool S_put_footnote_backref(cmark_html_renderer *renderer, cmark_strbuf *
63
63
if (renderer -> written_footnote_ix >= renderer -> footnote_ix )
64
64
return false;
65
65
renderer -> written_footnote_ix = renderer -> footnote_ix ;
66
-
66
+ char m [32 ];
67
+ snprintf (m , sizeof (m ), "%d" , renderer -> written_footnote_ix );
68
+
67
69
cmark_strbuf_puts (html , "<a href=\"#fnref-" );
68
70
houdini_escape_href (html , node -> as .literal .data , node -> as .literal .len );
69
71
cmark_strbuf_puts (html , "\" class=\"footnote-backref\" data-footnote-backref aria-label=\"Back to reference " );
70
- houdini_escape_href (html , node -> as . literal . data , node -> as . literal . len );
72
+ cmark_strbuf_puts (html , m );
71
73
cmark_strbuf_puts (html , "\">↩</a>" );
72
74
73
75
if (node -> footnote .def_count > 1 )
You can’t perform that action at this time.
0 commit comments