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

Method handleMatch

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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected