From 7d4c906a12755f871a7897d34a5e9a952031ae4c Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 6 Aug 2020 10:48:56 +0200 Subject: [PATCH] Fix plain text MathML output --- Cargo.toml | 2 +- src/format/mathml.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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())) } } }