-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
proposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial change
Milestone
Description
📚 Documentation
Remark and Rehype are ES6 Modules only now and the documentation imports them as CommonJS modules.
Page that that does work as described: https://docusaurus.io/docs/next/markdown-features/plugins
The documentation just says to install those packages
yarn add remark-images
and import them as
const remarkImages = require('remark-images');`
The remark-images package is ESM only and is not able to be required. The docusaurus.config.js
is a CJS module and can't include that package.
If it is just an older version of those plugins need to be specified, then that makes sense, but might be nice to have in the docs.
Edit: added more details
cprice404armano2 and Zamiell
Metadata
Metadata
Assignees
Labels
proposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial change