import { PluginWithOptions } from "@mdit/helper"; import { RendererRule } from "markdown-it"; interface MarkdownItAlertOptions { /** * Allowed alert names * * 允许的警告名称 * * @default ["tip", "warning", "caution", "important", "note"] */ alertNames?: string[]; /** * Whether handle deep alert syntax * * 是否允许深层的警告语法 * * @default false */ deep?: boolean; /** * Hint opening tag render function * * 提示开始标签渲染函数 */ openRenderer?: RendererRule; /** * Hint closing tag render function * * 提示结束标签渲染函数 */ closeRenderer?: RendererRule; /** * Hint title render function * * 提示标题渲染函数 */ titleRenderer?: RendererRule; } /** * Alert plugin, rendering `> [!tip]` style blockquotes as alerts * * 提示框插件,将 `> [!tip]` 形式的引用块渲染为提示框 * * @param md - MarkdownIt instance / MarkdownIt 实例 * @param options - Alert options / 提示框选项 */ export declare const alert: PluginWithOptions; export type { MarkdownItAlertOptions };