Skip to content

Commit 3ac2a7e

Browse files
committed
⬆️ Bump specifications support from 0.30 to 0.31.2 (#351)
This is based on markdown-it/markdown-it@cd247786
1 parent e5d1d0c commit 3ac2a7e

File tree

6 files changed

+1563
-1563
lines changed

6 files changed

+1563
-1563
lines changed

markdown_it/common/html_blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"option",
5353
"p",
5454
"param",
55+
"search",
5556
"section",
56-
"source",
5757
"summary",
5858
"table",
5959
"tbody",

markdown_it/common/html_re.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
open_tag = "<[A-Za-z][A-Za-z0-9\\-]*" + attribute + "*\\s*\\/?>"
1616

1717
close_tag = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>"
18-
comment = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->"
18+
comment = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->"
1919
processing = "<[?][\\s\\S]*?[?]>"
20-
declaration = "<![A-Z]+\\s+[^>]*>"
20+
declaration = "<![A-Za-z][^>]*>"
2121
cdata = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
2222

2323
HTML_TAG_RE = re.compile(

markdown_it/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def isWhiteSpace(code: int) -> bool:
197197
# Currently without astral characters support.
198198
def isPunctChar(ch: str) -> bool:
199199
"""Check if character is a punctuation character."""
200-
return unicodedata.category(ch).startswith("P")
200+
return unicodedata.category(ch).startswith(("P", "S"))
201201

202202

203203
MD_ASCII_PUNCT = {

0 commit comments

Comments
 (0)