diff --git a/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift b/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift index 2195385..2104005 100644 --- a/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift +++ b/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift @@ -232,7 +232,11 @@ public class MTMathListDisplay : MTDisplay { set { super.textColor = newValue for displayAtom in self.subDisplays { - displayAtom.textColor = newValue + if displayAtom.localTextColor == nil { + displayAtom.textColor = newValue + } else { + displayAtom.textColor = displayAtom.localTextColor + } } } get { super.textColor }