Render math formulas in LaTeX/AsciiMath format in SillyTavern chats.
- Install the "LaTeX" extension from the "Download Extensions & Assets" menu in the Extensions panel.
- Use the
latex
orasciimath
code block to render math formulas in LaTeX or AsciiMath format respectively. - To use the legacy syntax with
$$
(LaTeX) and$
(AsciiMath) delimiters in Markdown, import the following scripts with the Regex extension.
```latex
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
```
```asciimath
int_{-oo}^{oo} e^{-x^2} dx = sqrt{pi}
```
AGPL-3.0