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

Method handleMatch

markdown/inlinepatterns.py:396–398  ·  view source on GitHub ↗

Return empty [`Element`][xml.etree.ElementTree.Element] of type `tag`.

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

Source from the content-addressed store, hash-verified

394class SubstituteTagPattern(SimpleTagPattern): # pragma: no cover
395 """ Return an element of type `tag` with no children. """
396 def handleMatch(self, m: re.Match[str]) -> etree.Element:
397 """ Return empty [`Element`][xml.etree.ElementTree.Element] of type `tag`. """
398 return etree.Element(self.tag)
399
400
401class SubstituteTagInlineProcessor(SimpleTagInlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected