Use mchem with Nextra
Unanswered
TikkaMasala posted this in #help-forum
Hey guys, this may be a stupid question, but how can I use mchem with Nextra (https://nextra.site/) ?
I know Nextra uses Katex (https://katex.org/) and Katex supports mchem (https://katex.org/docs/node.html#using-mhchem-extension). But I can't find any config/option, where I can add mchem.
My Next config:
LaTex is working fine, but I am not sure, how I would go about adding mchem.
I know Nextra uses Katex (https://katex.org/) and Katex supports mchem (https://katex.org/docs/node.html#using-mhchem-extension). But I can't find any config/option, where I can add mchem.
My Next config:
// next.config.ts
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
latex: true,
});
module.exports = withNextra();LaTex is working fine, but I am not sure, how I would go about adding mchem.