Skip to content

Commit

Permalink
set active_char for footnotes
Browse files Browse the repository at this point in the history
This enables handling footnotes and footnote references without also
handling images and links.
  • Loading branch information
blaenk committed Jan 31, 2015
1 parent fd09d02 commit 5cf1ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -2766,7 +2766,7 @@ hoedown_document_new(
if (doc->md.linebreak)
doc->active_char['\n'] = MD_CHAR_LINEBREAK;

if (doc->md.image || doc->md.link)
if (doc->md.image || doc->md.link || doc->md.footnotes || doc->md.footnote_ref)
doc->active_char['['] = MD_CHAR_LINK;

doc->active_char['<'] = MD_CHAR_LANGLE;
Expand Down

0 comments on commit 5cf1ed3

Please sign in to comment.