diff --git a/website/package-lock.json b/website/package-lock.json index 3afcce3fa..9e5c123d0 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -22,6 +22,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "remark-gfm": "^3.0.1", + "remark-unwrap-images": "^3.0.1", "sass": "^1.56.1", "typescript": "4.8.4", "unist-util-visit": "^4.1.1" @@ -4368,6 +4369,21 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/remark-unwrap-images": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/remark-unwrap-images/-/remark-unwrap-images-3.0.1.tgz", + "integrity": "sha512-5VUY0n+J9lPTPfkct5S3/SbutryBjp8J/4mbgtlkDrOk3h8jde0hyqdYUJOoJKherZezS08tjd6i4+nnQ+wl5w==", + "dependencies": { + "@types/mdast": "^3.0.0", + "hast-util-whitespace": "^2.0.0", + "unified": "^10.0.0", + "unist-util-visit": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/resolve": { "version": "1.22.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", @@ -8392,6 +8408,17 @@ "unified": "^10.0.0" } }, + "remark-unwrap-images": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/remark-unwrap-images/-/remark-unwrap-images-3.0.1.tgz", + "integrity": "sha512-5VUY0n+J9lPTPfkct5S3/SbutryBjp8J/4mbgtlkDrOk3h8jde0hyqdYUJOoJKherZezS08tjd6i4+nnQ+wl5w==", + "requires": { + "@types/mdast": "^3.0.0", + "hast-util-whitespace": "^2.0.0", + "unified": "^10.0.0", + "unist-util-visit": "^4.0.0" + } + }, "resolve": { "version": "1.22.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", diff --git a/website/package.json b/website/package.json index 557b1f51f..93301ca80 100644 --- a/website/package.json +++ b/website/package.json @@ -24,6 +24,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "remark-gfm": "^3.0.1", + "remark-unwrap-images": "^3.0.1", "sass": "^1.56.1", "typescript": "4.8.4", "unist-util-visit": "^4.1.1" diff --git a/website/plugins/index.mjs b/website/plugins/index.mjs index 4f4a6ad37..d6863c7ee 100644 --- a/website/plugins/index.mjs +++ b/website/plugins/index.mjs @@ -1,10 +1,12 @@ import remarkGfm from 'remark-gfm' +import remarkUnwrapImages from 'remark-unwrap-images' import remarkCustomAttrs from './remarkCustomAttrs.mjs' import remarkWrapSections from './remarkWrapSections.mjs' const remarkPlugins = [ remarkGfm, + remarkUnwrapImages, remarkCustomAttrs, remarkWrapSections, ]