0.0.3 • Published 3 years ago

nehan-katex v0.0.3

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

nehan-katex

nehan plugin for displaying mathematical expression using katex",

create nehan style.

import * as KatexStyle from 'nehan-katex';

const style = KatexStyle.create({
  selector: "math"
});

use markup

<math class="inline">$sin</math> is called "正弦" in Japanese.
<math>$begin{pmatrix} a & b $$ c & d $end{pmatrix}</math>

Note that we use $ instead of \ in katex syntax.