diff --git a/patches/vitepress-plugin-group-icons.patch b/patches/vitepress-plugin-group-icons.patch new file mode 100644 index 00000000..ec23ba34 --- /dev/null +++ b/patches/vitepress-plugin-group-icons.patch @@ -0,0 +1,23 @@ +diff --git a/dist/index.mjs b/dist/index.mjs +index 7146607f6eb82fe3e58634d0be5acfaa929cf526..a1cdfa79be761a0efc9880a35ec12016b7aea837 100644 +--- a/dist/index.mjs ++++ b/dist/index.mjs +@@ -200,7 +200,7 @@ function groupIconMdPlugin(md, options) { + }); + }; + const fenceRule = md.renderer.rules.fence; +- if (fenceRule) md.renderer.rules.fence = (...args) => { ++ if (false) md.renderer.rules.fence = (...args) => { + const [tokens, idx] = args; + const token = tokens[idx]; + let isOnCodeGroup = false; +@@ -232,7 +232,8 @@ const HTTP_URL_RE = /^https?:\/\//; + async function generateCSS(labels, options) { + const baseCSS = ` + .vp-code-block-title [data-title]::before, +-.vp-code-group [data-title]::before { ++.vp-code-group [data-title]::before, ++.vp-doc [class*='language-'] [data-title]::before { + display: inline-block; + width: 1em; + height: 1em; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 64fa505f..d8343c7c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: false excludeLinksFromLockfile: false +patchedDependencies: + vitepress-plugin-group-icons: c379c3737bf09a62f52fdff21e0d71647ab2bdd813a34ac32a4d8aa1edca0e7f + importers: .: @@ -311,7 +314,7 @@ importers: version: link:.. vitepress-plugin-group-icons: specifier: ^1.7.6 - version: 1.7.6(vite@8.2.0(@types/node@26.1.2)(esbuild@0.27.7)(jiti@1.21.7)(yaml@2.9.0)) + version: 1.7.6(patch_hash=c379c3737bf09a62f52fdff21e0d71647ab2bdd813a34ac32a4d8aa1edca0e7f)(vite@8.2.0(@types/node@26.1.2)(esbuild@0.27.7)(jiti@1.21.7)(yaml@2.9.0)) vitepress-plugin-llms: specifier: ^1.13.4 version: 1.13.4 @@ -5153,7 +5156,7 @@ snapshots: jiti: 1.21.7 yaml: 2.9.0 - vitepress-plugin-group-icons@1.7.6(vite@8.2.0(@types/node@26.1.2)(esbuild@0.27.7)(jiti@1.21.7)(yaml@2.9.0)): + vitepress-plugin-group-icons@1.7.6(patch_hash=c379c3737bf09a62f52fdff21e0d71647ab2bdd813a34ac32a4d8aa1edca0e7f)(vite@8.2.0(@types/node@26.1.2)(esbuild@0.27.7)(jiti@1.21.7)(yaml@2.9.0)): dependencies: '@iconify-json/logos': 1.2.11 '@iconify-json/vscode-icons': 1.2.67 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 057dece6..241a4e2d 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -16,6 +16,9 @@ minimumReleaseAgeExclude: - '@mdit/*' - '@vueuse/*' +patchedDependencies: + vitepress-plugin-group-icons: patches/vitepress-plugin-group-icons.patch + shellEmulator: true strictPeerDependencies: true diff --git a/src/node/markdown/plugins/preWrapper.ts b/src/node/markdown/plugins/preWrapper.ts index 928e2dc4..09b0ea24 100644 --- a/src/node/markdown/plugins/preWrapper.ts +++ b/src/node/markdown/plugins/preWrapper.ts @@ -56,7 +56,7 @@ export function preWrapperPlugin(md: MarkdownItAsync, options: Options) { `` + `${label}` + fence(...args) + - `` + '' ) } }