0.2.0 • Published 2 years ago

nodebb-plugin-math v0.2.0

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
2 years ago

NodeBB Math parser

A plugin to parse math codeblocks and render them currently with KaTeX.

Packaged KaTeX version: ^0.15.6

Installation

npm install nodebb-plugin-math

Usage

Make sure the nodebb-plugin-markdown feature Automatically detect and highlight code blocks has been enabled.

Write a valid math block within a post as a code block:

```math
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
```

For inline math formulas wrap your function with \\(\\), e.g.:

\\(f(x)\\)

Contributions

This software also uses portions of the following projects:

ProjectCopyright
nodebb-plugin-katexCopyright (c) 2015 Benjamin Abel.
KaTeXCopyright (c) 2019 Khan Academy