From 5cf1ed3fe2f85140bfe84c0f72c26281abf9dbc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Israel=20Pe=C3=B1a?= Date: Fri, 30 Jan 2015 20:43:42 -0800 Subject: [PATCH] set active_char for footnotes This enables handling footnotes and footnote references without also handling images and links. --- src/document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;