Commit 4a7246de4054deb04910418e1a585a00ce429553

Martin Mitas 2024-01-11T11:55:38

md_is_inline_link_spec: Fix EOL checking.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/md4c.c b/src/md4c.c
index 3b1cca2..304733c 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -2344,7 +2344,7 @@ md_is_inline_link_spec(MD_CTX* ctx, const MD_LINE* lines, int n_lines,
     /* Optional whitespace followed with final ')'. */
     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;