mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { Node } from 'domhandler'
|
|
import { ReactElement } from 'react'
|
|
|
|
export interface NodeToReactElementTransformer {
|
|
(
|
|
node: Node,
|
|
index: number | string,
|
|
transform?: NodeToReactElementTransformer
|
|
): ReactElement | void | null | string
|
|
}
|