lexical-remark
Version:
This package contains Markdown helpers and functionality for Lexical using remark-parse.
15 lines (14 loc) • 563 B
TypeScript
import { Root } from 'mdast';
import { Plugin } from 'unified';
/**
* A remark plugin to enrich an mdast node tree by converting paragraph nodes containing only a Attachment url into Attachment nodes
*/
export declare const remarkAttachment: Plugin<[{
prefix: string;
}], string, Root>;
/**
* A remark plugin to simplify an mdast node tree by converting Attachment nodes back to paragraph nodes
*/
export declare function attachmentRemark(this: any): typeof convertToAttachmentLinks;
declare function convertToAttachmentLinks(tree: any): void;
export {};