Skip to content

Commit

Permalink
fix(build): use default slugify from mdit-vue (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Oct 29, 2022
1 parent db1c343 commit 8cd1f7c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -109,7 +109,6 @@
"@types/compression": "^1.7.2",
"@types/cross-spawn": "^6.0.2",
"@types/debug": "^4.1.7",
"@types/diacritics": "^1.3.1",
"@types/escape-html": "^1.0.2",
"@types/fs-extra": "^9.0.13",
"@types/koa": "^2.13.5",
Expand All @@ -127,7 +126,6 @@
"conventional-changelog-cli": "^2.2.2",
"cross-spawn": "^7.0.3",
"debug": "^4.3.4",
"diacritics": "^1.3.0",
"enquirer": "^2.3.6",
"esbuild": "^0.15.12",
"escape-html": "^1.0.3",
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/node/markdown/markdown.ts
Expand Up @@ -14,9 +14,9 @@ import {
import { sfcPlugin, type SfcPluginOptions } from '@mdit-vue/plugin-sfc'
import { titlePlugin } from '@mdit-vue/plugin-title'
import { tocPlugin, type TocPluginOptions } from '@mdit-vue/plugin-toc'
import { slugify } from '@mdit-vue/shared'
import { IThemeRegistration } from 'shiki'
import { highlight } from './plugins/highlight'
import { slugify } from './plugins/slugify'
import { highlightLinePlugin } from './plugins/highlightLines'
import { lineNumberPlugin } from './plugins/lineNumbers'
import { containerPlugin } from './plugins/containers'
Expand Down Expand Up @@ -97,15 +97,13 @@ export const createMarkdownRenderer = async (
...options.frontmatter
} as FrontmatterPluginOptions)
.use(headersPlugin, {
slugify,
...options.headers
} as HeadersPluginOptions)
.use(sfcPlugin, {
...options.sfc
} as SfcPluginOptions)
.use(titlePlugin)
.use(tocPlugin, {
slugify,
...options.toc
} as TocPluginOptions)

Expand Down
24 changes: 0 additions & 24 deletions src/node/markdown/plugins/slugify.ts

This file was deleted.

0 comments on commit 8cd1f7c

Please sign in to comment.