We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea94de0 commit 3dafd1cCopy full SHA for 3dafd1c
1 file changed
src/canonicalize.rs
@@ -905,6 +905,10 @@ impl CanonicalizeContext {
905
// people tend to set them in a non-italic font and software makes that 'mtext'
906
CanonicalizeContext::make_roman_numeral(mathml);
907
return Some(mathml);
908
+ } else if text.chars().all(|c| c.is_ascii_digit() || matches!(c, '.' | ',' | ' ' | '\u{00A0}')) &&
909
+ text.chars().any(|c| c.is_ascii_digit()){ // does it look like a number?
910
+ mathml.set_name("mn");
911
+ return Some(mathml);
912
} else if contains_currency(text) && let Some(result) = split_currency_symbol(mathml) {
913
return Some(result);
914
}
0 commit comments