UNPKG

@mkljczk/lexical-remark

Version:

This package contains Markdown helpers and functionality for Lexical using remark-parse.

9 lines (8 loc) 392 B
import type { LexicalNode } from 'lexical'; import { Node } from '../../types.js'; export type Handler<NodeType extends LexicalNode = LexicalNode> = (node: NodeType, { rootHandler, }: { rootHandler: Handler; }) => Node | void; export declare const exportToRemarkTree: (tree: LexicalNode, { handlers }: { handlers?: Record<string, Handler<LexicalNode>> | undefined; }) => void | Node;