vditor 3.9.9 → 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
@@ -309,6 +309,7 @@ new Vditor('vditor', {
309
309
  | style | 可选值参见[Chroma](https://xyproto.github.io/splash/docs/longer/all.html) | `github` |
310
310
  | lineNumber | 是否启用行号 | false |
311
311
  | langs | 自定义指定语言 | [CODE_LANGUAGES](https://github.com/Vanessa219/vditor/blob/53ca8f9a0e511b37b5dae7c6b15eb933e9e02ccd/src/ts/constants.ts#L20) |
312
+ | renderMenu | 渲染菜单按钮 | - |
312
313
 
313
314
  #### options.preview.markdown
314
315
 
@@ -585,7 +586,7 @@ options?: IPreviewOptions {
585
586
  | previewImage(oldImgElement: HTMLImageElement, lang: keyof II18n = "zh_CN", theme = "classic") | 点击图片预览 |
586
587
  | mermaidRender(element: HTMLElement, cdn = options.cdn, theme = options.theme) | 流程图/时序图/甘特图 |
587
588
  | flowchartRender(element: HTMLElement, cdn = options.cdn) | flowchart 渲染 |
588
- | codeRender(element: HTMLElement) | 为 element 中的代码块添加复制按钮 |
589
+ | codeRender(element: HTMLElement, option?: IHljs) | 为 element 中的代码块添加复制按钮 |
589
590
  | chartRender(element: (HTMLElement \| Document) = document, cdn = options.cdn, theme = options.theme) | 图表渲染 |
590
591
  | mindmapRender(element: (HTMLElement \| Document) = document, cdn = options.cdn, theme = options.theme) | 脑图渲染 |
591
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.9 - 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
  *