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

Method clean

markdown/blockprocessors.py:320–328  ·  view source on GitHub ↗

Remove `>` from beginning of a line.

(self, line: str)

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected