How to write Mathematical Expressions in DEV.to Articles?

Technophile - Oct 31 '22 - - Dev Community

Learn how to write math expressions in DEV.to articles

In order to write inline equations, use:

{% katex inline %} 
  c^2 = a^2 + b^2
{% endkatex %}
Enter fullscreen mode Exit fullscreen mode

Output:

Pythagorean Theorem: c2=a2+b2c^2 = a^2 + b^2


For block expressions:

{% katex %}
 c^2 = a^2 + b^2
{% endkatex %}
Enter fullscreen mode Exit fullscreen mode

Output:

Pythagorean Theorem:

c2=a2+b2 {c^2 = a^2 + b^2}

Read more about Editor Guide here

. . . . . . . . . . . . . . . . . .
Terabox Video Player