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 %}
Output:
Pythagorean Theorem:
c2=a2+b2c^2 = a^2 + b^2 c2=a2+b2
For block expressions:
{% katex %}
c^2 = a^2 + b^2
{% endkatex %}
Output:
Pythagorean Theorem:
c2=a2+b2
{c^2 = a^2 + b^2}
c2=a2+b2
{c^2 = a^2 + b^2}
c2=a2+b2
Read more about Editor Guide here