pub struct MathConfig {
pub backslash_bracket: bool,
pub backslash_paren: bool,
pub double_dollar: bool,
pub single_dollar: bool,
pub environments: bool,
}Expand description
Which math delimiter pairs to recognise.
Defaults recognise \(…\), \[…\], and LaTeX environments. The
dollar variants are opt-in because $ collides with currency
symbols and shell prompts in non-math prose.
Fields§
§backslash_bracket: bool§backslash_paren: bool§double_dollar: bool§single_dollar: bool§environments: boolLaTeX \begin{env}…\end{env} recognition. Defaults to true:
environments outside \[ \] are common in mathematical prose
(e.g. raw \begin{align} blocks rendered by KaTeX) and have
unambiguous closers, unlike $.
Trait Implementations§
Source§impl Clone for MathConfig
impl Clone for MathConfig
Source§fn clone(&self) -> MathConfig
fn clone(&self) -> MathConfig
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 MathConfig
impl Debug for MathConfig
Source§impl Default for MathConfig
impl Default for MathConfig
impl Copy for MathConfig
Auto Trait Implementations§
impl Freeze for MathConfig
impl RefUnwindSafe for MathConfig
impl Send for MathConfig
impl Sync for MathConfig
impl Unpin for MathConfig
impl UnsafeUnpin for MathConfig
impl UnwindSafe for MathConfig
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