This guide leads you use LaTeX in Starlight.
-
Start by installing the remark-math
↗ and rehype-katex
↗ package using your favorite package manager:
-
Add katex
, rehype-katex
and remark-math
in astro.config.mjs
:
The code above generates the following on the page:
When a=0, there are two solutions to (ax2+bx+c=0) and they are
x=2a−b±b2−4ac