Skip to content

Commit 8cd1f7c

Browse files
authored
fix(build): use default slugify from mdit-vue (#1554)
1 parent db1c343 commit 8cd1f7c

File tree

4 files changed

+1
-41
lines changed

4 files changed

+1
-41
lines changed

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
"@types/compression": "^1.7.2",
110110
"@types/cross-spawn": "^6.0.2",
111111
"@types/debug": "^4.1.7",
112-
"@types/diacritics": "^1.3.1",
113112
"@types/escape-html": "^1.0.2",
114113
"@types/fs-extra": "^9.0.13",
115114
"@types/koa": "^2.13.5",
@@ -127,7 +126,6 @@
127126
"conventional-changelog-cli": "^2.2.2",
128127
"cross-spawn": "^7.0.3",
129128
"debug": "^4.3.4",
130-
"diacritics": "^1.3.0",
131129
"enquirer": "^2.3.6",
132130
"esbuild": "^0.15.12",
133131
"escape-html": "^1.0.3",

pnpm-lock.yaml

-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node/markdown/markdown.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import {
1414
import { sfcPlugin, type SfcPluginOptions } from '@mdit-vue/plugin-sfc'
1515
import { titlePlugin } from '@mdit-vue/plugin-title'
1616
import { tocPlugin, type TocPluginOptions } from '@mdit-vue/plugin-toc'
17+
import { slugify } from '@mdit-vue/shared'
1718
import { IThemeRegistration } from 'shiki'
1819
import { highlight } from './plugins/highlight'
19-
import { slugify } from './plugins/slugify'
2020
import { highlightLinePlugin } from './plugins/highlightLines'
2121
import { lineNumberPlugin } from './plugins/lineNumbers'
2222
import { containerPlugin } from './plugins/containers'
@@ -97,15 +97,13 @@ export const createMarkdownRenderer = async (
9797
...options.frontmatter
9898
} as FrontmatterPluginOptions)
9999
.use(headersPlugin, {
100-
slugify,
101100
...options.headers
102101
} as HeadersPluginOptions)
103102
.use(sfcPlugin, {
104103
...options.sfc
105104
} as SfcPluginOptions)
106105
.use(titlePlugin)
107106
.use(tocPlugin, {
108-
slugify,
109107
...options.toc
110108
} as TocPluginOptions)
111109

src/node/markdown/plugins/slugify.ts

-24
This file was deleted.

0 commit comments

Comments
 (0)