markdown-text-editor 0.1.2 → 0.1.4
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 +24 -2
- 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 +14 -5
- package/src/plugins/markdown/Toolbar/tools/PreviewTool.js +1 -1
- package/src/plugins/markdown/preview.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.4",
|
|
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",
|
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
"markdown",
|
|
28
28
|
"mde",
|
|
29
29
|
"markdown js library",
|
|
30
|
+
"markdown js plugin",
|
|
30
31
|
"editor",
|
|
31
32
|
"markdown editor",
|
|
33
|
+
"Simple Markdown editor js plugin",
|
|
32
34
|
"text editor",
|
|
33
35
|
"markdown preview",
|
|
34
36
|
"markdown syntax",
|
|
@@ -39,7 +41,13 @@
|
|
|
39
41
|
"code editor",
|
|
40
42
|
"editor plugin",
|
|
41
43
|
"text formatting",
|
|
42
|
-
"markdown-text-editor"
|
|
44
|
+
"markdown-text-editor",
|
|
45
|
+
"Tailwind css markdown editor",
|
|
46
|
+
"Tailwind css markdown",
|
|
47
|
+
"WYSIWYG-style markdown editor",
|
|
48
|
+
"Simple Markdown",
|
|
49
|
+
"Responsive markdown js editor",
|
|
50
|
+
"RTL Support markdown editor"
|
|
43
51
|
],
|
|
44
52
|
"author": "Nezanuha",
|
|
45
53
|
"license": "MIT",
|
|
@@ -48,22 +56,23 @@
|
|
|
48
56
|
"url": "https://github.com/nezanuha/markdown-text-editor/issues"
|
|
49
57
|
},
|
|
50
58
|
"dependencies": {
|
|
51
|
-
"marked": "~15.0.
|
|
52
|
-
"tailwindcss": "~3.4.13",
|
|
53
|
-
"@tailwindcss/typography": "~0.5.15"
|
|
59
|
+
"marked": "~15.0.7"
|
|
54
60
|
},
|
|
55
61
|
"devDependencies": {
|
|
56
62
|
"@babel/core": "^7.25.2",
|
|
57
63
|
"@babel/preset-env": "^7.25.4",
|
|
64
|
+
"@tailwindcss/typography": "^0.5.15",
|
|
58
65
|
"autoprefixer": "^10.4.20",
|
|
59
66
|
"babel-loader": "^9.2.1",
|
|
60
67
|
"css-loader": "^7.1.2",
|
|
68
|
+
"cssnano": "^7.0.6",
|
|
61
69
|
"html-webpack-plugin": "^5.6.3",
|
|
62
70
|
"mini-css-extract-plugin": "^2.9.1",
|
|
63
71
|
"postcss": "^8.4.47",
|
|
64
72
|
"postcss-loader": "^8.1.1",
|
|
65
73
|
"rimraf": "^6.0.1",
|
|
66
74
|
"style-loader": "^4.0.0",
|
|
75
|
+
"tailwindcss": "^3.4.17",
|
|
67
76
|
"terser-webpack-plugin": "^5.3.11",
|
|
68
77
|
"webpack": "^5.95.0",
|
|
69
78
|
"webpack-cli": "^6.0.1",
|
|
@@ -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
|
`);
|
|
@@ -4,7 +4,7 @@ class Preview {
|
|
|
4
4
|
this.previewContainer = document.createElement('div');
|
|
5
5
|
this.previewContainer.className = 'preview-wrapper bg-white dark:bg-stone-800 p-2 hidden';
|
|
6
6
|
this.previewContent = document.createElement('div');
|
|
7
|
-
this.previewContent.className = 'preview-content prose prose-sm md:prose-base dark:prose-invert p-1.5 overflow-y-auto h-[90lvh] max-w-
|
|
7
|
+
this.previewContent.className = 'preview-content prose prose-sm md:prose-base dark:prose-invert p-1.5 overflow-y-auto h-[90lvh] max-w-full';
|
|
8
8
|
this.previewContainer.appendChild(this.previewContent);
|
|
9
9
|
container.appendChild(this.previewContainer);
|
|
10
10
|
}
|