mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 10:16:27 +03:00
Add plugin to fix problem with wrapped images
For more details see this issue: https://github.com/mdx-js/mdx/issues/1798
This commit is contained in:
parent
2d12e13f32
commit
66f7bd5d5c
27
website/package-lock.json
generated
27
website/package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user