Simplify $$\\frac{x^3-4x^5}{14x+21} \\div \\frac{x^2}. {7}$$\n\nsdssdsdsds\n\n\nsdsdsds\n\n\n\n\n\n\n\n\n\n\nSdsdsds
By identifying line break using \n,replacing the \n with "\\*".
func latex () -> String { var modifyString = self if modifyString.first == "$"{ modifyString.removeFirst() } if modifyString.first == "$"{ modifyString.removeFirst() } if modifyString.last == "$"{ modifyString.removeLast() } if modifyString.last == "$"{ modifyString.removeLast() } let mString = modifyString.replacingOccurrences(of: "$", with: "") let lString = mString.replacingOccurrences(of: " ", with: #"\ "#) if lString.contains("matrix") { let newString = lString.replacingOccurrences(of: "\n", with: #"\\"#) return newString } let newString = lString.replacingOccurrences(of: "\n", with: #"\\*"#) return newString }
By using force line break in latex equation it is showing asterisk in equation.
I need to remove these asterisks from equation.And bottom spacing