pub struct MarkdownParser;Expand description
A parser for Markdown documents with Pandoc-style citation syntax.
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.
Source§fn parse_document(&self, content: &str, locale: &Locale) -> ParsedDocument
fn parse_document(&self, content: &str, locale: &Locale) -> ParsedDocument
Parse the document into citation placements and note metadata.
Auto Trait Implementations§
impl Freeze for MarkdownParser
impl RefUnwindSafe for MarkdownParser
impl Send for MarkdownParser
impl Sync for MarkdownParser
impl Unpin for MarkdownParser
impl UnsafeUnpin for MarkdownParser
impl UnwindSafe for MarkdownParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more