"katex" issues #1112
-
Hi Razon, This simple test shows $$ intstead of formulas; I have some pages like that, they show $$ and I don't know why: ---
type: docs
---
{{< katex >}}
\text{Coupon per period} = \frac{\text{Annual Coupon Rate}}{2} \times \text{Face Value}
{{< /katex >}}
{{< katex >}}
\text{Coupon per period} = \frac{9 ext{%}}{2} \times \$100 = 4.5 ext{ ext{%}} \times \$100 = \$4.50
{{< /katex >}}
For example this page: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Interestingly, I just realized that this syntax works perfectly:
|
Beta Was this translation helpful? Give feedback.
-
I'm not fimilar to KaTeX formula, but your code seems wrong.
Yep, the KaTeX module just wrap the formula with |
Beta Was this translation helpful? Give feedback.
I'm not fimilar to KaTeX formula, but your code seems wrong.
Yep, the KaTeX module just wrap the formula with
$$
(you can find it from source code, CRTL+U), the rest part is handled by KaTeX JavaScript.You should check if the formula is correct, if this issue still present with correct formula, please provide a sample.