vditor 3.9.8 → 3.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -217,6 +217,7 @@ Markdown 输出的 HTML 所展现的外观。内置 ant-design, light,dark,w
217
217
  | value | 编辑器初始化值 | '' |
218
218
  | theme | 主题:classic, dark | 'classic' |
219
219
  | icon | 图标风格:ant, material | 'ant' |
220
+ | customRenders: {language: string, render: (element: HTMLElement, vditor: IVditor) => void}[] | 自定义渲染器 | [] |
220
221
 
221
222
  #### options.toolbar
222
223
 
@@ -308,6 +309,7 @@ new Vditor('vditor', {
308
309
  | style | 可选值参见[Chroma](https://xyproto.github.io/splash/docs/longer/all.html) | `github` |
309
310
  | lineNumber | 是否启用行号 | false |
310
311
  | langs | 自定义指定语言 | [CODE_LANGUAGES](https://github.com/Vanessa219/vditor/blob/53ca8f9a0e511b37b5dae7c6b15eb933e9e02ccd/src/ts/constants.ts#L20) |
312
+ | renderMenu | 渲染菜单按钮 | - |
311
313
 
312
314
  #### options.preview.markdown
313
315
 
@@ -584,7 +586,7 @@ options?: IPreviewOptions {
584
586
  | previewImage(oldImgElement: HTMLImageElement, lang: keyof II18n = "zh_CN", theme = "classic") | 点击图片预览 |
585
587
  | mermaidRender(element: HTMLElement, cdn = options.cdn, theme = options.theme) | 流程图/时序图/甘特图 |
586
588
  | flowchartRender(element: HTMLElement, cdn = options.cdn) | flowchart 渲染 |
587
- | codeRender(element: HTMLElement) | 为 element 中的代码块添加复制按钮 |
589
+ | codeRender(element: HTMLElement, option?: IHljs) | 为 element 中的代码块添加复制按钮 |
588
590
  | chartRender(element: (HTMLElement \| Document) = document, cdn = options.cdn, theme = options.theme) | 图表渲染 |
589
591
  | mindmapRender(element: (HTMLElement \| Document) = document, cdn = options.cdn, theme = options.theme) | 脑图渲染 |
590
592
  | plantumlRender(element: (HTMLElement \| Document) = document, cdn = options.cdn) | plantuml 渲染 |
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vditor v3.9.8 - A markdown editor written in TypeScript.
2
+ * Vditor v3.10.1 - A markdown editor written in TypeScript.
3
3
  *
4
4
  * MIT License
5
5
  *