pub struct MathOptions {
pub normalise: bool,
pub render: MathRender,
}Expand description
Math canonicalisation configuration.
All fields are off by default. Math regions are opaque to
CommonMark: pulldown-cmark parses their bytes as prose, so any
whitespace change inside shifts the byte-level event stream. Authors
who render math downstream (KaTeX, MathJax) opt in.
Fields§
§normalise: boolWhether whole-block math regions (display \[…\] / $$…$$
and environments standing alone) are normalised.
render: MathRenderHow math regions are emitted for downstream renderers. See
MathRender for the modes; default is MathRender::None
(verbatim emission, today’s behaviour).
Trait Implementations§
Source§impl Clone for MathOptions
impl Clone for MathOptions
Source§fn clone(&self) -> MathOptions
fn clone(&self) -> MathOptions
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 MathOptions
impl Debug for MathOptions
Source§impl Default for MathOptions
impl Default for MathOptions
Source§fn default() -> MathOptions
fn default() -> MathOptions
Returns the “default value” for a type. Read more
impl Copy for MathOptions
Auto Trait Implementations§
impl Freeze for MathOptions
impl RefUnwindSafe for MathOptions
impl Send for MathOptions
impl Sync for MathOptions
impl Unpin for MathOptions
impl UnsafeUnpin for MathOptions
impl UnwindSafe for MathOptions
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