From 648905173f81bbb91a552d91fbdfdeee75b63265 Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Thu, 19 Jan 2023 09:44:52 -0500 Subject: [PATCH] Fixed a problem with \$. --- Sources/SwiftMath/MathRender/MTMathAtomFactory.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift b/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift index 6807508..6594df1 100644 --- a/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift +++ b/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift @@ -329,7 +329,7 @@ public class MTMathAtomFactory { // Latex command characters "{" : MTMathAtom(type: .open, value: "{"), "}" : MTMathAtom(type: .close, value: "}"), - "$" : MTMathAtom(type: .ordinary, value: "{"), + "$" : MTMathAtom(type: .ordinary, value: "$"), "&" : MTMathAtom(type: .ordinary, value: "&"), "#" : MTMathAtom(type: .ordinary, value: "#"), "%" : MTMathAtom(type: .ordinary, value: "%"),