Commit fec7b9e6fcd2e4aee6cc226a15644e8a4988bad7

Martin Mitas 2016-10-11T02:43:40

md_is_html_tag: The tag name cannot contain ':', '.' or '_'.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index e3ea06e..b63dece 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -401,7 +401,7 @@ md_is_html_tag(MD_CTX* ctx, const MD_LINE* lines, int n_lines, OFF beg, OFF max_
     if(off >= line_end  ||  !ISALPHA(off))
         return -1;
     off++;
-    while(off < line_end  &&  (ISALNUM(off)  ||  ISANYOF(off, _T("_.:-"))))
+    while(off < line_end  &&  (ISALNUM(off)  ||  CH(off) == _T('-')))
         off++;
 
     /* (Optional) attributes (if not closer), (optional) '/' (if not closer)