-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add remark and rehype plugins #242
Comments
Hi there! Thank you for sharing, I'm facing a similar issue but with content directories But I tried to use the CDN approach. And nuxt wouldn't let me have a tag in the tree. With CDN you would need to do something about the "hydration" module on nuxt (Which I'm not sure yet of how it works). |
I am not sure. I tried it the same way as my configuration:
|
In nuxt.config.ts file, only need
P.S. When using a string directly in a .vue file, don't forget to escape
I created an example on StackBlitz, hope it helps. Nuxt MDC Math Example |
I've been trying to add the plugins "remark-math" and "rehype-mathjax" to the MDC configuration but it doesn't work and the "docs" are not clear about that.
It works with the @nuxt/content module, but I need it to work with the MDC module because my markdown is coming from a database, not from the content directory.
What I tried in my nuxt.config.ts file:
The text was updated successfully, but these errors were encountered: