diff --git a/library/src/math/row.rs b/library/src/math/row.rs index 67d9eeafa..261723033 100644 --- a/library/src/math/row.rs +++ b/library/src/math/row.rs @@ -50,17 +50,15 @@ impl MathRow { } // Convert variable operators into binary operators if something - // precedes them. + // precedes them and they are not preceded by a operator or comparator. if fragment.class() == Some(MathClass::Vary) && matches!( last.and_then(|i| resolved[i].class()), Some( MathClass::Normal | MathClass::Alphabetic - | MathClass::Binary | MathClass::Closing | MathClass::Fence - | MathClass::Relation ) ) {