pub struct MarkdownParser;Expand description
A parser for Markdown documents with Pandoc-style citation syntax.
This parser currently supports inline prose citations and maps them into the shared document-processing pipeline. Markdown-specific footnotes, document metadata, and inline bibliography blocks remain future work.
Trait Implementations§
Source§impl CitationParser for MarkdownParser
impl CitationParser for MarkdownParser
Source§fn finalize_html_output(&self, rendered: &str) -> String
fn finalize_html_output(&self, rendered: &str) -> String
Convert Markdown body markup to HTML after citation splicing.
NUL placeholder tokens (\x00CITUMHTML…TOKEN…\x00) are temporarily
re-encoded as HTML comments before the Markdown parser runs, because
pulldown-cmark normalises \x00 to U+FFFD. The comments survive the
conversion verbatim and are swapped back so that the caller’s
HtmlPlaceholderRegistry::apply() can still locate them.
Source§fn render_body_markup<F>(&self, body: &str, fmt: &F) -> Stringwhere
F: OutputFormat<Output = String>,
fn render_body_markup<F>(&self, body: &str, fmt: &F) -> Stringwhere
F: OutputFormat<Output = String>,
Convert Markdown body markup to the target terminal format (Typst, LaTeX) after citation placeholder tokens have been spliced in.