GitbookIO / plugin-mathjax

MathJAX plugin for GitBook
Apache License 2.0
89 stars 53 forks source link

I'm really confused about how to use plugins. #12

Closed Ir1d closed 9 years ago

Ir1d commented 9 years ago

The help doc didn't help very much here.

I added this into my book.json:

{
   plugins: ["katex"]
}

but the build failed, so I changed into this:

{
    "plugins": ["katex"]
}

again it did not work, telling me that

info: load plugin katex ....ERROR
Error: Error loading plugins: katex. Run 'gitbook install' to install plugins from NPM.

So what exactly should I be doing to enable MathJax for my doc?

Thanks again for this great system.

SamyPesse commented 9 years ago

This plugin is mathjax, not katex.

You did the right thing, but like the message is telling you, you need to run gitbook install to download plugins.