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

Method build_single

markdown/inlinepatterns.py:607–612  ·  view source on GitHub ↗

Return single tag.

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

Source from the content-addressed store, hash-verified

605 """ The various strong and emphasis patterns handled by this processor. """
606
607 def build_single(self, m: re.Match[str], tag: str, idx: int) -> etree.Element:
608 """Return single tag."""
609 el1 = etree.Element(tag)
610 text = m.group(2)
611 self.parse_sub_patterns(text, el1, None, idx)
612 return el1
613
614 def build_double(self, m: re.Match[str], tags: str, idx: int) -> etree.Element:
615 """Return double tag."""

Callers 1

build_elementMethod · 0.95

Calls 1

parse_sub_patternsMethod · 0.95

Tested by

no test coverage detected