pub struct ParseOptions {
pub cm_strict_html_blocks: bool,
pub gfm_autolinks: bool,
pub legacy_gfm_emphasis: bool,
}Expand description
Dialect knobs that change parse behavior between strict CommonMark and
MDX. Default is MDX-friendly so capital JSX components round-trip as
JsxElement nodes; spec runners can flip cm_strict_html_blocks to
treat capital lowercase tags as CM 4.6 type-7 raw HTML.
Fields§
§cm_strict_html_blocks: boolCM 4.6 strict raw-HTML block detection. Treats uppercase JSX
(<Warning>) as type-7 raw HTML instead of routing through the
MDX JsxElement path. Spec runner only.
gfm_autolinks: boolGFM autolink extension. Wraps http(s):// and www.... runs in
Link nodes during inline parsing. Default off so the
BareUrlAutolink transformer owns this for MDX consumers.
legacy_gfm_emphasis: boolLegacy GFM 0.29 emphasis rendering. Flattens redundant nested
<strong> / <em> structure so the GFM spec runner can keep the
older delimiter behavior without regressing CommonMark 0.31.2.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more