Input of find_emph_char should INCLUDE opening

This fixes super^(`)`)
This commit is contained in:
Tzu-ping Chung 2014-08-11 03:06:25 +08:00
parent 60d63a1920
commit 48a19b31bf

View file

@ -1266,7 +1266,7 @@ char_superscript(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_
if (data[1] == '(') { if (data[1] == '(') {
sup_start = 2; 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) if (sup_len == size)
return 0; return 0;