gitbook-plugin-katex

Math typesetting using KaTex into GitBook

Usage no npm install needed!

<script type="module">
  import gitbookPluginKatex from 'https://cdn.skypack.dev/gitbook-plugin-katex';
</script>

README

Math typesetting using KaTex

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

{
    "plugins": ["katex"]
}

then run gitbook install.

Usage

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


Block math:

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

Or using the templating syntax:

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

Comparison with MathJax

  • Faster