docs(deps): update @nuxt/content to alpha.6 (#2692)

This commit is contained in:
Benjamin Canac
2024-11-19 18:41:04 +01:00
committed by GitHub
parent 21d8c352a9
commit 9dd525ca26
5 changed files with 261 additions and 51 deletions

View File

@@ -17,7 +17,12 @@ export default defineNuxtConfig({
'@nuxtjs/plausible',
'@vueuse/nuxt',
'nuxt-component-meta',
'nuxt-og-image'
'nuxt-og-image',
(_, nuxt) => {
nuxt.hook('components:dirs', (dirs) => {
dirs.unshift({ path: resolve('./app/components/content/examples'), pathPrefix: false, prefix: '', global: true })
})
}
],
app: {
@@ -36,6 +41,15 @@ export default defineNuxtConfig({
markdown: {
highlight: {
langs: ['bash', 'ts', 'typescript', 'diff', 'vue', 'json', 'yml', 'css', 'mdc']
},
remarkPlugins: {
'remark-mdc': {
options: {
experimental: {
autoUnwrap: false
}
}
}
}
}
}