core.markdown

Attributes

RENDERER_INSTANCES

Classes

HTMLRendererWithoutInlineHtml

HTML renderer class.

Functions

render_untrusted_markdown(→ markupsafe.Markup)

Module Contents

core.markdown.RENDERER_INSTANCES[source]
class core.markdown.HTMLRendererWithoutInlineHtml(*extras, html_escape_double_quotes=False, html_escape_single_quotes=False, process_html_tokens=True, **kwargs)[source]

Bases: mistletoe.HtmlRenderer

HTML renderer class.

See mistletoe.base_renderer module for more info.

static render_html_block(token: mistletoe.span_token.HTMLBlock) str[source]
static render_html_span(token: mistletoe.span_token.HTMLSpan) str[source]
core.markdown.render_untrusted_markdown(markdown: str, cls: type[mistletoe.HtmlRenderer] = HTMLRendererWithoutInlineHtml) markupsafe.Markup[source]