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

Method __init__

markdown/inlinepatterns.py:1133–1137  ·  view source on GitHub ↗
(self, pattern: str, md: Markdown | None = None)

Source from the content-addressed store, hash-verified

1131 RE_TITLE_CLEAN = re.compile(r'\s')
1132
1133 def __init__(self, pattern: str, md: Markdown | None = None):
1134 super().__init__(pattern, md)
1135 # The text `getText` last saw and the closing bracket for each index of it.
1136 self._bracket_data: str | None = None
1137 self._bracket_ends: list[int | None] = []
1138
1139 def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element | None, int | None, int | None]:
1140 """ Return an `a` [`Element`][xml.etree.ElementTree.Element] or `(None, None, None)`. """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected