Make find_emph_char detect codespans at the end

This commit is contained in:
Xavier Mendez 2015-09-05 20:28:28 +02:00
parent cde8f3f452
commit f1dba7df2b

View file

@ -549,7 +549,7 @@ find_emph_char(uint8_t *data, size_t size, uint8_t c)
} }
/* not a well-formed codespan; use found matching emph char */ /* not a well-formed codespan; use found matching emph char */
if (i >= size) return tmp_i; if (bt < span_nb && i >= size) return tmp_i;
} }
/* skipping a link */ /* skipping a link */
else if (data[i] == '[') { else if (data[i] == '[') {