UNPKG

@mkljczk/lexical-remark

Version:

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

14 lines (13 loc) 463 B
/// <reference types="react" /> import { LexicalCommand } from 'lexical'; import { ImagePayload } from './node.js'; type InsertImagePayload = Readonly<ImagePayload>; /** * A command to insert an image. The argument is an {@link ImagePayload}. */ export declare const INSERT_IMAGE_COMMAND: LexicalCommand<InsertImagePayload>; /** * A Lexical plugin to register the INSERT_IMAGE_COMMAND */ export declare const ImagePlugin: () => JSX.Element | null; export {};