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

Class MarkdownInHTMLPostprocessor

markdown/extensions/md_in_html.py:424–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422
423
424class MarkdownInHTMLPostprocessor(RawHtmlPostprocessor):
425 def stash_to_string(self, text: str | etree.Element) -> str:
426 """ Override default to handle any `etree` elements still in the stash. """
427 if isinstance(text, etree.Element):
428 return self.md.serializer(text)
429 else:
430 return str(text)
431
432
433class MarkdownInHtmlExtension(Extension):

Callers 1

extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected