Commit 8f04d1135c547b3a1067b45bb70d63297878fdf3

Martin Mitas 2019-03-26T13:06:21

md_is_link_destination_A: Link destination in <> can contain spaces.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index e535c6e..9779ebd 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -1960,7 +1960,7 @@ md_is_link_destination_A(MD_CTX* ctx, OFF beg, OFF max_end, OFF* p_end,
             continue;
         }
 
-        if(ISWHITESPACE(off)  ||  CH(off) == _T('<'))
+        if(ISNEWLINE(off)  ||  CH(off) == _T('<'))
             return FALSE;
 
         if(CH(off) == _T('>')) {