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

Function unescapeAll

markdown_it/common/utils.py:117–127  ·  view source on GitHub ↗
(string: str)

Source from the content-addressed store, hash-verified

115
116
117def unescapeAll(string: str) -> str:
118 def replacer_func(match: Match[str]) -> str:
119 escaped = match.group(1)
120 if escaped:
121 return escaped
122 entity = match.group(2)
123 return replaceEntityPattern(match.group(), entity)
124
125 if "\\" not in string and "&" not in string:
126 return string
127 return UNESCAPE_ALL_RE.sub(replacer_func, string)
128
129
130ESCAPABLE = r"""\\!"#$%&'()*+,./:;<=>?@\[\]^`{}|_~-"""

Callers 3

fenceMethod · 0.85
parseLinkDestinationFunction · 0.85
parseLinkTitleFunction · 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…