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

Method handleMatch

markdown/inlinepatterns.py:333–335  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

331class SimpleTextPattern(Pattern): # pragma: no cover
332 """ Return a simple text of `group(2)` of a Pattern. """
333 def handleMatch(self, m: re.Match[str]) -> str:
334 """ Return string content of `group(2)` of a matching pattern. """
335 return m.group(2)
336
337
338class SimpleTextInlineProcessor(InlineProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected