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

Function isPunctChar

markdown_it/common/utils.py:197–199  ·  view source on GitHub ↗

Check if character is a punctuation character.

(ch: str)

Source from the content-addressed store, hash-verified

195
196
197def isPunctChar(ch: str) -> bool:
198 """Check if character is a punctuation character."""
199 return unicodedata.category(ch).startswith(("P", "S"))
200
201
202MD_ASCII_PUNCT = {

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…