Skip to content

Commit b10f900

Browse files
committed
chore: update deps
1 parent 389602c commit b10f900

File tree

4 files changed

+285
-253
lines changed

4 files changed

+285
-253
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export default {
140140
```js
141141
// src/main.js
142142
import { createApp } from 'vue'
143+
143144
import { createHead } from '@unhead/vue' // <--
144145

145146
const app = createApp(App)
@@ -168,6 +169,8 @@ For more options available, please refer to [`@unhead/vue`'s docs](https://unhea
168169
```ts
169170
// vite.config.js
170171
import Markdown from 'vite-plugin-vue-markdown'
172+
import MarkdownItAnchor from 'markdown-it-anchor'
173+
import MarkdownItPrism from 'markdown-it-prism'
171174

172175
export default {
173176
plugins: [
@@ -182,8 +185,8 @@ export default {
182185
// A function providing the Markdown It instance gets the ability to apply custom settings/plugins
183186
markdownItSetup(md) {
184187
// for example
185-
md.use(require('markdown-it-anchor'))
186-
md.use(require('markdown-it-prism'))
188+
md.use(MarkdownItAnchor)
189+
md.use(MarkdownItPrism)
187190
},
188191
// Class names for the wrapper div
189192
wrapperClasses: 'markdown-body'

example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"vue-router": "^4.1.6"
1111
},
1212
"devDependencies": {
13-
"@vitejs/plugin-vue": "^4.0.0",
13+
"@vitejs/plugin-vue": "^4.2.1",
1414
"cross-env": "^7.0.3",
1515
"markdown-it-prism": "^2.3.0",
1616
"prismjs": "^1.29.0",
17-
"typescript": "^4.9.5",
18-
"vite": "^4.1.1",
19-
"vite-plugin-inspect": "^0.7.15",
20-
"vite-plugin-pages": "^0.28.0",
17+
"typescript": "^5.0.4",
18+
"vite": "^4.3.4",
19+
"vite-plugin-inspect": "^0.7.24",
20+
"vite-plugin-pages": "^0.29.0",
2121
"vite-plugin-vue-markdown": "workspace:*"
2222
}
2323
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-plugin-vue-markdown",
33
"version": "0.22.6",
4-
"packageManager": "pnpm@8.2.0",
4+
"packageManager": "pnpm@8.4.0",
55
"description": "Compile Markdown to Vue component",
66
"author": "Anthony Fu <[email protected]>",
77
"license": "MIT",
@@ -53,17 +53,17 @@
5353
"markdown-it": "^13.0.1"
5454
},
5555
"devDependencies": {
56-
"@antfu/eslint-config": "^0.38.4",
56+
"@antfu/eslint-config": "^0.38.5",
5757
"@antfu/ni": "^0.21.3",
58-
"@types/node": "^18.15.11",
58+
"@types/node": "^18.16.3",
5959
"@unhead/vue": "^1.1.26",
6060
"@vue/test-utils": "^2.3.2",
6161
"bumpp": "^9.1.0",
62-
"eslint": "^8.38.0",
63-
"rollup": "^3.20.2",
62+
"eslint": "^8.39.0",
63+
"rollup": "^3.21.3",
6464
"tsup": "^6.7.0",
6565
"typescript": "^5.0.4",
66-
"vite": "^4.2.1",
66+
"vite": "^4.3.4",
6767
"vitest": "^0.30.1",
6868
"vue": "^3.2.47"
6969
}

0 commit comments

Comments
 (0)