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

Method handleMatch

markdown/inlinepatterns.py:312–314  ·  view source on GitHub ↗

Return string content of `group(1)` of a matching pattern.

(self, m: re.Match[str], data: str)

Source from the content-addressed store, hash-verified

310class SimpleTextInlineProcessor(InlineProcessor):
311 """ Return a simple text of `group(1)` of a Pattern. """
312 def handleMatch(self, m: re.Match[str], data: str) -> tuple[str, int, int]:
313 """ Return string content of `group(1)` of a matching pattern. """
314 return m.group(1), m.start(0), m.end(0)
315
316
317class EscapeInlineProcessor(InlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected