md-editor-v3
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -29,2 +29,3 @@ import { PropType, CSSProperties } from 'vue'; | ||
mermaid?: string; | ||
katex?: string; | ||
revoke?: string; | ||
@@ -84,2 +85,6 @@ next?: string; | ||
}; | ||
katex?: { | ||
inline: string; | ||
block: string; | ||
}; | ||
} | ||
@@ -278,2 +283,17 @@ export interface StaticTextDefault { | ||
}; | ||
katex: { | ||
type: ObjectConstructor; | ||
}; | ||
katexJs: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
katexCss: { | ||
type: PropType<string>; | ||
default: string; | ||
}; | ||
noKatex: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{ | ||
@@ -322,2 +342,6 @@ modelValue?: unknown; | ||
placeholder?: unknown; | ||
katex?: unknown; | ||
katexJs?: unknown; | ||
katexCss?: unknown; | ||
noKatex?: unknown; | ||
} & { | ||
@@ -362,4 +386,8 @@ editorId: string; | ||
placeholder: string; | ||
katexJs: string; | ||
katexCss: string; | ||
noKatex: boolean; | ||
} & { | ||
mermaid?: Record<string, any> | undefined; | ||
katex?: Record<string, any> | undefined; | ||
onSave?: ((v: string) => void) | undefined; | ||
@@ -409,3 +437,6 @@ onChange?: ((v: string) => void) | undefined; | ||
placeholder: string; | ||
katexJs: string; | ||
katexCss: string; | ||
noKatex: boolean; | ||
}>; | ||
export default _default; |
{ | ||
"name": "md-editor-v3", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"keywords": [ | ||
@@ -52,2 +52,3 @@ "vue", | ||
"@babel/preset-env": "^7.14.7", | ||
"@types/katex": "^0.11.1", | ||
"@types/marked": "^4.0.1", | ||
@@ -69,2 +70,3 @@ "@types/node": "^15.12.5", | ||
"highlight.js": "^11.0.1", | ||
"katex": "^0.15.1", | ||
"less": "^4.1.1", | ||
@@ -71,0 +73,0 @@ "marked": "^4.0.7", |
@@ -7,3 +7,3 @@ # md-editor-v3 | ||
Markdown editor for vue3, developed by `jsx` and `typescript`. | ||
Markdown editor for vue3, developed in `jsx` and `typescript`. | ||
@@ -27,2 +27,3 @@ - Documentation and demo:[Go](https://imzbf.github.io/md-editor-v3) | ||
- `mermaid`(>=1.3.0). | ||
- `katex` mathematical formula(>=1.9.0). | ||
@@ -76,2 +77,6 @@ > More features are developing, if you have some ideas or find issues, please tell it to me~ | ||
| placeholder<sup>v1.8.0</sup> | String | '' | | | ||
| katex<sup>v1.9.0</sup> | Object | undefined | `katex` instance(you need import css by yourself.) | | ||
| katexJs<sup>v1.9.0</sup> | String | [katex.min.js@0.15.1](https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js) | katexJs url | | ||
| katexCss<sup>v1.9.0</sup> | String | [katex.min.css@0.15.1](https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css) | katexCss url | | ||
| noKatex<sup>v1.9.0</sup> | Boolean | false | do not use katex | | ||
@@ -100,2 +105,3 @@ [toolbars] | ||
'mermaid', | ||
'katex', | ||
'-', | ||
@@ -139,2 +145,3 @@ 'revoke', | ||
mermaid?: string; | ||
katex?: string; | ||
revoke?: string; | ||
@@ -202,2 +209,9 @@ next?: string; | ||
}; | ||
// 1.9.0 | ||
katex?: { | ||
// formula inline | ||
inline: string; | ||
// formula block | ||
block: string; | ||
}; | ||
} | ||
@@ -204,0 +218,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
328047
6476
333
31