@@ -68,9 +68,9 @@ static bool S_put_footnote_backref(cmark_html_renderer *renderer, cmark_strbuf *
6868 cmark_strbuf_put (html , node -> as .literal .data , node -> as .literal .len );
6969 cmark_strbuf_puts (html , "\" class=\"footnote-backref\">↩</a>" );
7070
71- if (node -> footnote .count > 1 )
71+ if (node -> footnote .def_count > 1 )
7272 {
73- for (int i = 2 ; i <= node -> footnote .count ; i ++ ) {
73+ for (int i = 2 ; i <= node -> footnote .def_count ; i ++ ) {
7474 char n [32 ];
7575 snprintf (n , sizeof (n ), "%d" , i );
7676
@@ -428,9 +428,9 @@ static int S_render_node(cmark_html_renderer *renderer, cmark_node *node,
428428 cmark_strbuf_puts (html , "\" id=\"fnref:" );
429429 cmark_strbuf_puts (html , node -> user_data );
430430
431- if (node -> footnote .ix > 1 ) {
431+ if (node -> footnote .ref_ix > 1 ) {
432432 char n [32 ];
433- snprintf (n , sizeof (n ), "%d" , node -> footnote .ix );
433+ snprintf (n , sizeof (n ), "%d" , node -> footnote .ref_ix );
434434 cmark_strbuf_puts (html , ":" );
435435 cmark_strbuf_put (html , (const unsigned char * )n , strlen (n ));
436436 }
0 commit comments