flutter_tex
flutter_tex copied to clipboard
how does one combine markdown text with MathJax
Hello:
In my use case: I have a combination of some markdown text with some equations. This is stored in a database as a String. Something like
r"""
### Important Equations
The following is an **important** equation.
When \(a \ne 0 \), there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.
"""
When I try to display it using the TextViewMarkdown it shows the markup with the equations as text. And the console throwing up the following message:
new-623 old-500
I also found that TextViewMarkdown when fed with a string throws blank. For example
TeXViewMarkdown('Hello World') is blank while
TeXViewMarkdown(## Hello World') shows up
So how does one combine Markdown text with equations.
Thanks
I used markdown package to convert markdown to html since this package uses webview.