mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-26 19:49:02 +08:00
markdown编辑器增加cherryMarkdown
* 使用cherryMarkdown替换editorMd * 支持历史&边栏 * 优化代码&支持html格式渲染为预览格式&保存主题配置 * 修复drawio异常 * 优化drawio异常改法 * 自定义提示面板主题颜色 * drawio增加样式,并且更新到最新版本 * 增加代码块复制功能&&修复drawio渲染图片过大&&drawio生成图片背景改为透明 * 恢复原有markdown编辑器,新增cherry markdown编辑器 * 修复复制功能异常 * 修复drawio偶尔无法编辑 --------- Co-authored-by: zhangsheng.93 <zhangsheng.93@bytedance.com>
This commit is contained in:
31
static/cherry/addons/cherry-code-block-mermaid-plugin.d.ts
vendored
Normal file
31
static/cherry/addons/cherry-code-block-mermaid-plugin.d.ts
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
export default class MermaidCodeEngine {
|
||||
static TYPE: string;
|
||||
static install(cherryOptions: any, ...args: any[]): void;
|
||||
constructor(mermaidOptions?: {});
|
||||
mermaidAPIRefs: any;
|
||||
options: {
|
||||
theme: string;
|
||||
altFontFamily: string;
|
||||
fontFamily: string;
|
||||
themeCSS: string;
|
||||
flowchart: {
|
||||
useMaxWidth: boolean;
|
||||
};
|
||||
sequence: {
|
||||
useMaxWidth: boolean;
|
||||
};
|
||||
startOnLoad: boolean;
|
||||
logLevel: number;
|
||||
};
|
||||
dom: any;
|
||||
mermaidCanvas: any;
|
||||
mountMermaidCanvas($engine: any): void;
|
||||
/**
|
||||
* 转换svg为img,如果出错则直出svg
|
||||
* @param {string} svgCode
|
||||
* @param {string} graphId
|
||||
* @returns {string}
|
||||
*/
|
||||
convertMermaidSvgToImg(svgCode: string, graphId: string): string;
|
||||
render(src: any, sign: any, $engine: any): boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user