Struct katex::opts::Opts [−][src]
#[non_exhaustive]pub struct Opts { /* fields omitted */ }
Expand description
Options to be passed to KaTeX.
Read https://katex.org/docs/options.html for more information.
Implementations
impl Opts
[src]
impl Opts
[src]pub fn builder() -> OptsBuilder
[src]
pub fn builder() -> OptsBuilder
[src]Return OptsBuilder
.
pub fn set_display_mode(&mut self, flag: bool)
[src]
pub fn set_display_mode(&mut self, flag: bool)
[src]Set whether to render the math in the display mode.
pub fn set_output_type(&mut self, output_type: OutputType)
[src]
pub fn set_output_type(&mut self, output_type: OutputType)
[src]Set KaTeX output type.
pub fn set_leqno(&mut self, flag: bool)
[src]
pub fn set_leqno(&mut self, flag: bool)
[src]Set whether to have \tags
rendered on the left instead of the right.
pub fn set_throw_on_error(&mut self, flag: bool)
[src]
pub fn set_throw_on_error(&mut self, flag: bool)
[src]Set whether to let KaTeX throw a ParseError for invalid LaTeX.
pub fn set_error_color(&mut self, color: String)
[src]
pub fn set_error_color(&mut self, color: String)
[src]Set the color used for invalid LaTeX.
pub fn add_macro(&mut self, entry_name: String, entry_data: String)
[src]
pub fn add_macro(&mut self, entry_name: String, entry_data: String)
[src]Add a custom macro. Read https://katex.org/docs/options.html for more information.
pub fn set_min_rule_thickness(&mut self, value: f64)
[src]
pub fn set_min_rule_thickness(&mut self, value: f64)
[src]Set the minimum thickness, in ems. Read https://katex.org/docs/options.html for more information.
pub fn set_max_size(&mut self, value: Option<f64>)
[src]
pub fn set_max_size(&mut self, value: Option<f64>)
[src]Set the max size for user-specified sizes.
If set to None
, users can make elements and spaces arbitrarily large.
Read https://katex.org/docs/options.html for more information.
pub fn set_max_expand(&mut self, value: Option<i32>)
[src]
pub fn set_max_expand(&mut self, value: Option<i32>)
[src]Set the limit for the number of macro expansions.
If set to None
, the macro expander will try to fully expand as in LaTeX.
Read https://katex.org/docs/options.html for more information.
pub fn set_trust(&mut self, flag: bool)
[src]
pub fn set_trust(&mut self, flag: bool)
[src]Set whether to trust users’ input. Read https://katex.org/docs/options.html for more information.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more