添加quickcommand.markdownParse接口,可视化编排支持解析markdown

This commit is contained in:
fofolee
2025-02-20 20:38:51 +08:00
parent 196d54a993
commit 60ac9fbc81
10 changed files with 60 additions and 38 deletions

View File

@@ -260,6 +260,18 @@ interface quickcommandApi {
*/
htmlParse(html: string): object;
/**
* 将给定的markdown字符串解析为html字符串
*
* @param markdown 需要解析的markdown文本
* ```js
* quickcommand.markdownParse("# 这是一个标题").then(html => {
* console.log(html)
* })
* ```
*/
markdownParse(markdown: string): string;
/**
* 下载文件,并返回文件的 Buffer可选直接下载到指定路径或者弹出对话框选择下载路径
*