trouble specifying options with @next/mdx #622
-
According to the read me, all {
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)'],
],
tags: 'ams',
},
svg: {
fontCache: 'global',
},
} Here is how const mathJax = require('rehype-mathjax');
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [require('remark-math')],
rehypePlugins: [
[
mathJax,
{
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)'],
],
tags: 'ams',
},
svg: {
fontCache: 'global',
},
},
],
],
},
});
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
}); However, I got the following error
Wondering if I misunderstood how to set |
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Feb 2, 2021
Replies: 1 comment
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see remarkjs/remark-math#54