talyssonoc / react-katex

Display math in TeX with KaTeX and ReactJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/cfrac error

PierBover opened this issue · comments

According to the Katex docs /cfrac is supported.

https://katex.org/docs/support_table.html

But when trying to render \cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}} I'm getting a render error.

image

I'm rendering the string directly from a <textarea>.

<BlockMath errorColor={'tomato'}>{this.latexString}</BlockMath>

Is there anything I'm missing or is this a bug?

Apparently /cfrac was added on 0.10.0 which is still a RC:
KaTeX/KaTeX#1392

And react-katex uses 0.9.0.

So, not really a bug.