From 48a19b31bfa7a4485d23a93afcd3abc42594f7ed Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Mon, 11 Aug 2014 03:06:25 +0800 Subject: [PATCH] Input of find_emph_char should INCLUDE opening This fixes super^(`)`) --- src/document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.c b/src/document.c index 68905aa..0da921c 100644 --- a/src/document.c +++ b/src/document.c @@ -1266,7 +1266,7 @@ char_superscript(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_ if (data[1] == '(') { sup_start = 2; - sup_len = find_emph_char(data + 2, size - 2, ')') + 2; + sup_len = find_emph_char(data + 1, size - 1, ')') + 1; if (sup_len == size) return 0;