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

Class MarkdownInHTMLPostprocessor

markdown/extensions/md_in_html.py:414–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413
414class MarkdownInHTMLPostprocessor(RawHtmlPostprocessor):
415 def stash_to_string(self, text: str | etree.Element) -> str:
416 """ Override default to handle any `etree` elements still in the stash. """
417 if isinstance(text, etree.Element):
418 return self.md.serializer(text)
419 else:
420 return str(text)
421
422
423class MarkdownInHtmlExtension(Extension):

Callers 1

extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected