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

Method handleMatch

markdown/inlinepatterns.py:218–229  ·  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

216 return self.compiled_re
217
218 def handleMatch(self, m: re.Match[str]) -> etree.Element | str:
219 """Return a ElementTree element from the given match.
220
221 Subclasses should override this method.
222
223 Arguments:
224 m: A match object containing a match of the pattern.
225
226 Returns: An ElementTree Element object.
227
228 """
229 pass # pragma: no cover
230
231 def type(self) -> str:
232 """ Return class name, to define pattern type """

Callers 1

__applyPatternMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected