You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -164,11 +223,11 @@ For more options available, please refer to [`@unhead/vue`'s docs](https://unhea
164
223
165
224
## Options
166
225
167
-
`vite-plugin-vue-markdown` uses [`markdown-it`](https://github.com/markdown-it/markdown-it) under the hood, see [`markdown-it`'s docs](https://markdown-it.github.io/markdown-it/) for more details
226
+
`unplugin-vue-markdown` uses [`markdown-it`](https://github.com/markdown-it/markdown-it) under the hood, see [`markdown-it`'s docs](https://markdown-it.github.io/markdown-it/) for more details
168
227
169
228
```ts
170
229
// vite.config.js
171
-
importMarkdownfrom'vite-plugin-vue-markdown'
230
+
importMarkdownfrom'unplugin-vue-markdown/vite'
172
231
importMarkdownItAnchorfrom'markdown-it-anchor'
173
232
importMarkdownItPrismfrom'markdown-it-prism'
174
233
@@ -201,19 +260,23 @@ See [the tsdoc](./src/types.ts) for more advanced options
201
260
202
261
See the [/example](./example).
203
262
204
-
Or the pre-configured starter template [Vitesse](https://github.com/antfu/vitesse).
263
+
Or the pre-configured Markdown template [Vitesse](https://github.com/antfu/vitesse).
205
264
206
265
## Integrations
207
266
208
-
### Work with [vite-plugin-voie](https://github.com/vamplate/vite-plugin-voie)
267
+
### Work with [vite-plugin-pages](https://github.com/hannoeru/vite-plugin-pages)
209
268
210
269
```ts
211
-
importMarkdownfrom'vite-plugin-vue-markdown'
212
-
importVoiefrom'vite-plugin-voie'
270
+
importVuefrom'@vitejs/plugin-vue'
271
+
importMarkdownfrom'unplugin-vue-markdown/vite'
272
+
importPagesfrom'vite-plugin-pages'
213
273
214
274
exportdefault {
215
275
plugins: [
216
-
Voie({
276
+
Vue({
277
+
include: [/\.vue$/,/\.md$/],
278
+
}),
279
+
Pages({
217
280
extensions: ['vue', 'md'],
218
281
}),
219
282
Markdown()
@@ -223,20 +286,23 @@ export default {
223
286
224
287
Put your markdown under `./src/pages/xx.md`, then you can access the page via route `/xx`.
225
288
289
+
### Work with [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
226
290
227
-
### Work with [vite-plugin-components](https://github.com/antfu/vite-plugin-components)
228
-
229
-
`vite-plugin-components` allows you to do on-demand components auto importing without worrying about registration.
291
+
`vite-plugin-components` allows you to do on-demand components auto-importing without worrying about registration.
0 commit comments