summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-29 16:08:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-29 16:08:00 -0700
commit53a48ee09495c15ba27aea06fb6621211bde831f (patch)
tree5588daf3b88ce9ebe30907e7b782a7a144dc093c /src
parentbc902b8826c8d00194dfdc91a3791d540c1e8b97 (diff)
commonmark renderer - fixed calculation of number of backticks in code.
Diffstat (limited to 'src')
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 05c3510..fc508c6 100644
--- 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 {