siyuan/app/src/protyle/method.ts

38 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { graphvizRender } from "./markdown/graphvizRender";
import { highlightRender } from "./markdown/highlightRender";
import { mathRender } from "./markdown/mathRender";
import { mermaidRender } from "./markdown/mermaidRender";
import { flowchartRender } from "./markdown/flowchartRender";
import { chartRender } from "./markdown/chartRender";
import { abcRender } from "./markdown/abcRender";
import { mindmapRender } from "./markdown/mindmapRender";
import { plantumlRender } from "./markdown/plantumlRender";
import "../assets/scss/export.scss";
class Protyle {
/** 对 graphviz 进行渲染 */
public static graphvizRender = graphvizRender;
/** 为 element 中的代码块进行高亮渲染 */
public static highlightRender = highlightRender;
/** 对数学公式进行渲染 */
public static mathRender = mathRender;
/** 流程图/时序图/甘特图渲染 */
public static mermaidRender = mermaidRender;
/** flowchart.js 渲染 */
public static flowchartRender = flowchartRender;
/** 图表渲染 */
public static chartRender = chartRender;
/** 五线谱渲染 */
public static abcRender = abcRender;
/** 脑图渲染 */
public static mindmapRender = mindmapRender;
/** UML 渲染 */
public static plantumlRender = plantumlRender;
}
// 由于 https://github.com/siyuan-note/siyuan/issues/7800先临时解决一下
window.Protyle = Protyle;
export default Protyle;