commit 738fb3b81a4737297415c7f1635feda95522a401
parent 16fbd061ecf8391d769b43ac6d2c1261f3348955
Author: Martin Mitas <mity@morous.org>
Date: Mon, 21 Nov 2016 15:42:34 +0100
Fix parsing link reference definitions with line breaks.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/md4c/md4c.c b/md4c/md4c.c
@@ -1366,7 +1366,7 @@ md_is_link_title(MD_CTX* ctx, const MD_LINE* lines, int n_lines, OFF beg,
/* Optional white space with up to one line break. */
while(off < lines[line_index].end && ISWHITESPACE(off))
off++;
- if(off >= lines[line_index].end && ISNEWLINE(off)) {
+ if(off >= lines[line_index].end) {
line_index++;
if(line_index >= n_lines)
return FALSE;
@@ -1494,7 +1494,7 @@ md_is_link_reference_definition(MD_CTX* ctx, const MD_LINE* lines, int n_lines)
/* Optional white space with up to one line break. */
while(off < lines[line_index].end && ISWHITESPACE(off))
off++;
- if(off >= lines[line_index].end && ISNEWLINE(off)) {
+ if(off >= lines[line_index].end) {
line_index++;
if(line_index >= n_lines)
return FALSE;