typesetting:
- engine: KaTeX
- phase: build time
- scope: math expressions
Syntax
Block math
syntax:
- delimiter:
$$ - placement: opening and closing delimiters on dedicated lines
source:
$$
f(x) = \int_{-\infty}^\infty
f\hat(\xi),e^{2 \pi i \xi x}
\,d\xi
$$
output:
aligned_equations:
matrix:
annotated_derivation:
Warn
$$block delimiters must occupy dedicated lines due to remark-math limitations.
Inline math
syntax:
- delimiter: single
$example: - source:
$e^{i\pi} = -1$ - output:
Escaping $
rule:
- escape literal dollar signs as
\$to prevent math parsing examples: - incorrect:
I have $1 and you have $2 - correct_source:
I have \$1 and you have \$2 - output: I have $1 and you have $2
mhchem
enablement:
- fork the community LaTeX plugin repository
- prepend import to
src/index.ts
import:
import "katex/contrib/mhchem"Customization
configuration: