remark and rehype plugins to support math
remark-html-katex
as legacy
please switch to rehype-katex
instead// From CommonJS
var rehypeMathjax = require('rehype-mathjax')
// To ESM
import rehypeMathjax from 'rehype-mathjax'
Learn more about ESM in this guide
mathjax
please read commit message for needed changes// From CommonJS
var rehypeKatex = require('rehype-katex')
// To ESM
import rehypeKatex from 'rehype-katex'
Learn more about ESM in this guide
katex
// From CommonJS
var remarkMath = require('remark-math')
// To ESM
import remarkMath from 'remark-math'
Learn more about ESM in this guide
katex