@vmz/plugin-markdown-it 0.2.2 → 0.2.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 CHANGED
@@ -1,3 +1,3 @@
1
1
  # @vmz/plugin-markdown-it
2
2
 
3
- VMZ package 0.2.2.
3
+ VMZ package 0.2.4.
@@ -1,19 +1,18 @@
1
1
  <template>
2
- <div class="markdown-host" v-html="format(source)"></div>
2
+ <div v-html="format(source)" class="markdown-host" />
3
3
  </template>
4
-
5
4
  <script client>
6
- import { renderMarkdown } from '@vmz/plugin-markdown-it/runtime';
5
+ import { renderMarkdown } from "@vmz/plugin-markdown-it/runtime";
7
6
 
8
7
  function format(source) {
9
- try {
10
- return renderMarkdown(source ?? '');
11
- } catch {
12
- return '';
13
- }
8
+ try {
9
+ return renderMarkdown(source ?? "");
10
+ } catch {
11
+ return "";
12
+ }
14
13
  }
15
14
 
16
15
  export default class MarkdownIt {
17
- public source: string = '';
16
+ public source: string = "";
18
17
  }
19
18
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/plugin-markdown-it",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "VMZ markdown-it adapter — MarkdownIt + engines.markdown registration",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "dependencies": {
21
- "@vmz/plugin": "0.2.2",
21
+ "@vmz/plugin": "0.2.4",
22
22
  "markdown-it": "^14.1.0"
23
23
  },
24
24
  "keywords": [