UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

17 lines (16 loc) 701 B
import { LexicalNode } from 'lexical'; import { IMarkdownWriterContext, MarkdownShortCutService } from '../service/shortcut'; export declare class MarkdownWriterContext implements IMarkdownWriterContext { private before; private after; private children; private markdownService; private processor?; constructor(markdownService?: MarkdownShortCutService); appendLine(line: string): void; newChild(): MarkdownWriterContext; wrap(before: string, after: string): void; addProcessor(processor: (before: string, content: string, after: string) => string): void; toString(): string; processChild(parentCtx: IMarkdownWriterContext, child: LexicalNode): void; }