pub struct ParserOptions {
pub flavor: Flavor,
pub dialect: Dialect,
pub extensions: Extensions,
pub pandoc_compat: PandocCompat,
pub crossref_prefixes: Vec<String>,
pub refdef_labels: Option<Arc<HashSet<String>>>,
}Fields§
§flavor: Flavor§dialect: Dialect§extensions: Extensions§pandoc_compat: PandocCompatCompatibility target for ambiguous Pandoc behavior.
crossref_prefixes: Vec<String>Additional cross-reference key prefixes (beyond the Quarto built-ins
recognized by crate::parser::inlines::citations::is_quarto_crossref_key)
that should parse as cross-references rather than citations. Populated
from the top-level crossref-prefixes config key so documents relying on
crossref-injecting extensions (e.g. pseudocode’s @algo-) don’t have
those references misclassified as citations.
refdef_labels: Option<Arc<HashSet<String>>>Document-level reference link label set, populated by the
top-level parse() function when running CommonMark dialect and
consulted by inline parsing’s bracket resolution pass. None
means “not pre-computed”; the inline pipeline then treats every
reference-shaped bracket pair conservatively (current behavior),
which is correct for the Pandoc dialect and a graceful
degradation for embedded use cases that bypass parse().
Skipped by serde so config files don’t try to (de)serialize a runtime cache.
Implementations§
Source§impl ParserOptions
impl ParserOptions
pub fn effective_pandoc_compat(&self) -> PandocCompat
Trait Implementations§
Source§impl Clone for ParserOptions
impl Clone for ParserOptions
Source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more