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

Class SubstituteTagInlineProcessor

markdown/inlinepatterns.py:400–404  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

build_inlinepatternsFunction · 0.85
extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected