kostub / iosMath

Beautiful math equation rendering on iOS and MacOS
MIT License
1.36k stars 234 forks source link

整理下不能显示的符号 #167

Closed Gaozn closed 2 years ago

Gaozn commented 2 years ago

MTMathAtomFactory.addLatexSymbol("because", value: MTMathAtom(type: MTMathAtomType.ordinary, value: "∵")) MTMathAtomFactory.addLatexSymbol("therefore", value: MTMathAtom(type: MTMathAtomType.ordinary, value: "∴")) MTMathAtomFactory.addLatexSymbol("varnothing", value: MTMathAtom(type: MTMathAtomType.ordinary, value: "∅"))

MTMathAtomFactory.addLatexSymbol("lbrack", value: MTMathAtom(type: MTMathAtomType.ordinary, value: "[")) MTMathAtomFactory.addLatexSymbol("rbrack", value: MTMathAtom(type: MTMathAtomType.ordinary, value: "]"))

text.replacingOccurrences(of: "\sqrt ", with: "\sqrt") text.replacingOccurrences(of: "\leqslant", with: "\leq") text.replacingOccurrences(of: "\geqslant", with: "\geq")