Add support for textcolor

This commit is contained in:
Oskar Persson
2023-11-15 21:09:47 +01:00
parent aa8ae54f59
commit 2f485c94dc
3 changed files with 74 additions and 2 deletions

View File

@@ -593,6 +593,12 @@ public struct MTMathListBuilder {
mathColor.colorString = self.readColor()!
mathColor.innerList = self.buildInternal(true)
return mathColor
} else if command == "textcolor" {
// A textcolor command has 2 arguments
let mathColor = MTMathTextColor()
mathColor.colorString = self.readColor()!
mathColor.innerList = self.buildInternal(true)
return mathColor
} else if command == "colorbox" {
// A color command has 2 arguments
let mathColorbox = MTMathColorbox()