MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / isMdAsciiPunct

Function isMdAsciiPunct

markdown_it/common/utils.py:238–250  ·  view source on GitHub ↗

Markdown ASCII punctuation characters. :: !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \\, ], ^, _, `, {, |, }, or ~ See http://spec.commonmark.org/0.15/#ascii-punctuation-character Don't confuse with unicode punctuation !!! It lacks some chars in asci

(ch: int)

Source from the content-addressed store, hash-verified

236
237
238def isMdAsciiPunct(ch: int) -> bool:
239 """Markdown ASCII punctuation characters.
240
241 ::
242
243 !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \\, ], ^, _, `, {, |, }, or ~
244
245 See http://spec.commonmark.org/0.15/#ascii-punctuation-character
246
247 Don&#x27;t confuse with unicode punctuation !!! It lacks some chars in ascii range.
248
249 """
250 return ch in MD_ASCII_PUNCT
251
252
253def normalizeReference(string: str) -> str:

Callers 2

process_inlinesFunction · 0.85
scanDelimsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…