fix(mdx): fix for html multi-line comments (#9100)

This commit is contained in:
Sébastien Lorber 2023-06-23 19:33:03 +02:00 committed by GitHub
parent cc6d9696f0
commit ae2a09359a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 14 deletions

View file

@ -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",

View file

@ -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