1.0.3 • Published 4 years ago

gitbook-plugin-math v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

gitbook-math

A Gitbook plugin for rendering math expressions, which also supports dark mode color.

npm javascript gitbook gitbook GitHub license npm

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