feat: global/individual toggle for KaTeX and copy button

Allow KaTeX and copy button to be enabled globally or for individual posts.
This commit is contained in:
welpo 2023-08-02 19:38:04 +02:00
parent 5cdc18e688
commit edcfa359ef
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
9 changed files with 42 additions and 42 deletions

View file

@ -36,6 +36,8 @@ katex = true
+++
```
You may enable it globally as well, by setting `katex = true` in the `[extra]` section of your `config.toml`.
For enhanced performance and security, the $\KaTeX$ JavaScript, CSS, and fonts are hosted locally.
**Note**: After enabling $\KaTeX$, if you want to use \$ without rendering a mathematical expression, escape it with a single backslash: `\$`.