Closed pomber closed 1 week ago
👍 that should be easy to add
What I understand is that you need plugins (docs, blog, pages) to support a recmaPlugins
option as well right? It's not just the mdx loader parameters.
What I understand is that you need plugins (docs, blog, pages) to support a
recmaPlugins
option as well right? It's not just the mdx loader parameters.
Yes! I clicked (go to definition) on the remarkPlugins option from the docusaurus config and it took me directly to the MDXOptions type. That's why I put it here.
TL;DR: Docusaurus supports remark and rehype plugins, but not recma plugins.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I'm working on an example showing how to use Code Hike v1 + Docusaurus, but Docusaurus is missing the option to pass recma plugins that Code Hike needs.
Reproducible demo
https://github.com/code-hike/examples/pull/8
Actual behavior
The
MDXOptions
from@docusaurus/mdx-loader
:Expected behavior
recmaPlugins
is already supported by theProcessorOptions
from@mdx-js/mdx
v3.0.0 that@docusaurus/mdx-loader
is using.Your environment