markdown-text-editor 0.1.2 → 0.1.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/dist/index.css +1 -1788
- package/dist/index.css.map +1 -1
- package/dist/markdown-text-editor.css +1 -1788
- package/dist/markdown-text-editor.css.map +1 -1
- package/dist/markdown-text-editor.js +1 -1
- package/dist/markdown-text-editor.js.map +1 -1
- package/package.json +4 -3
- package/src/plugins/markdown/Toolbar/tools/PreviewTool.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-text-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A simple JavaScript Markdown editor plugin with real-time preview, and easy integration.",
|
|
5
5
|
"main": "./dist/markdown-text-editor.js",
|
|
6
6
|
"browser": "dist/markdown-text-editor.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"url": "https://github.com/nezanuha/markdown-text-editor/issues"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
+
"@tailwindcss/typography": "~0.5.15",
|
|
51
52
|
"marked": "~15.0.4",
|
|
52
|
-
"tailwindcss": "~3.4.13"
|
|
53
|
-
"@tailwindcss/typography": "~0.5.15"
|
|
53
|
+
"tailwindcss": "~3.4.13"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/core": "^7.25.2",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"autoprefixer": "^10.4.20",
|
|
59
59
|
"babel-loader": "^9.2.1",
|
|
60
60
|
"css-loader": "^7.1.2",
|
|
61
|
+
"cssnano": "^7.0.6",
|
|
61
62
|
"html-webpack-plugin": "^5.6.3",
|
|
62
63
|
"mini-css-extract-plugin": "^2.9.1",
|
|
63
64
|
"postcss": "^8.4.47",
|
|
@@ -4,7 +4,7 @@ import MakeTool from '../MakeTool.js';
|
|
|
4
4
|
class PreviewTool extends MakeTool {
|
|
5
5
|
constructor(editor) {
|
|
6
6
|
// No markdown syntax for preview toggle, so we call the parent constructor with empty values
|
|
7
|
-
super(editor, '
|
|
7
|
+
super(editor, 'Preview');
|
|
8
8
|
this.button = this.createButton(`
|
|
9
9
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="20" height="20"><path d="M11 5H5V19H11V5ZM13 5V19H19V5H13ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"></path></svg>
|
|
10
10
|
`);
|