pub struct Math {
pub single_dollar_text_math: bool,
pub ignore: Option<Vec<String>>,
pub ignore_attributes: Vec<String>,
}Expand description
html.math: $…$ and $$…$$ in text into the elements html.katex renders, read by
pandoc’s rule so prices stay text: an opening $ is followed by a non-space, a closing
one follows a non-space and is not followed by a digit; \$ is a dollar sign.
Fields§
§single_dollar_text_math: boolLet one dollar, $a$, form math, as well as two.
ignore: Option<Vec<String>>Elements, by tag name, whose text is left alone; links, code, scripts, form text,
math and svg when left out.
ignore_attributes: Vec<String>Attributes, such as data-literal, whose elements’ text is left alone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Math
impl<'de> Deserialize<'de> for Math
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
Source§impl Transform for Math
impl Transform for Math
fn input(&self) -> TreeKind
fn output(&self) -> TreeKind
fn run<'a>( &self, tree: Tree<'a>, _file: &mut File, alloc: &'a Allocator, ) -> Result<Tree<'a>, Error>
Source§fn start<'a>(
&self,
tree: Tree<'a>,
file: &mut File,
alloc: &'a Bump,
) -> Result<Step<'a>, Error>
fn start<'a>( &self, tree: Tree<'a>, file: &mut File, alloc: &'a Bump, ) -> Result<Step<'a>, Error>
Start the stage: a finished tree, or a job when its work is asynchronous.
Source§fn host(&self) -> Option<u32>
fn host(&self) -> Option<u32>
The id of the binding function this stage stands for, which takes and returns
whatever tree reaches it;
None for a stage the crate runs.Source§fn html_writer(&self, _target: HtmlTarget) -> Option<Box<dyn HtmlWriter>>
fn html_writer(&self, _target: HtmlTarget) -> Option<Box<dyn HtmlWriter>>
Something that writes, from this stage’s input, the HTML a compiler aiming at
target would write from its output, when the stage can skip building that tree.Auto Trait Implementations§
impl Freeze for Math
impl RefUnwindSafe for Math
impl Send for Math
impl Sync for Math
impl Unpin for Math
impl UnsafeUnpin for Math
impl UnwindSafe for Math
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