1 |
|
2 | import * as adapterRender from "./ts/markdown/adapterRender";
|
3 | declare class Vditor {
|
4 |
|
5 | static adapterRender: typeof adapterRender;
|
6 |
|
7 | static previewImage: (oldImgElement: HTMLImageElement, lang?: "en_US" | "fr_FR" | "ja_JP" | "ko_KR" | "ru_RU" | "sv_SE" | "zh_CN" | "zh_TW", theme?: string) => void;
|
8 |
|
9 | static codeRender: (element: HTMLElement) => void;
|
10 |
|
11 | static graphvizRender: (element: HTMLElement, cdn?: string) => void;
|
12 |
|
13 | static highlightRender: (hljsOption?: IHljs, element?: HTMLElement | Document, cdn?: string) => void;
|
14 |
|
15 | static mathRender: (element: HTMLElement, options?: {
|
16 | cdn?: string;
|
17 | math?: IMath;
|
18 | }) => void;
|
19 |
|
20 | static mermaidRender: (element: HTMLElement, cdn: string, theme: string) => void;
|
21 |
|
22 | static markmapRender: (element: HTMLElement, cdn: string, theme: string) => void;
|
23 |
|
24 | static flowchartRender: (element: HTMLElement, cdn?: string) => void;
|
25 |
|
26 | static chartRender: (element: HTMLElement | Document, cdn: string, theme: string) => void;
|
27 |
|
28 | static abcRender: (element?: HTMLElement | Document, cdn?: string) => void;
|
29 |
|
30 | static mindmapRender: (element: HTMLElement | Document, cdn: string, theme: string) => void;
|
31 |
|
32 | static plantumlRender: (element?: HTMLElement | Document, cdn?: string) => void;
|
33 |
|
34 | static outlineRender: (contentElement: HTMLElement, targetElement: Element, vditor?: IVditor) => string;
|
35 |
|
36 | static mediaRender: (element: HTMLElement) => void;
|
37 |
|
38 | static speechRender: (element: HTMLElement, lang?: "en_US" | "fr_FR" | "ja_JP" | "ko_KR" | "ru_RU" | "sv_SE" | "zh_CN" | "zh_TW") => void;
|
39 |
|
40 | static lazyLoadImageRender: (element?: HTMLElement | Document) => boolean;
|
41 |
|
42 | static md2html: (mdText: string, options?: IPreviewOptions) => Promise<string>;
|
43 |
|
44 | static preview: (previewElement: HTMLDivElement, markdown: string, options?: IPreviewOptions) => Promise<void>;
|
45 |
|
46 | static setCodeTheme: (codeTheme: string, cdn?: string) => void;
|
47 |
|
48 | static setContentTheme: (contentTheme: string, path: string) => void;
|
49 | }
|
50 | export default Vditor;
|