Skip to content

Commit 343d028

Browse files
committed
Update HMTL_SEQUENCES regexes as per CM 0.30 spec
1 parent b96fe82 commit 343d028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown_it/rules_block/html_block.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# last argument defines whether it can terminate a paragraph or not
1414
HTML_SEQUENCES: List[Tuple[Pattern, Pattern, bool]] = [
1515
(
16-
re.compile(r"^<(script|pre|style)(?=(\s|>|$))", re.IGNORECASE),
17-
re.compile(r"<\/(script|pre|style)>", re.IGNORECASE),
16+
re.compile(r"^<(script|pre|style|textarea)(?=(\s|>|$))", re.IGNORECASE),
17+
re.compile(r"<\/(script|pre|style|textarea)>", re.IGNORECASE),
1818
True,
1919
),
2020
(re.compile(r"^<!--"), re.compile(r"-->"), True),

0 commit comments

Comments
 (0)