Skip to main content

render_text_with_cache

Function render_text_with_cache 

Source
pub async fn render_text_with_cache(
    raw_markdown_input: &str,
    file: &Path,
    opts: RenderOptions<'_>,
) -> Result<MarkdownRenderResult, MarkdownError>
Expand description

The async render of already-read text: render_str plus network OpenGraph enrichment. Shared by render_with_cache and render_from_vault_with_cache, which differ only in where the text comes from, and by the server’s page render, which reads the text itself (read_source_fingerprinted).