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

Method run

markdown/extensions/md_in_html.py:303–308  ·  view source on GitHub ↗
(self, lines: list[str])

Source from the content-addressed store, hash-verified

301 """Remove html blocks from the text and store them for later retrieval."""
302
303 def run(self, lines: list[str]) -> list[str]:
304 source = '\n'.join(lines)
305 parser = HTMLExtractorExtra(self.md)
306 parser.feed(source)
307 parser.close()
308 return ''.join(parser.cleandoc).split('\n')
309
310
311class MarkdownInHtmlProcessor(BlockProcessor):

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
HTMLExtractorExtraClass · 0.85

Tested by

no test coverage detected