MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / clean

Method clean

markdown/blockprocessors.py:316–324  ·  view source on GitHub ↗

Remove `>` from beginning of a line.

(self, line: str)

Source from the content-addressed store, hash-verified

314 self.parser.state.reset()
315
316 def clean(self, line: str) -> str:
317 """ Remove `>` from beginning of a line. """
318 m = self.RE.match(line)
319 if line.strip() == ">":
320 return ""
321 elif m:
322 return m.group(2)
323 else:
324 return line
325
326
327class OListProcessor(BlockProcessor):

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected