@md-plugins/md-plugin-link 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 CHANGED
@@ -37,7 +37,7 @@ const md = new MarkdownIt();
37
37
  md.use(linkPlugin, {
38
38
  linkTag: 'MarkdownLink', // Custom link tag (e.g., Vue Router component)
39
39
  linkToKeyword: 'to', // Attribute to use for internal links
40
- pageScript: 'import MarkdownLink from "src/.q-press/components/MarkdownLink.vue";',
40
+ pageScript: 'import MarkdownLink from "@/.q-press/components/MarkdownLink.vue";',
41
41
  });
42
42
 
43
43
  const markdownContent = `
@@ -66,18 +66,18 @@ For the example above, the plugin produces the following output:
66
66
  Additionally, the `pageScripts` property in the `env` object will contain:
67
67
 
68
68
  ```js
69
- Set(['import MarkdownLink from "src/.q-press/components/MarkdownLink.vue";'])
69
+ Set(['import MarkdownLink from "@/.q-press/components/MarkdownLink.vue";'])
70
70
  ```
71
71
 
72
72
  ## Options
73
73
 
74
74
  The `md-plugin-link` plugin supports the following options:
75
75
 
76
- | Option | Type | Default | Description |
77
- | ------------- | ------ | ---------------------------------------------------------------------- | --------------------------------------------------------------- |
78
- | linkTag | string | 'MarkdownLink' | Custom tag to use for internal links. |
79
- | linkToKeyword | string | 'to' | Attribute to use for internal links (e.g., to for router-link). |
80
- | pageScript | string | 'import MarkdownLink from "src/.q-press/components/MarkdownLink.vue";' | Import statement for required components. |
76
+ | Option | Type | Default | Description |
77
+ | ------------- | ------ | -------------------------------------------------------------------- | --------------------------------------------------------------- |
78
+ | linkTag | string | 'MarkdownLink' | Custom tag to use for internal links. |
79
+ | linkToKeyword | string | 'to' | Attribute to use for internal links (e.g., to for router-link). |
80
+ | pageScript | string | 'import MarkdownLink from "@/.q-press/components/MarkdownLink.vue";' | Import statement for required components. |
81
81
 
82
82
  ## Testing
83
83
 
@@ -91,6 +91,13 @@ pnpm test
91
91
 
92
92
  In case this README falls out of date, please refer to the [documentation](https://md-plugins.netlify.app/md-plugins/link/overview) for the latest information.
93
93
 
94
+ ## Support
95
+
96
+ If md-plugin-link is useful in your workflow and you want to support ongoing maintenance:
97
+
98
+ GitHub Sponsors: https://github.com/sponsors/hawkeye64
99
+ PayPal: https://paypal.me/hawkeye64
100
+
94
101
  ## License
95
102
 
96
103
  This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ function resolvePluginOptions(options, key, defaults) {
8
8
  const DEFAULT_LINK_PLUGIN_OPTIONS = {
9
9
  linkTag: "MarkdownLink",
10
10
  linkToKeyword: "to",
11
- pageScript: 'import MarkdownLink from "src/.q-press/components/MarkdownLink.vue"'
11
+ pageScript: 'import MarkdownLink from "@/.q-press/components/MarkdownLink.vue"'
12
12
  };
13
13
  const linkPlugin = (md, options) => {
14
14
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@md-plugins/md-plugin-link",
3
- "version": "0.1.0-beta.13",
3
+ "version": "0.1.0-beta.14",
4
4
  "description": "A markdown-it plugin for handling links.",
5
5
  "keywords": [
6
6
  "markdown-it",
@@ -38,7 +38,7 @@
38
38
  "devDependencies": {
39
39
  "@types/markdown-it": "^14.1.2",
40
40
  "markdown-it": "^14.2.0",
41
- "@md-plugins/shared": "0.1.0-beta.13"
41
+ "@md-plugins/shared": "0.1.0-beta.14"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "markdown-it": "^14.2.0"