- Commit
- 53a48ee09495c15ba27aea06fb6621211bde831f
- Parent
- bc902b8826c8d00194dfdc91a3791d540c1e8b97
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
commonmark renderer - fixed calculation of number of backticks in code.
My personal build of CMark ✏️
commonmark renderer - fixed calculation of number of backticks in code.
1 file changed, 1 insertion, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/commonmark.c | 2 | 1 | 1 |
diff --git a/src/commonmark.c b/src/commonmark.c @@ -200,7 +200,7 @@ longest_backtick_sequence(cmark_chunk *code) int longest = 0; int current = 0; int i = 0; - while (i < code->len) { + while (i <= code->len) { if (code->data[i] == '`') { current++; } else {