diff options
author | Jorge Israel Peña <jorge.israel.p@gmail.com> | 2015-01-30 20:43:42 -0800 |
---|---|---|
committer | Jorge Israel Peña <jorge.israel.p@gmail.com> | 2015-01-30 20:43:42 -0800 |
commit | 5cf1ed3fe2f85140bfe84c0f72c26281abf9dbc1 (patch) | |
tree | 90e47ca08cdd14a013cebda338f83e6093558a93 | |
parent | fd09d02ca6e0ad6da3f24a832d2fe762268feafd (diff) | |
download | rust-hoedown-5cf1ed3fe2f85140bfe84c0f72c26281abf9dbc1.tar.gz |
set active_char for footnotes
This enables handling footnotes and footnote references without also
handling images and links.
-rw-r--r-- | src/document.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.c b/src/document.c index 47f6cf2..ab825b8 100644 --- a/src/document.c +++ b/src/document.c @@ -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; |