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

Method handleMatch

markdown/inlinepatterns.py:340–342  ·  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

338class SimpleTextInlineProcessor(InlineProcessor):
339 """ Return a simple text of `group(1)` of a Pattern. """
340 def handleMatch(self, m: re.Match[str], data: str) -> tuple[str, int, int]:
341 """ Return string content of `group(1)` of a matching pattern. """
342 return m.group(1), m.start(0), m.end(0)
343
344
345class EscapeInlineProcessor(InlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected