How to render Open AI responce realted to math in React Native?

Hello All,

I am trying to render response related to Math in React native, not sure how should I render it so that it display content in good format, below is sample response

To solve the mathematical expression \\( \\frac{6}{2(1+2)} \\), we should follow the order of operations (PEMDAS/BODMAS):

1. **Parentheses/Brackets**: Solve inside the parentheses first.
   \\[
   1 + 2 = 3
   \\]
   Thus, the expression simplifies to:
   \\[
   \\frac{6}{2 \\cdot 3}
   \\]

2. **Multiplication and Division**: From left to right.
   First, perform the multiplication inside the denominator:
   \\[
   2 \\cdot 3 = 6
   \\]
   Now, the expression is:
   \\[
   \\frac{6}{6}
   \\]
   
3. Finally, perform the division:
   \\[
   \\frac{6}{6} = 1
   \\]

So, the correct answer is \\( 1 \\).


Please help to achive the result, Thanks

OpenAI LLM responds in the markdown format. You need to convert the response to html or whatever you need. Best to look more into the documentation so you understand the platform you are working with and how it functions.