DEV Community

Technophile
Technophile

Posted on • Edited on

How to write Mathematical Expressions in DEV.to Articles?

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

Top comments (0)