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

Class SubstituteTagInlineProcessor

markdown/inlinepatterns.py:401–405  ·  view source on GitHub ↗

Return an element of type `tag` with no children.

Source from the content-addressed store, hash-verified

399
400
401class SubstituteTagInlineProcessor(SimpleTagInlineProcessor):
402 """ Return an element of type `tag` with no children. """
403 def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element, int, int]:
404 """ Return empty [`Element`][xml.etree.ElementTree.Element] of type `tag`. """
405 return etree.Element(self.tag), m.start(0), m.end(0)
406
407
408class BacktickInlineProcessor(InlineProcessor):

Callers 2

build_inlinepatternsFunction · 0.85
extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected