File tree Expand file tree Collapse file tree 6 files changed +1563
-1563
lines changed Expand file tree Collapse file tree 6 files changed +1563
-1563
lines changed Original file line number Diff line number Diff line change 52
52
"option" ,
53
53
"p" ,
54
54
"param" ,
55
+ "search" ,
55
56
"section" ,
56
- "source" ,
57
57
"summary" ,
58
58
"table" ,
59
59
"tbody" ,
Original file line number Diff line number Diff line change 15
15
open_tag = "<[A-Za-z][A-Za-z0-9\\ -]*" + attribute + "*\\ s*\\ /?>"
16
16
17
17
close_tag = "<\\ /[A-Za-z][A-Za-z0-9\\ -]*\\ s*>"
18
- comment = "<!---- >|<!--(?:-?[^>-])(?:-? [^-])*-->"
18
+ comment = "<!---? >|<!--(?:[^-]|- [^-]|--[^> ])*-->"
19
19
processing = "<[?][\\ s\\ S]*?[?]>"
20
- declaration = "<![A-Z]+ \\ s+ [^>]*>"
20
+ declaration = "<![A-Za-z] [^>]*>"
21
21
cdata = "<!\\ [CDATA\\ [[\\ s\\ S]*?\\ ]\\ ]>"
22
22
23
23
HTML_TAG_RE = re .compile (
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def isWhiteSpace(code: int) -> bool:
197
197
# Currently without astral characters support.
198
198
def isPunctChar (ch : str ) -> bool :
199
199
"""Check if character is a punctuation character."""
200
- return unicodedata .category (ch ).startswith ("P" )
200
+ return unicodedata .category (ch ).startswith (( "P" , "S" ) )
201
201
202
202
203
203
MD_ASCII_PUNCT = {
You can’t perform that action at this time.
0 commit comments