markdown-text-editor 0.0.20-beta.1 → 0.0.21-beta.2
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.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- 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 +2 -1
- package/src/plugins/index.js +1 -1
- package/src/plugins/markdown/editor.js +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-text-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21-beta.2",
|
|
4
4
|
"description": "A powerful, easy-to-use Markdown editor with a real-time preview, syntax highlighting. Ideal for developers, writers, and content creators who need a seamless, interactive writing experience with full Markdown support.",
|
|
5
5
|
"main": "./dist/markdown-text-editor.js",
|
|
6
|
+
"browser": "dist/markdown-text-editor.js",
|
|
6
7
|
"style": "./dist/markdown-text-editor.css",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist/**/*",
|
package/src/plugins/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// main.js
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as MarkdownEditor } from './markdown/editor';
|
|
@@ -8,7 +8,7 @@ marked.setOptions({
|
|
|
8
8
|
breaks: true
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class MarkdownEditor {
|
|
12
12
|
constructor(selector, options = {}) {
|
|
13
13
|
this.usertextarea = typeof selector === 'string' ? document.querySelector(selector) : selector;
|
|
14
14
|
this.options = options;
|
|
@@ -137,4 +137,4 @@ class markdownEditor {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export default
|
|
140
|
+
export default MarkdownEditor;
|