MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / handleMatch

Method handleMatch

markdown/extensions/smarty.py:171–178  ·  view source on GitHub ↗
(self, m: re.Match[str], data: str)

Source from the content-addressed store, hash-verified

169 self.md = md
170
171 def handleMatch(self, m: re.Match[str], data: str) -> tuple[str, int, int]:
172 result = ''
173 for part in self.replace:
174 if isinstance(part, int):
175 result += m.group(part)
176 else:
177 result += self.md.htmlStash.store(part)
178 return result, m.start(0), m.end(0)
179
180
181class SmartyExtension(Extension):

Callers

nothing calls this directly

Calls 1

storeMethod · 0.80

Tested by

no test coverage detected