Commit d50a0142a059cd8034ba37cec0a7e079c3e23cec

Martin Mitas 2021-06-27T18:31:02

md_is_html_block_start_condition: Update for 0.30. The spec. 0.30 adds the tag <textarea> into the list if HTML blocks start condition type 1.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/md4c.c b/src/md4c.c
index d30a50c..f23b9d7 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -5334,7 +5334,7 @@ md_is_html_block_start_condition(MD_CTX* ctx, OFF beg)
 #endif
 #define X(name)     { _T(name), (sizeof(name)-1) / sizeof(CHAR) }
 #define Xend        { NULL, 0 }
-    static const TAG t1[] = { X("script"), X("pre"), X("style"), Xend };
+    static const TAG t1[] = { X("pre"), X("script"), X("style"), X("textarea"), Xend };
 
     static const TAG a6[] = { X("address"), X("article"), X("aside"), Xend };
     static const TAG b6[] = { X("base"), X("basefont"), X("blockquote"), X("body"), Xend };