Skip to content

Commit

Permalink
Merge pull request vmg#95 from uranusjr/unique-footnote
Browse files Browse the repository at this point in the history
Only render first footnote reflink occurrence to avoid duplicate HTML IDs
  • Loading branch information
Devin Torres committed Aug 7, 2014
2 parents 0610117 + 361e514 commit e05c607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,11 +1022,11 @@ char_link(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_t offse
goto cleanup;
fr->is_used = 1;
fr->num = doc->footnotes_used.count;
}

/* render */
if (fr && doc->md.footnote_ref)
/* render */
if (doc->md.footnote_ref)
ret = doc->md.footnote_ref(ob, fr->num, doc->md.opaque);
}

goto cleanup;
}
Expand Down

0 comments on commit e05c607

Please sign in to comment.