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

Class SimpleTextInlineProcessor

markdown/inlinepatterns.py:338–342  ·  view source on GitHub ↗

Return a simple text of `group(1)` of a Pattern.

Source from the content-addressed store, hash-verified

336
337
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 1

build_inlinepatternsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected