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

Method handleMatch

markdown/inlinepatterns.py:247–258  ·  view source on GitHub ↗

Return a ElementTree element from the given match. Subclasses should override this method. Arguments: m: A match object containing a match of the pattern. Returns: An ElementTree Element object.

(self, m: re.Match[str])

Source from the content-addressed store, hash-verified

245 return self.compiled_re
246
247 def handleMatch(self, m: re.Match[str]) -> etree.Element | str:
248 """Return a ElementTree element from the given match.
249
250 Subclasses should override this method.
251
252 Arguments:
253 m: A match object containing a match of the pattern.
254
255 Returns: An ElementTree Element object.
256
257 """
258 pass # pragma: no cover
259
260 def type(self) -> str:
261 """ Return class name, to define pattern type """

Callers 1

__applyPatternMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected