fix: migrate code to html-to-react v2

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-05-10 16:19:22 +02:00
parent 4c5efeafc8
commit c68fbea606
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only * SPDX-License-Identifier: AGPL-3.0-only
*/ */
import type { ParserOptions } from '@hedgedoc/html-to-react' import type { ParserOptions } from '@hedgedoc/html-to-react'
import convertHtmlToReact from '@hedgedoc/html-to-react' import { convertHtmlToReact } from '@hedgedoc/html-to-react'
import type DOMPurify from 'dompurify' import type DOMPurify from 'dompurify'
import { sanitize } from 'dompurify' import { sanitize } from 'dompurify'
import React, { Fragment, useMemo } from 'react' import React, { Fragment, useMemo } from 'react'

View file

@ -11,7 +11,7 @@ import type {
ValidReactDomElement ValidReactDomElement
} from '../../replace-components/component-replacer' } from '../../replace-components/component-replacer'
import { DO_NOT_REPLACE } from '../../replace-components/component-replacer' import { DO_NOT_REPLACE } from '../../replace-components/component-replacer'
import { convertNodeToReactElement } from '@hedgedoc/html-to-react/dist/convertNodeToReactElement' import { convertNodeToReactElement } from '@hedgedoc/html-to-react'
import { Optional } from '@mrdrogdrog/optional' import { Optional } from '@mrdrogdrog/optional'
import type { Element, Node } from 'domhandler' import type { Element, Node } from 'domhandler'
import { isTag } from 'domhandler' import { isTag } from 'domhandler'