Skip to main content

prepare_markdown_for_platform

Function prepare_markdown_for_platform 

Source
pub fn prepare_markdown_for_platform(
    text: &str,
    features: &MarkdownFeatures,
) -> String
Expand description

Prepare Markdown for a platform — pass through supported syntax, strip/convert unsupported.

features describes what the target platform supports; unsupported features are converted to a readable fallback rather than dropped silently.