diff --git a/package-lock.json b/package-lock.json index 14ad1f25..c88c3fdb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,6 @@ "@testing-library/dom": "9.3.1", "@testing-library/jest-dom": "5.17.0", "@testing-library/react": "14.0.0", - "@types/hast": "2.3.5", "@types/lodash-es": "4.17.8", "@types/react": "18.2.18", "@types/react-dom": "18.2.7", diff --git a/package.json b/package.json index edc7ab77..79dd3965 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,6 @@ "@testing-library/dom": "9.3.1", "@testing-library/jest-dom": "5.17.0", "@testing-library/react": "14.0.0", - "@types/hast": "2.3.5", "@types/lodash-es": "4.17.8", "@types/react": "18.2.18", "@types/react-dom": "18.2.7", diff --git a/src/serializers/html/plugins/rehype-image.ts b/src/serializers/html/plugins/rehype-image.ts index 23adbb99..c98713f4 100644 --- a/src/serializers/html/plugins/rehype-image.ts +++ b/src/serializers/html/plugins/rehype-image.ts @@ -2,9 +2,9 @@ import { isElement } from 'hast-util-is-element' import { remove } from 'unist-util-remove' import { visit } from 'unist-util-visit' -import type { Node, Parent } from 'hast' import type { Schema } from 'prosemirror-model' import type { Transformer } from 'unified' +import type { Node, Parent } from 'unist' /** * A rehype plugin to remove the wrapping paragraph from images and to remove all inline images if