0.2.0 • Published 3 years ago
@renovamen/vuepress-plugin-katex v0.2.0
@renovamen/vuepress-plugin-katex@next
Plugin @renovamen/vuepress-plugin-katex@next
for adding KaTeX to VuePress 2 to support mathematical formulas rendering in Markdown. This plugin is based on waylonflinn/markdown-it-katex.
KaTeX is a faster alternative to MathJax (see here).
Install
yarn add @renovamen/vuepress-plugin-katex@next
# or
npm install @renovamen/vuepress-plugin-katex@next
Then add it to your .vuepress/config.js
:
module.exports = {
plugins: [
[
"@renovamen/vuepress-plugin-katex"
]
]
}
You can alsp enable it with some KaTeX options:
module.exports = {
plugins: [
[
"@renovamen/vuepress-plugin-katex", {
"throwOnError": false,
"errorColor": "#cc0000"
}
]
]
}
Usage
Here is a list of TeX functions supported by KaTeX.
Inline math: E = mc^2
Display math:
$$
i\hbar\frac{\partial \psi}{\partial t} = \frac{-\hbar^2}{2m} ( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} + \frac{\partial^2}{\partial z^2} ) \psi + V \psi.
$$
License
2.0.0-alpha.26
3 years ago
2.0.0-alpha.25
3 years ago
2.0.0-alpha.24
3 years ago
2.0.0-alpha.23
3 years ago
2.0.0-alpha.10
3 years ago
2.0.0-alpha.15
3 years ago
2.0.0-alpha.2
4 years ago
0.2.0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.1
4 years ago
0.1.0
5 years ago