pub struct DjotParser;Expand description
A parser for Djot citations using winnow.
Syntax: [@key], [+@key], or [-@key]. Multi-cites: [@key1; @key2].
Trait Implementations§
Source§impl CitationParser for DjotParser
impl CitationParser for DjotParser
Source§fn finalize_html_output(&self, rendered: &str) -> String
fn finalize_html_output(&self, rendered: &str) -> String
Convert Djot markup to HTML using jotdown after citation splicing.
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 Djot 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.
Source§impl Default for DjotParser
impl Default for DjotParser
Source§fn default() -> DjotParser
fn default() -> DjotParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DjotParser
impl RefUnwindSafe for DjotParser
impl Send for DjotParser
impl Sync for DjotParser
impl Unpin for DjotParser
impl UnsafeUnpin for DjotParser
impl UnwindSafe for DjotParser
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