Skip to content

Commit

Permalink
Make find_emph_char detect codespans at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
mildsunrise committed Sep 5, 2015
1 parent cde8f3f commit f1dba7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
if (i >= size) return tmp_i;
if (bt < span_nb && i >= size) return tmp_i;
}
/* skipping a link */
else if (data[i] == '[') {
Expand Down

0 comments on commit f1dba7d

Please sign in to comment.