pub enum Dialect {
Pandoc,
CommonMark,
}Expand description
Parser dialect — the underlying inline tokenization rule set.
Distinct from Flavor: Flavor is the user-facing identity (Pandoc,
Quarto, GFM, etc.) and selects extension defaults; Dialect is the
structural parser identity. Several flavors share a dialect — Quarto and
RMarkdown both use Pandoc; CommonMark and GFM both use CommonMark.
Use this for parser branches whose behavior is fundamentally different
between dialect families (e.g. unmatched backtick run handling). Per-flavor
feature toggles still belong on Extensions.
Variants§
Pandoc
Pandoc-markdown family. Default for Pandoc, Quarto, RMarkdown, MultiMarkdown.
CommonMark
CommonMark family. Default for CommonMark and GFM.
Implementations§
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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