MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / clean

Method clean

markdown/blockprocessors.py:247–255  ·  view source on GitHub ↗

Remove ``>`` from beginning of a line.

(self, line)

Source from the content-addressed store, hash-verified

245 self.parser.parseChunk(quote, block)
246
247 def clean(self, line):
248 """ Remove ``>`` from beginning of a line. """
249 m = self.RE.match(line)
250 if line.strip() == ">":
251 return ""
252 elif m:
253 return m.group(2)
254 else:
255 return line
256
257class OListProcessor(BlockProcessor):
258 """ Process ordered list blocks. """

Callers 3

runMethod · 0.95
saFunction · 0.80
jquery.jsFile · 0.80

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected