You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the console error message carefully (if applicable).
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.
recmaPlugins is already supported by the ProcessorOptions from @mdx-js/mdx v3.0.0 that @docusaurus/mdx-loader is using.
Your environment
Docusaurus version used: 3.4.0
The text was updated successfully, but these errors were encountered:
pomber
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jun 19, 2024
slorber
added
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
and removed
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jun 20, 2024
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
code-hike/examples#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
The text was updated successfully, but these errors were encountered: