MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / handleMatch

Method handleMatch

markdown/inlinepatterns.py:140–150  ·  view source on GitHub ↗

Return a ElementTree element from the given match. Subclasses should override this method. Keyword arguments: * m: A re match object containing a match of the pattern.

(self, m)

Source from the content-addressed store, hash-verified

138 return self.compiled_re
139
140 def handleMatch(self, m):
141 """Return a ElementTree element from the given match.
142
143 Subclasses should override this method.
144
145 Keyword arguments:
146
147 * m: A re match object containing a match of the pattern.
148
149 """
150 pass
151
152 def type(self):
153 """ Return class name, to define pattern type """

Callers 1

__applyPatternMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected