mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
4c5efeafc8
commit
c68fbea606
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
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 { sanitize } from 'dompurify'
|
||||
import React, { Fragment, useMemo } from 'react'
|
||||
|
|
|
@ -11,7 +11,7 @@ import type {
|
|||
ValidReactDomElement
|
||||
} 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 type { Element, Node } from 'domhandler'
|
||||
import { isTag } from 'domhandler'
|
||||
|
|
Loading…
Reference in a new issue