I’m using the Rich Text Editor (with Markdown) in WeWeb and I’m wondering if it currently supports rendering math equations using LaTeX or MathJax/Katex syntax or any other syntax?
I’ve tried a few standard formats, including:
Inline math: $a^2 + b^2 = c^2$
Block math:
$
E = mc^2
$
Bracketed blocks:
\[
\frac{1}{2}mv^2
\]
Markdown code blocks with math:
```math
\frac{1}{2}mv^2
But none of them seem to render as equations, just plain text. Does the WeWeb Rich Text Editor currently support math rendering?
Hi Agustin! I am trying to render maths equations (LaTeX) but when I click either the inlineMath option or blockMath in the toolbar I’m getting this console error. It’s interesting because the ‘deprecated’ rich text editor block displays the latex fine. User error or bug?
How can we disable this functionality? We use the rich text editor in a chat pane. When users try to mention more than one currency value it converts all text to a failed equation. “$6,500 or $3,700” results in this:
I’ll create a ticket, however it is not a bug per se. According to LaTex docs, the two dollar signs triggers the functionality, however we need a way to disable it.
Yeah, that makes sense. It’s technically expected behavior from LaTeX, but we could probably tweak our parsing so $$ only triggers when it’s actually part of a valid math expression.
Feel free to report is as feedback instead if it’s not a blocker for you. Either way, the team will take a look and find a solution but, if it’s a blocker, you should create a bug ticket and let us know so we can prioritize accordingly: