Skip to content

Commit 33e3a33

Browse files
chore(deps): update devdependency unplugin-vue-markdown to v30 (#1817)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent ae1c62d commit 33e3a33

File tree

3 files changed

+32
-38
lines changed

3 files changed

+32
-38
lines changed

modules/blog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { join } from 'node:path'
22
import Markdown from 'unplugin-vue-markdown/vite'
33
import { addTemplate, addVitePlugin, defineNuxtModule, useNuxt, createResolver } from 'nuxt/kit'
4-
import shiki from '@shikijs/markdown-it'
4+
import shiki from '@shikijs/markdown-exit'
55
import MarkdownItAnchor from 'markdown-it-anchor'
66
import { defu } from 'defu'
77
import { read } from 'gray-matter'
@@ -62,7 +62,7 @@ export default defineNuxtModule({
6262
include: [/\.(md|markdown)($|\?)/],
6363
wrapperComponent: 'BlogPostWrapper',
6464
wrapperClasses: 'text-fg-muted leading-relaxed',
65-
async markdownItSetup(md) {
65+
async markdownSetup(md) {
6666
md.use(
6767
await shiki({
6868
themes: {
@@ -71,7 +71,7 @@ export default defineNuxtModule({
7171
},
7272
}),
7373
)
74-
md.use(MarkdownItAnchor)
74+
md.use(MarkdownItAnchor as any)
7575
},
7676
}),
7777
)

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"@nuxtjs/html-validator": "2.1.0",
7777
"@nuxtjs/i18n": "10.2.3",
7878
"@shikijs/langs": "4.0.1",
79+
"@shikijs/markdown-exit": "4.0.1",
7980
"@shikijs/themes": "4.0.1",
8081
"@unocss/nuxt": "66.6.0",
8182
"@unocss/preset-wind4": "66.6.0",
@@ -95,7 +96,6 @@
9596
"focus-trap": "^8.0.0",
9697
"gray-matter": "4.0.3",
9798
"ipaddr.js": "2.3.0",
98-
"markdown-it-anchor": "9.2.0",
9999
"marked": "17.0.3",
100100
"module-replacements": "2.11.0",
101101
"nuxt": "4.3.1",
@@ -126,7 +126,6 @@
126126
"@intlify/core-base": "11.2.8",
127127
"@npm/types": "2.1.0",
128128
"@playwright/test": "1.58.2",
129-
"@shikijs/markdown-it": "4.0.1",
130129
"@storybook-vue/nuxt": "catalog:storybook",
131130
"@storybook/addon-a11y": "catalog:storybook",
132131
"@storybook/addon-docs": "catalog:storybook",
@@ -147,13 +146,14 @@
147146
"h3-next": "npm:h3@2.0.1-rc.14",
148147
"knip": "5.85.0",
149148
"lint-staged": "16.2.7",
149+
"markdown-it-anchor": "9.2.0",
150150
"oxfmt": "0.35.0",
151151
"oxlint": "1.51.0",
152152
"schema-dts": "1.1.5",
153153
"simple-git-hooks": "2.13.1",
154154
"storybook": "catalog:storybook",
155155
"typescript": "5.9.3",
156-
"unplugin-vue-markdown": "29.2.0",
156+
"unplugin-vue-markdown": "30.0.0",
157157
"vitest": "npm:@voidzero-dev/vite-plus-test@0.0.0-g52709db6.20260226-1136",
158158
"vitest-environment-nuxt": "1.0.1",
159159
"vue-i18n-extract": "2.0.7",

pnpm-lock.yaml

Lines changed: 26 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)