markdown-text-editor 1.7.0 → 1.8.0
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/LICENSE +1 -1
- package/README.md +17 -10
- package/dist/markdown-text-editor.es.js +829 -646
- package/dist/markdown-text-editor.es.js.map +1 -1
- package/dist/markdown-text-editor.min.js +73 -71
- package/dist/markdown-text-editor.min.js.map +1 -1
- package/dist/markdown-text-editor.umd.js +73 -71
- package/dist/markdown-text-editor.umd.js.map +1 -1
- package/package.json +13 -8
- package/types/index.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-text-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "A markdown editor that enhances your textarea instead of replacing it, so form submission, validation and required fields keep working. WYSIWYG hybrid mode, live preview, find and replace, RTL, TypeScript types. Works with any backend.",
|
|
6
6
|
"funding": "https://ko-fi.com/nezanuha",
|
|
7
7
|
"main": "./dist/markdown-text-editor.umd.js",
|
|
8
8
|
"module": "./dist/markdown-text-editor.es.js",
|
|
@@ -60,7 +60,12 @@
|
|
|
60
60
|
"csp compatible",
|
|
61
61
|
"form markdown editor",
|
|
62
62
|
"live preview",
|
|
63
|
-
"mde"
|
|
63
|
+
"mde",
|
|
64
|
+
"typescript",
|
|
65
|
+
"markdown-it",
|
|
66
|
+
"template editor",
|
|
67
|
+
"merge tags",
|
|
68
|
+
"placeholders"
|
|
64
69
|
],
|
|
65
70
|
"author": "Nezanuha",
|
|
66
71
|
"license": "MIT",
|
|
@@ -69,20 +74,20 @@
|
|
|
69
74
|
"url": "https://github.com/nezanuha/markdown-text-editor/issues"
|
|
70
75
|
},
|
|
71
76
|
"dependencies": {
|
|
72
|
-
"dompurify": "^3.4.
|
|
73
|
-
"marked": "~18.0.
|
|
77
|
+
"dompurify": "^3.4.16",
|
|
78
|
+
"marked": "~18.0.14"
|
|
74
79
|
},
|
|
75
80
|
"devDependencies": {
|
|
76
81
|
"@tailwindcss/postcss": "^4.3.3",
|
|
77
82
|
"@tailwindcss/typography": "^0.5.20",
|
|
78
83
|
"@tailwindcss/vite": "^4.3.3",
|
|
79
84
|
"diff": "^9.0.0",
|
|
80
|
-
"frutjam": "^2.2.
|
|
81
|
-
"happy-dom": "^20.14.
|
|
85
|
+
"frutjam": "^2.2.6",
|
|
86
|
+
"happy-dom": "^20.14.5",
|
|
82
87
|
"postcss": "^8.5.28",
|
|
83
88
|
"tailwindcss": "^4.3.3",
|
|
84
89
|
"typescript": "^7.0.2",
|
|
85
|
-
"vite": "^8.3.
|
|
90
|
+
"vite": "^8.3.1",
|
|
86
91
|
"vite-plugin-css-injected-by-js": "^5.0.2"
|
|
87
92
|
},
|
|
88
93
|
"types": "./types/index.d.ts"
|
package/types/index.d.ts
CHANGED
|
@@ -113,6 +113,15 @@ export interface MarkdownEditorOptions {
|
|
|
113
113
|
/** Called on every content change with the current markdown. */
|
|
114
114
|
onChange?: (value: string) => void;
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Translations for the editor's own interface, keyed by the English text:
|
|
118
|
+
* tooltips, menu items, modal fields and buttons. Anything not listed stays
|
|
119
|
+
* in English. CSS class names are unaffected.
|
|
120
|
+
*
|
|
121
|
+
* @example labels: { Bold: 'Negrita', 'Insert variable': 'Insertar variable' }
|
|
122
|
+
*/
|
|
123
|
+
labels?: Record<string, string>;
|
|
124
|
+
|
|
116
125
|
/**
|
|
117
126
|
* Replaces the markdown parser used for the preview. Must be synchronous and
|
|
118
127
|
* return an HTML string. Affects the preview pane only; hybrid mode's live
|