Input of find_emph_char should INCLUDE opening
This fixes super^(`)`)
This commit is contained in:
parent
60d63a1920
commit
48a19b31bf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue