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

Method handleMatch

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

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

Callers 1

__applyPatternMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected