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

Method run

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

Source from the content-addressed store, hash-verified

309 """Remove html blocks from the text and store them for later retrieval."""
310
311 def run(self, lines: list[str]) -> list[str]:
312 source = '\n'.join(lines)
313 parser = HTMLExtractorExtra(self.md)
314 parser.feed(source)
315 parser.close()
316 return ''.join(parser.cleandoc).split('\n')
317
318
319class MarkdownInHtmlProcessor(BlockProcessor):

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
HTMLExtractorExtraClass · 0.85

Tested by

no test coverage detected