Commit 82b226ffb5f15e06ca1b6912d70e26da70b87282

Martin Mitas 2021-06-27T18:42:09

md_is_html_block_start_condition: Accept lower-case HTML declaration. The change is mandated by the spec v. 0.30.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/md4c.c b/src/md4c.c
index f23b9d7..40066b2 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -5383,7 +5383,7 @@ md_is_html_block_start_condition(MD_CTX* ctx, OFF beg)
     /* Check for type 4 or 5: <! */
     if(off < ctx->size  &&  CH(off) == _T('!')) {
         /* Check for type 4: <! followed by uppercase letter. */
-        if(off + 1 < ctx->size  &&  ISUPPER(off+1))
+        if(off + 1 < ctx->size  &&  ISASCII(off+1))
             return 4;
 
         /* Check for type 5: <![CDATA[ */