mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 00:09:48 +02:00
fix(mdx): fix for html multi-line comments (#9100)
This commit is contained in:
parent
cc6d9696f0
commit
ae2a09359a
4 changed files with 12 additions and 14 deletions
|
@ -24,6 +24,7 @@
|
|||
"@docusaurus/utils": "3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "3.0.0-alpha.0",
|
||||
"@mdx-js/mdx": "^2.1.5",
|
||||
"@slorber/remark-comment": "^1.0.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"estree-util-value-to-estree": "^2.1.0",
|
||||
"file-loader": "^6.2.0",
|
||||
|
@ -33,7 +34,6 @@
|
|||
"mdast-util-mdx": "^2.0.0",
|
||||
"mdast-util-to-string": "^3.0.0",
|
||||
"rehype-raw": "^6.1.1",
|
||||
"remark-comment": "^1.0.0",
|
||||
"remark-directive": "^2.0.1",
|
||||
"remark-emoji": "^2.2.0",
|
||||
"remark-gfm": "^3.0.1",
|
||||
|
|
|
@ -76,7 +76,8 @@ async function createProcessorFactory() {
|
|||
const {createProcessor: createMdxProcessor} = await import('@mdx-js/mdx');
|
||||
const {default: rehypeRaw} = await import('rehype-raw');
|
||||
const {default: gfm} = await import('remark-gfm');
|
||||
const {default: comment} = await import('remark-comment');
|
||||
// TODO using fork until PR merged: https://github.com/leebyron/remark-comment/pull/3
|
||||
const {default: comment} = await import('@slorber/remark-comment');
|
||||
const {default: directive} = await import('remark-directive');
|
||||
|
||||
// /!\ this method is synchronous on purpose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue