@md-plugins/vite-md-plugin 0.1.0-beta.13 → 0.1.0-beta.14
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 +7 -0
- package/dist/index.mjs +8 -10
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -149,6 +149,13 @@ pnpm test
|
|
|
149
149
|
|
|
150
150
|
In case this README falls out of date, please refer to the [documentation](https://md-plugins.netlify.app/vite-plugins/vite-md-plugin/overview) for the latest information.
|
|
151
151
|
|
|
152
|
+
## Support
|
|
153
|
+
|
|
154
|
+
If vite-md-plugin is useful in your workflow and you want to support ongoing maintenance:
|
|
155
|
+
|
|
156
|
+
GitHub Sponsors: https://github.com/sponsors/hawkeye64
|
|
157
|
+
PayPal: https://paypal.me/hawkeye64
|
|
158
|
+
|
|
152
159
|
## License
|
|
153
160
|
|
|
154
161
|
This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
|
package/dist/index.mjs
CHANGED
|
@@ -162,7 +162,7 @@ function getVueComponent(rendered, code, id, prefix, menu) {
|
|
|
162
162
|
${nav !== false ? ':nav="nav"' : ""}>${mdContent}</markdown-page>
|
|
163
163
|
</template>
|
|
164
164
|
<script setup>
|
|
165
|
-
import { copyHeading } from '
|
|
165
|
+
import { copyHeading } from '@/.q-press/components/markdown-utils'
|
|
166
166
|
${examples !== false ? `
|
|
167
167
|
import { provide } from 'vue'
|
|
168
168
|
provide('_markdown_examples_', import.meta.env.QUASAR_CLIENT
|
|
@@ -235,8 +235,8 @@ function createMarkdownRenderer(options = {}) {
|
|
|
235
235
|
containerComponent: "MarkdownPrerender",
|
|
236
236
|
copyButtonComponent: "MarkdownCopyButton",
|
|
237
237
|
pageScripts: [
|
|
238
|
-
"import MarkdownPrerender from '
|
|
239
|
-
"import MarkdownCopyButton from '
|
|
238
|
+
"import MarkdownPrerender from '@/.q-press/components/MarkdownPrerender'",
|
|
239
|
+
"import MarkdownCopyButton from '@/.q-press/components/MarkdownCopyButton.vue'"
|
|
240
240
|
],
|
|
241
241
|
...options
|
|
242
242
|
});
|
|
@@ -267,12 +267,12 @@ function mdParse(code, id, prefix, menu, options = {}) {
|
|
|
267
267
|
frontmatter: { id },
|
|
268
268
|
pageScripts: /* @__PURE__ */ new Set()
|
|
269
269
|
};
|
|
270
|
-
env.pageScripts.add("import MarkdownPage from '
|
|
270
|
+
env.pageScripts.add("import MarkdownPage from '@/.q-press/layouts/MarkdownPage.vue'");
|
|
271
271
|
if (markdownApiRE.test(code)) {
|
|
272
|
-
env.pageScripts.add("import MarkdownApi from '
|
|
272
|
+
env.pageScripts.add("import MarkdownApi from '@/.q-press/components/MarkdownApi.vue'");
|
|
273
273
|
}
|
|
274
274
|
if (markdownTreeRE.test(code)) {
|
|
275
|
-
env.pageScripts.add("import MarkdownTree from '
|
|
275
|
+
env.pageScripts.add("import MarkdownTree from '@/.q-press/components/MarkdownTree.vue'");
|
|
276
276
|
}
|
|
277
277
|
if (typeof options.preProcess === "function") {
|
|
278
278
|
options.preProcess(env);
|
|
@@ -280,12 +280,10 @@ function mdParse(code, id, prefix, menu, options = {}) {
|
|
|
280
280
|
const md = createMarkdownRenderer(options);
|
|
281
281
|
const results = md.render(code, env);
|
|
282
282
|
if (env.frontmatter.examples !== void 0) {
|
|
283
|
-
env.pageScripts.add(
|
|
284
|
-
"import MarkdownExample from 'src/.q-press/components/MarkdownExample.vue'"
|
|
285
|
-
);
|
|
283
|
+
env.pageScripts.add("import MarkdownExample from '@/.q-press/components/MarkdownExample.vue'");
|
|
286
284
|
}
|
|
287
285
|
if (markdownLinkRE.test(code)) {
|
|
288
|
-
env.pageScripts.add("import MarkdownLink from '
|
|
286
|
+
env.pageScripts.add("import MarkdownLink from '@/.q-press/components/MarkdownLink.vue'");
|
|
289
287
|
}
|
|
290
288
|
if (typeof options.postProcess === "function") {
|
|
291
289
|
options.postProcess(env);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@md-plugins/vite-md-plugin",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.14",
|
|
4
4
|
"description": "A very opinionated Vite plugin for @md-plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"markdown-it": "^14.2.0",
|
|
42
|
-
"@md-plugins/md-plugin-blockquote": "0.1.0-beta.
|
|
43
|
-
"@md-plugins/md-plugin-
|
|
44
|
-
"@md-plugins/md-plugin-
|
|
45
|
-
"@md-plugins/md-plugin-
|
|
46
|
-
"@md-plugins/md-plugin-
|
|
47
|
-
"@md-plugins/md-plugin-
|
|
48
|
-
"@md-plugins/md-plugin-
|
|
49
|
-
"@md-plugins/md-plugin-
|
|
50
|
-
"@md-plugins/md-plugin-
|
|
51
|
-
"@md-plugins/md-plugin-
|
|
52
|
-
"@md-plugins/md-plugin-
|
|
53
|
-
"@md-plugins/shared": "0.1.0-beta.
|
|
42
|
+
"@md-plugins/md-plugin-blockquote": "0.1.0-beta.14",
|
|
43
|
+
"@md-plugins/md-plugin-containers": "0.1.0-beta.14",
|
|
44
|
+
"@md-plugins/md-plugin-headers": "0.1.0-beta.14",
|
|
45
|
+
"@md-plugins/md-plugin-frontmatter": "0.1.0-beta.14",
|
|
46
|
+
"@md-plugins/md-plugin-codeblocks": "0.1.0-beta.14",
|
|
47
|
+
"@md-plugins/md-plugin-image": "0.1.0-beta.14",
|
|
48
|
+
"@md-plugins/md-plugin-imports": "0.1.0-beta.14",
|
|
49
|
+
"@md-plugins/md-plugin-inlinecode": "0.1.0-beta.14",
|
|
50
|
+
"@md-plugins/md-plugin-link": "0.1.0-beta.14",
|
|
51
|
+
"@md-plugins/md-plugin-table": "0.1.0-beta.14",
|
|
52
|
+
"@md-plugins/md-plugin-title": "0.1.0-beta.14",
|
|
53
|
+
"@md-plugins/shared": "0.1.0-beta.14"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/markdown-it": "^14.1.2",
|