gitbook-plugin-math
v1.0.3
Published
A GitBook plugin for rendering math expressions, which also supports dark mode color.
Downloads
5
Maintainers
Readme
gitbook-math
A Gitbook plugin for rendering math expressions, which also supports dark mode color.
Installation
Add the following plugins to your book.json
and run the command gitbook install
{
"plugins": ["math"]
}
Usage
Render with KaTex:
```math:title=title,macros={"\\f":"#1f(#2)"\\,"\\const":"1"},fontSize=16
% \f is defined as #1f(#2) using the macro
\f\relax{x} = \\const + \int_{-\infty}^\infty
\f\hat\xi\,e^{2 \pi i \xi x}
\,d\xi
```
- macros (optional): customized macros
- title (optional): to specify a title
- fontSize (optional): to specify the font size
Release History
- ==================== 1.0.0 Initial release ====================
- 1.0.1 bug fix
- 1.0.2 support font size setting and escape separators
- 1.0.3 use display mode by default
:fuelpump: How to contribute
Have an idea? Found a bug? See how to contribute.
:scroll: License
MIT © aleen42