@md-plugins/vite-md-plugin 0.1.0-alpha.16 → 0.1.0-alpha.18
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.mjs +4 -4
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -164,12 +164,12 @@ function createNav(id, env, flatMenu) {
|
|
|
164
164
|
if (flatMenu) {
|
|
165
165
|
const menuItem = flatMenu[id];
|
|
166
166
|
const nav = [];
|
|
167
|
-
if (menuItem !==
|
|
167
|
+
if (menuItem !== undefined) {
|
|
168
168
|
const { prev, next } = menuItem;
|
|
169
|
-
if (prev !==
|
|
169
|
+
if (prev !== undefined) {
|
|
170
170
|
nav.push({ ...prev, classes: "markdown-page__related--left" });
|
|
171
171
|
}
|
|
172
|
-
if (next !==
|
|
172
|
+
if (next !== undefined) {
|
|
173
173
|
nav.push({ ...next, classes: "markdown-page__related--right" });
|
|
174
174
|
}
|
|
175
175
|
}
|
|
@@ -275,7 +275,7 @@ function mdParse(code, id, prefix, menu) {
|
|
|
275
275
|
env.pageScripts.add("import MarkdownTree from 'src/.q-press/components/MarkdownTree.vue'");
|
|
276
276
|
}
|
|
277
277
|
const results = md.render(code, env);
|
|
278
|
-
if (env.frontmatter.examples !==
|
|
278
|
+
if (env.frontmatter.examples !== undefined) {
|
|
279
279
|
env.pageScripts.add(
|
|
280
280
|
"import MarkdownExample from 'src/.q-press/components/MarkdownExample.vue'"
|
|
281
281
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@md-plugins/vite-md-plugin",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.18",
|
|
4
4
|
"description": "A very opinionated Vite plugin for @md-plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"markdown-it": "^14.1.0",
|
|
39
|
-
"@md-plugins/md-plugin-codeblocks": "0.1.0-alpha.
|
|
40
|
-
"@md-plugins/md-plugin-
|
|
41
|
-
"@md-plugins/md-plugin-frontmatter": "0.1.0-alpha.
|
|
42
|
-
"@md-plugins/md-plugin-
|
|
43
|
-
"@md-plugins/md-plugin-image": "0.1.0-alpha.
|
|
44
|
-
"@md-plugins/md-plugin-
|
|
45
|
-
"@md-plugins/md-plugin-imports": "0.1.0-alpha.
|
|
46
|
-
"@md-plugins/md-plugin-
|
|
47
|
-
"@md-plugins/md-plugin-
|
|
48
|
-
"@md-plugins/
|
|
49
|
-
"@md-plugins/md-plugin-
|
|
50
|
-
"@md-plugins/
|
|
39
|
+
"@md-plugins/md-plugin-codeblocks": "0.1.0-alpha.18",
|
|
40
|
+
"@md-plugins/md-plugin-blockquote": "0.1.0-alpha.18",
|
|
41
|
+
"@md-plugins/md-plugin-frontmatter": "0.1.0-alpha.18",
|
|
42
|
+
"@md-plugins/md-plugin-containers": "0.1.0-alpha.18",
|
|
43
|
+
"@md-plugins/md-plugin-image": "0.1.0-alpha.18",
|
|
44
|
+
"@md-plugins/md-plugin-headers": "0.1.0-alpha.18",
|
|
45
|
+
"@md-plugins/md-plugin-imports": "0.1.0-alpha.18",
|
|
46
|
+
"@md-plugins/md-plugin-inlinecode": "0.1.0-alpha.18",
|
|
47
|
+
"@md-plugins/md-plugin-link": "0.1.0-alpha.18",
|
|
48
|
+
"@md-plugins/shared": "0.1.0-alpha.18",
|
|
49
|
+
"@md-plugins/md-plugin-title": "0.1.0-alpha.18",
|
|
50
|
+
"@md-plugins/md-plugin-table": "0.1.0-alpha.18"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/markdown-it": "^14.1.2",
|