vditor 3.10.2 → 3.10.3
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 +7 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.min.js +1 -1
- package/dist/method.min.js +1 -1
- package/dist/types/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/index.ts +11 -3
- package/src/ts/export/index.ts +1 -1
- package/src/ts/markdown/plantumlRender.ts +1 -1
- package/src/ts/markdown/previewRender.ts +8 -1
- package/src/ts/preview/index.ts +3 -1
- package/src/ts/util/Options.ts +8 -0
package/README.md
CHANGED
|
@@ -359,6 +359,12 @@ new Vditor('vditor', {
|
|
|
359
359
|
| className | 按钮类名 | - |
|
|
360
360
|
| click(key: string) | 按钮点击回调事件 | - |
|
|
361
361
|
|
|
362
|
+
#### options.preview.render.media
|
|
363
|
+
|
|
364
|
+
| | 说明 | 默认值 |
|
|
365
|
+
|--------|-----------|------|
|
|
366
|
+
| enable | 是否启用多媒体渲染 | true |
|
|
367
|
+
|
|
362
368
|
#### options.image
|
|
363
369
|
|
|
364
370
|
| | 说明 | 默认值 |
|
|
@@ -575,6 +581,7 @@ options?: IPreviewOptions {
|
|
|
575
581
|
lazyLoadImage?: string; // 设置为 Loading 图片地址后将启用图片的懒加载
|
|
576
582
|
markdown?: options.preview.markdown;
|
|
577
583
|
theme?: options.preview.theme;
|
|
584
|
+
render?: options.preview.render;
|
|
578
585
|
renderers?: ILuteRender; // 自定义渲染 https://ld246.com/article/1588412297062
|
|
579
586
|
}
|
|
580
587
|
```
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare class Vditor extends VditorMethod {
|
|
|
9
9
|
* @param options Vditor 参数
|
|
10
10
|
*/
|
|
11
11
|
constructor(id: string | HTMLElement, options?: IOptions);
|
|
12
|
+
private showErrorTip;
|
|
12
13
|
/** 设置主题 */
|
|
13
14
|
setTheme(theme: "dark" | "classic", contentTheme?: string, codeTheme?: string, contentThemePath?: string): void;
|
|
14
15
|
/** 获取 Markdown 内容 */
|