MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / unescape

Method unescape

markdown/postprocessors.py:127–128  ·  view source on GitHub ↗
(self, m: re.Match[str])

Source from the content-addressed store, hash-verified

125 RE = re.compile(r'{}(\d+){}'.format(util.STX, util.ETX))
126
127 def unescape(self, m: re.Match[str]) -> str:
128 return chr(int(m.group(1)))
129
130 def run(self, text: str) -> str:
131 return self.RE.sub(self.unescape, text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected