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

Method handleMatch

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

422class SubstituteTagPattern(SimpleTagPattern): # pragma: no cover
423 """ Return an element of type `tag` with no children. """
424 def handleMatch(self, m: re.Match[str]) -> etree.Element:
425 """ Return empty [`Element`][xml.etree.ElementTree.Element] of type `tag`. """
426 return etree.Element(self.tag)
427
428
429class SubstituteTagInlineProcessor(SimpleTagInlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected