/** * remark 插件:将 "HTML 注释(图表配置)+ 表格" 组合转为 chart 代码块。 * * - 在 MarkdownEditor 中,`parseTableOrChart` 负责此逻辑 * - 在 MarkdownRenderer 中,此插件在 mdast 层面完成等价转换 * * 匹配模式示例: * ``` * * | month | value | * |-------|-------| * | 2024 | 100 | * ``` * * 转换后等价于: * ````md * ```chart * {"config":[{"chartType":"line","x":"month","y":"value"}], * "columns":[...],"dataSource":[...]} * ``` * ```` * * 配置项中所有 `chartType` 都为 `"table"` 时跳过转换(保留原表格渲染)。 */ export declare const remarkChartFromComment: () => (tree: any) => void;