MathJax
MathJax is a syntax for writing mathematical formulas that get beautifully rendered.
Example
Section titled “Example”The following text:
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$renders the formula:
Enabling MathJax
Section titled “Enabling MathJax”When you choose MathJax as an option, the following is added to the Starlight project:
rehypeMathJaxis added to themarkdown.rehypePluginsAstro configuration.remarkMathis added to themarkdown.remarkPluginsAstro configuration.mathjax.cssis added to thecustomCssStarlight configuration.