flutter_tex icon indicating copy to clipboard operation
flutter_tex copied to clipboard

how does one combine markdown text with MathJax

Open rmrbytes opened this issue 4 years ago • 1 comments

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

rmrbytes avatar Aug 25 '21 03:08 rmrbytes

I used markdown package to convert markdown to html since this package uses webview.

roopaish avatar Mar 21 '22 17:03 roopaish