/plugin-katex

Update version to v0.10.0-rc.1 and add '$...$' support.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Math typesetting using KaTex

Use it for your book, by adding to your book.json:

{
    "plugins": ["katex@git+https://github.com/gaoxiaosong/plugin-katex.git"]
}

then run gitbook install.

Usage

Inline math: $$\int_{-\infty}^\infty g(x) dx$$, $\int_{-\infty}^\infty g(x) dx$


Block math:

$$
\int_{-\infty}^\infty g(x) dx
$$

Or using the templating syntax:

{% block math %}\int_{-\infty}^\infty g(x) dx{% endblock %}

Comparison with MathJax

  • Faster