pub struct ParseOptions {
pub cm_strict_html_blocks: bool,
pub gfm_autolinks: bool,
pub legacy_gfm_emphasis: bool,
}Expand description
Dialect knobs. Default is MDX-friendly; spec runners flip these to match strict CommonMark / GFM semantics.
Fields§
§cm_strict_html_blocks: boolCM 4.6 strict raw-HTML detection. Treats uppercase JSX (<Warning>) as
type-7 raw HTML instead of JsxElement. Spec runner only.
gfm_autolinks: boolGFM autolink extension. Wraps http(s):// / www.... in Link nodes
at parse time. Default off so the BareUrlAutolink transformer owns
this for MDX consumers.
legacy_gfm_emphasis: boolLegacy GFM 0.29 emphasis: flatten redundant nested <strong> / <em>.
Lets the GFM spec runner keep older delimiter behavior without
regressing CM 0.31.2.
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseOptions
impl Debug for ParseOptions
Source§impl Default for ParseOptions
impl Default for ParseOptions
Source§fn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
impl Copy for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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