@nuxtjs/mdc 0.12.1 → 0.13.1

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
@@ -67,7 +67,7 @@ Hello MDC
67
67
  </template>
68
68
  ```
69
69
 
70
- Note that `::alert` will use the `components/global/Alert.vue` component.
70
+ Note that `::alert` will use the `components/mdc/Alert.vue` component.
71
71
 
72
72
  ### `<MDCRenderer>`
73
73
 
@@ -207,7 +207,7 @@ const { data: ast } = await useAsyncData('markdown', () => parseMarkdown('::aler
207
207
 
208
208
  ### Options
209
209
 
210
- The `parseMarkdown` helper also accepts options as the second argument to control the parser's behavior. (Checkout [`MDCParseOptions` interface↗︎](https://github.com/nuxt-modules/mdc/blob/main/src/runtime/types/parser.ts)).
210
+ The `parseMarkdown` helper also accepts options as the second argument to control the parser's behavior. (Checkout [`MDCParseOptions` interface↗︎](https://github.com/nuxt-modules/mdc/blob/main/src/types/parser.ts)).
211
211
 
212
212
  | Name | Default | Description |
213
213
  | -- | -- | -- |
@@ -218,7 +218,7 @@ The `parseMarkdown` helper also accepts options as the second argument to contro
218
218
  | `toc.depth` | `2` | Maximum heading depth to include in the table of contents. |
219
219
  | `toc.searchDepth` | `2` | Maximum depth of nested tags to search for heading. |
220
220
 
221
- Checkout [`MDCParseOptions` types↗︎](https://github.com/nuxt-modules/mdc/blob/main/src/runtime/types/parser.ts).
221
+ Checkout [`MDCParseOptions` types↗︎](https://github.com/nuxt-modules/mdc/blob/main/src/types/parser.ts).
222
222
 
223
223
  ## Configurations
224
224
 
@@ -259,7 +259,7 @@ export default defineNuxtConfig({
259
259
  })
260
260
  ```
261
261
 
262
- Checkout [`ModuleOptions` types↗︎](https://github.com/nuxt-modules/mdc/blob/main/src/types.ts).
262
+ Checkout [`ModuleOptions` types↗︎](https://github.com/nuxt-modules/mdc/blob/main/src/module.ts).
263
263
 
264
264
  ---
265
265
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtjs/mdc",
3
3
  "configKey": "mdc",
4
- "version": "0.12.1",
4
+ "version": "0.13.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -10,7 +10,7 @@ export function createStringifyProcessor(options = {}) {
10
10
  };
11
11
  }).use(mdcRemark).use(gfm).use(mdc).use(stringify, {
12
12
  bullet: "-",
13
- emphasis: "_",
13
+ emphasis: "*",
14
14
  rule: "-",
15
15
  listItemIndent: "one",
16
16
  fence: "`",
@@ -188,7 +188,7 @@ const mdcRemarkHandlers = {
188
188
  },
189
189
  table: (state, node) => {
190
190
  visit(node, (node2) => {
191
- if (node2.type === "rehype-element") {
191
+ if (node2.type === mdcRemarkElementType) {
192
192
  node2.type = "element";
193
193
  }
194
194
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/mdc",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "description": "Nuxt MDC module",
5
5
  "repository": "nuxt-modules/mdc",
6
6
  "license": "MIT",
@@ -71,12 +71,12 @@
71
71
  "test:watch": "vitest watch"
72
72
  },
73
73
  "dependencies": {
74
- "@nuxt/kit": "^3.15.1",
75
- "@shikijs/transformers": "^1.26.1",
74
+ "@nuxt/kit": "^3.15.2",
75
+ "@shikijs/transformers": "^1.27.2",
76
76
  "@types/hast": "^3.0.4",
77
77
  "@types/mdast": "^4.0.4",
78
78
  "@vue/compiler-core": "^3.5.13",
79
- "consola": "^3.3.3",
79
+ "consola": "^3.4.0",
80
80
  "debug": "4.4.0",
81
81
  "defu": "^6.1.4",
82
82
  "destr": "^2.0.3",
@@ -89,7 +89,7 @@
89
89
  "micromark-util-sanitize-uri": "^2.0.1",
90
90
  "ohash": "^1.1.4",
91
91
  "parse5": "^7.2.1",
92
- "pathe": "^2.0.0",
92
+ "pathe": "^2.0.2",
93
93
  "property-information": "^6.5.0",
94
94
  "rehype-external-links": "^3.0.0",
95
95
  "rehype-minify-whitespace": "^6.0.2",
@@ -105,7 +105,7 @@
105
105
  "remark-rehype": "^11.1.1",
106
106
  "remark-stringify": "^11.0.0",
107
107
  "scule": "^1.3.0",
108
- "shiki": "^1.26.1",
108
+ "shiki": "^1.27.2",
109
109
  "ufo": "^1.5.4",
110
110
  "unified": "^11.0.5",
111
111
  "unist-builder": "^4.0.0",
@@ -115,26 +115,26 @@
115
115
  },
116
116
  "devDependencies": {
117
117
  "@nuxt/devtools": "latest",
118
- "@nuxt/eslint-config": "^0.7.4",
118
+ "@nuxt/eslint-config": "^0.7.5",
119
119
  "@nuxt/module-builder": "^0.8.4",
120
- "@nuxt/schema": "^3.15.1",
121
- "@nuxt/test-utils": "^3.15.1",
122
- "@nuxt/ui": "^2.20.0",
120
+ "@nuxt/schema": "^3.15.2",
121
+ "@nuxt/test-utils": "^3.15.4",
122
+ "@nuxt/ui": "^2.21.0",
123
123
  "@nuxtjs/mdc": "link:.",
124
- "@types/node": "^22.10.5",
124
+ "@types/node": "^22.10.7",
125
125
  "changelogen": "^0.5.7",
126
- "eslint": "^9.17.0",
127
- "nuxt": "^3.15.1",
126
+ "eslint": "^9.18.0",
127
+ "nuxt": "^3.15.2",
128
128
  "rehype": "^13.0.2",
129
- "release-it": "^18.0.0",
130
- "typescript": "5.6.3",
131
- "vitest": "^2.1.8",
129
+ "release-it": "^18.1.1",
130
+ "typescript": "5.6.2",
131
+ "vitest": "^3.0.1",
132
132
  "vue-tsc": "^2.2.0"
133
133
  },
134
134
  "resolutions": {
135
135
  "@nuxtjs/mdc": "workspace:*"
136
136
  },
137
- "packageManager": "pnpm@9.15.3",
137
+ "packageManager": "pnpm@9.15.4",
138
138
  "release-it": {
139
139
  "git": {
140
140
  "commitMessage": "chore(release): release v${version}"