diff --git a/Cargo.toml b/Cargo.toml index d8c2e4d..61036e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "asciimath-rs" description = "AsciiMath parser" repository = "https://github.com/trivernis/asciimath-rs" -version = "0.4.4" +version = "0.4.5" authors = ["trivernis "] edition = "2018" readme = "README.md" diff --git a/src/format/mathml.rs b/src/format/mathml.rs index 22af779..1a5bfb7 100644 --- a/src/format/mathml.rs +++ b/src/format/mathml.rs @@ -84,12 +84,12 @@ impl ToMathML for PlainText { fn to_mathml(&self) -> String { if let Some(formatting) = &self.formatting { format!( - "{}", + "{}", formatting.to_mathml(), encode_minimal(self.text.as_str()) ) } else { - format!("{}", encode_minimal(self.text.as_str())) + format!("{}", encode_minimal(self.text.as_str())) } } }