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

Method build_single

markdown/inlinepatterns.py:555–560  ·  view source on GitHub ↗

Return single tag.

(self, m: re.Match[str], tag: str, idx: int)

Source from the content-addressed store, hash-verified

553 """ The various strong and emphasis patterns handled by this processor. """
554
555 def build_single(self, m: re.Match[str], tag: str, idx: int) -> etree.Element:
556 """Return single tag."""
557 el1 = etree.Element(tag)
558 text = m.group(2)
559 self.parse_sub_patterns(text, el1, None, idx)
560 return el1
561
562 def build_double(self, m: re.Match[str], tags: str, idx: int) -> etree.Element:
563 """Return double tag."""

Callers 1

build_elementMethod · 0.95

Calls 1

parse_sub_patternsMethod · 0.95

Tested by

no test coverage detected