Skip to main content
OwnDocs

Math

1 min readStableIntermediate

OwnDocs renders LaTeX-style math through remark-math and rehype-katex, producing accessible HTML at build time.

Quick Start

An inline equation.

The mass-energy equivalence formula is E=mc2E = mc^2.

Adding Options

Inline and block math together.

Inline: the Pythagorean theorem reads a2+b2=c2a^2 + b^2 = c^2.

Block:

n!k!(nk)!=(nk)\frac{n!}{k!(n-k)!} = \binom{n}{k}

Advanced

Multiple block equations.

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2} 0ex2dx=π2\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}

Options

$...$marker

Inline math.

$$...$$marker

Block math on its own lines.

Was this page helpful?