Struct mdbook_katex::KatexConfig
source · pub struct KatexConfig {Show 14 fields
pub output: String,
pub leqno: bool,
pub fleqn: bool,
pub throw_on_error: bool,
pub error_color: String,
pub min_rule_thickness: f64,
pub max_size: f64,
pub max_expand: i32,
pub trust: bool,
pub static_css: bool,
pub include_src: bool,
pub macros: Option<String>,
pub block_delimiter: Delimiter,
pub inline_delimiter: Delimiter,
}
Fields§
§output: String
§leqno: bool
§fleqn: bool
§throw_on_error: bool
§error_color: String
§min_rule_thickness: f64
§max_size: f64
§max_expand: i32
§trust: bool
§static_css: bool
§include_src: bool
§macros: Option<String>
§block_delimiter: Delimiter
§inline_delimiter: Delimiter
Implementations§
source§impl KatexConfig
impl KatexConfig
pub fn output_type(&self) -> OutputType
pub fn build_opts<P>(&self, root: P) -> (Opts, Opts, ExtraOpts)where
P: AsRef<Path>,
pub fn build_opts_from_macros(
&self,
macros: HashMap<String, String>
) -> (Opts, Opts, ExtraOpts)
Trait Implementations§
source§impl Debug for KatexConfig
impl Debug for KatexConfig
source§impl Default for KatexConfig
impl Default for KatexConfig
source§fn default() -> KatexConfig
fn default() -> KatexConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for KatexConfigwhere
KatexConfig: Default,
impl<'de> Deserialize<'de> for KatexConfigwhere
KatexConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more