|
@@ -293,6 +293,7 @@ new Vditor('vditor', {
|
|
|
| style | For optional values, see [Chroma](https://xyproto.github.io/splash/docs/longer/all.html) | `github` |
|
|
|
| lineNumber | Whether to enable line number | false |
|
|
|
| langs | Custom languages | [CODE_LANGUAGES](https://github.com/Vanessa219/vditor/blob/53ca8f9a0e511b37b5dae7c6b15eb933e9e02ccd/src/ts/constants.ts#L20) |
|
|
|
+| renderMenu | render menu button | - |
|
|
|
|
|
|
#### options.preview.markdown
|
|
|
|
|
@@ -537,7 +538,7 @@ options?: IPreviewOptions {
|
|
|
| previewImage(oldImgElement: HTMLImageElement, lang: keyof II18n = "zh_CN", theme = "classic") | Click on the image to preview |
|
|
|
| mermaidRender(element: HTMLElement, cdn = options.cdn, theme = options.theme) | flowchart/sequence diagram/gantt diagram rendering |
|
|
|
| flowchartRender(element: HTMLElement, cdn = options.cdn) | flowchart.js rendering |
|
|
|
-| codeRender(element: HTMLElement) | Add a copy button for the code block in element |
|
|
|
+| codeRender(element: HTMLElement, option?: IHljs) | Add a copy button for the code block in element |
|
|
|
| chartRender(element: (HTMLElement\| Document) = document, cdn = options.cdn, theme = options.theme) | Chart rendering |
|
|
|
| plantumlRender(element: (HTMLElement\| Document) = document, cdn = options.cdn) | plantuml rendering |
|
|
|
| abcRender(element: (HTMLElement\| Document) = document, cdn = options.cdn) | Stave rendering |
|