mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 07:23:23 +08:00
添加quickcommand.markdownParse接口,可视化编排支持解析markdown
This commit is contained in:
12
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
12
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
@@ -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,可选直接下载到指定路径,或者弹出对话框选择下载路径
|
||||
*
|
||||
|
Reference in New Issue
Block a user