feat: add vditor locally
This commit is contained in:
1
public/vditor/ts/markdown/SMILESRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/SMILESRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const SMILESRender: (element: (HTMLElement | Document), cdn: string, theme: string) => void;
|
||||
1
public/vditor/ts/markdown/abcRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/abcRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const abcRender: (element?: (HTMLElement | Document), cdn?: string) => void;
|
||||
41
public/vditor/ts/markdown/adapterRender.d.ts
vendored
Normal file
41
public/vditor/ts/markdown/adapterRender.d.ts
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
export declare const mathRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const SMILESRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const mermaidRenderAdapter: {
|
||||
/** 不仅要返回code,并且需要将 code 设置为 el 的 innerHTML */
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const markmapRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const mindmapRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (el: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const chartRenderAdapter: {
|
||||
getCode: (el: HTMLElement) => string;
|
||||
getElements: (el: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const abcRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (el: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const graphvizRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (el: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const flowchartRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (el: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
export declare const plantumlRenderAdapter: {
|
||||
getCode: (el: Element) => string;
|
||||
getElements: (el: HTMLElement | Document) => NodeListOf<Element>;
|
||||
};
|
||||
1
public/vditor/ts/markdown/anchorRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/anchorRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const anchorRender: (type: number) => void;
|
||||
1
public/vditor/ts/markdown/chartRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/chartRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const chartRender: (element: (HTMLElement | Document), cdn: string, theme: string) => void;
|
||||
1
public/vditor/ts/markdown/codeRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/codeRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const codeRender: (element: HTMLElement, option?: IHljs) => void;
|
||||
1
public/vditor/ts/markdown/flowchartRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/flowchartRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const flowchartRender: (element: HTMLElement, cdn?: string) => void;
|
||||
1
public/vditor/ts/markdown/getHTML.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/getHTML.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const getHTML: (vditor: IVditor) => string;
|
||||
1
public/vditor/ts/markdown/getMarkdown.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/getMarkdown.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const getMarkdown: (vditor: IVditor) => string;
|
||||
1
public/vditor/ts/markdown/graphvizRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/graphvizRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const graphvizRender: (element: HTMLElement, cdn?: string) => void;
|
||||
1
public/vditor/ts/markdown/highlightRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/highlightRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const highlightRender: (hljsOption?: IHljs, element?: HTMLElement | Document, cdn?: string) => void;
|
||||
6
public/vditor/ts/markdown/lazyLoadImageRender.d.ts
vendored
Normal file
6
public/vditor/ts/markdown/lazyLoadImageRender.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
vditorImageIntersectionObserver: IntersectionObserver;
|
||||
}
|
||||
}
|
||||
export declare const lazyLoadImageRender: (element?: (HTMLElement | Document)) => boolean;
|
||||
1
public/vditor/ts/markdown/markmapRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/markmapRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const markmapRender: (element?: (HTMLElement | Document), cdn?: string) => void;
|
||||
9
public/vditor/ts/markdown/mathRender.d.ts
vendored
Normal file
9
public/vditor/ts/markdown/mathRender.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
MathJax: any;
|
||||
}
|
||||
}
|
||||
export declare const mathRender: (element?: (HTMLElement | Document), options?: {
|
||||
cdn?: string;
|
||||
math?: IMath;
|
||||
}) => void;
|
||||
1
public/vditor/ts/markdown/mediaRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/mediaRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const mediaRender: (element: HTMLElement) => void;
|
||||
1
public/vditor/ts/markdown/mermaidRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/mermaidRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const mermaidRender: (element: (HTMLElement | Document), cdn: string, theme: string) => void;
|
||||
1
public/vditor/ts/markdown/mindmapRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/mindmapRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const mindmapRender: (element: (HTMLElement | Document), cdn: string, theme: string) => void;
|
||||
1
public/vditor/ts/markdown/outlineRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/outlineRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const outlineRender: (contentElement: HTMLElement, targetElement: Element, vditor?: IVditor) => string;
|
||||
1
public/vditor/ts/markdown/plantumlRender.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/plantumlRender.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const plantumlRender: (element?: (HTMLElement | Document), cdn?: string) => void;
|
||||
2
public/vditor/ts/markdown/previewRender.d.ts
vendored
Normal file
2
public/vditor/ts/markdown/previewRender.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const md2html: (mdText: string, options?: IPreviewOptions) => Promise<string>;
|
||||
export declare const previewRender: (previewElement: HTMLDivElement, markdown: string, options?: IPreviewOptions) => Promise<void>;
|
||||
1
public/vditor/ts/markdown/setLute.d.ts
vendored
Normal file
1
public/vditor/ts/markdown/setLute.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const setLute: (options: ILuteOptions) => Lute;
|
||||
6
public/vditor/ts/markdown/speechRender.d.ts
vendored
Normal file
6
public/vditor/ts/markdown/speechRender.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
declare global {
|
||||
interface Window {
|
||||
vditorSpeechRange: Range;
|
||||
}
|
||||
}
|
||||
export declare const speechRender: (element: HTMLElement, lang?: keyof II18n) => void;
|
||||
Reference in New Issue
Block a user