MCPcopy
hub / github.com/Python-Markdown/markdown / SubstituteTagInlineProcessor

Class SubstituteTagInlineProcessor

markdown/inlinepatterns.py:429–433  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

427
428
429class SubstituteTagInlineProcessor(SimpleTagInlineProcessor):
430 """ Return an element of type `tag` with no children. """
431 def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element, int, int]:
432 """ Return empty [`Element`][xml.etree.ElementTree.Element] of type `tag`. """
433 return etree.Element(self.tag), m.start(0), m.end(0)
434
435
436class BacktickInlineProcessor(InlineProcessor):

Callers 2

build_inlinepatternsFunction · 0.85
extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…