I'm using a web API from Python code to get randomly generated math questions. However, it uses some kind of markup to show mathematical formulas in plain text. For example, one output I got was:
Let ( z ) be a complex number such that ( |z - i| = 2 ) and ( \text{arg}(z) = \frac{\pi}{6} ). Find all possible values of ( z ) in the form ( a + bi ), where ( a ) and ( b ) are real numbers.
This is difficult to read. How can I make it look nicer?
For example, given a string like \frac{-b\pm \sqrt{b^{2}-4ac}}{2a}, how can I produce rendered text like this image?
