@data_wise/hyper-markdown 1.2.5 → 1.3.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 +50 -0
- package/dist/hyper-markdown.css +1 -1
- package/dist/hyper-markdown.es.js +98354 -84419
- package/dist/hyper-markdown.umd.js +738 -688
- package/package.json +14 -3
- package/types/index.d.ts +13 -1
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data_wise/hyper-markdown",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A powerful Vue 3 Markdown editor with rich features including ECharts, Mermaid, KaTeX, and dataset support",
|
|
6
|
-
"keywords": [
|
|
6
|
+
"keywords": [
|
|
7
|
+
"vue",
|
|
8
|
+
"markdown",
|
|
9
|
+
"editor",
|
|
10
|
+
"echarts",
|
|
11
|
+
"mermaid",
|
|
12
|
+
"katex",
|
|
13
|
+
"datasets"
|
|
14
|
+
],
|
|
7
15
|
"author": "data_wise",
|
|
8
16
|
"license": "MIT",
|
|
9
17
|
"repository": {
|
|
@@ -48,16 +56,19 @@
|
|
|
48
56
|
"@codemirror/state": "^6.5.2",
|
|
49
57
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
50
58
|
"@codemirror/view": "^6.38.6",
|
|
59
|
+
"docx": "^9.5.1",
|
|
51
60
|
"echarts": "^5.4.3",
|
|
61
|
+
"file-saver": "^2.0.5",
|
|
52
62
|
"github-markdown-css": "^5.8.1",
|
|
53
63
|
"highlight.js": "^11.11.1",
|
|
64
|
+
"html2canvas": "^1.4.1",
|
|
54
65
|
"katex": "^0.16.9",
|
|
55
66
|
"markdown-it": "^14.0.0",
|
|
56
67
|
"markdown-it-container": "^4.0.0",
|
|
57
68
|
"markdown-it-echarts": "^0.1.0",
|
|
58
69
|
"markdown-it-emoji": "^3.0.0",
|
|
59
70
|
"markdown-it-footnote": "^4.0.0",
|
|
60
|
-
"markdown-it-katex": "^
|
|
71
|
+
"@vscode/markdown-it-katex": "^1.1.2",
|
|
61
72
|
"markdown-it-mermaid": "^0.2.5",
|
|
62
73
|
"markdown-it-task-lists": "^2.1.1",
|
|
63
74
|
"mermaid": "^11.4.1",
|
package/types/index.d.ts
CHANGED
|
@@ -22,8 +22,20 @@ declare module '@datawise/hyper-markdown' {
|
|
|
22
22
|
theme?: Theme
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
// 导出结果类型
|
|
26
|
+
interface ExportResult {
|
|
27
|
+
success: boolean
|
|
28
|
+
message: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// MarkdownEditor 组件实例方法
|
|
32
|
+
interface MarkdownEditorMethods {
|
|
33
|
+
exportToWord(filename?: string): Promise<ExportResult>
|
|
34
|
+
getErrors(): Array<any>
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
// 导出主组件
|
|
26
|
-
export const MarkdownEditor: Component<MarkdownEditorProps>
|
|
38
|
+
export const MarkdownEditor: Component<MarkdownEditorProps> & MarkdownEditorMethods
|
|
27
39
|
|
|
28
40
|
// 导出工具函数
|
|
29
41
|
export function createMarkdownItInstance(options?: any): any
|