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

Method run

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
HTMLExtractorExtraClass · 0.85

Tested by

no test coverage detected