Skip to main content

markdown_inline_text

Function markdown_inline_text 

Source
pub fn markdown_inline_text(input: &str) -> String
Expand description

Encode untrusted text for an inline Markdown context, including headings.

The returned text renders as the original plain text while Markdown and HTML parsers see only inert character references. Line breaks are folded to spaces so the value cannot open a new block-level construct.