How to configure plugin options when using vite #2541
Answered
by
wooorm
AdditionAddict
asked this question in
Q&A
-
I can do this: export default defineConfig({
plugins: [
mdx({
remarkPlugins: [remarkMath, remarkFrontmatter, remarkMdxFrontmatter],
rehypePlugins: [rehypeMathjax],
}),
... But how to set options on If I do, mdx({
remarkPlugins: [remarkMath, remarkFrontmatter, remarkMdxFrontmatter],
rehypePlugins: [
rehypeMathjax({
chtml: {
fontURL: "http://localhost:3000/fonts/MathJax_AMS-Regular.woff",
},
}),
],
}), I get Am I setting the options correctly? |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Sep 27, 2024
Replies: 1 comment
-
Please take some time to read the docs. Such as: https://mdxjs.com/docs/extending-mdx/#using-plugins.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AdditionAddict
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please take some time to read the docs. Such as: https://mdxjs.com/docs/extending-mdx/#using-plugins.