Closed heychazza closed 2 years ago
Actually these components are part of Docus (docs generator) that we plan to open source during the following weeks.
Actually for the diff, you need to use this syntax:
```diff - "nuxt": "latest" + "nuxt": "^3.0.0-rc.3" ```
To activate it, update your nuxt.config
to add it into the preload
:
export default defineNuxtConfig({
// ...
content: {
// ...
highlight: {
// ...
preload: ['diff', 'ts'] // and other languages you need to highlight
}
}
})
Actually for the diff, you need to use this syntax:
```diff - "nuxt": "latest" + "nuxt": "^3.0.0-rc.3" ```To activate it, update your
nuxt.config
to add it into thepreload
:export default defineNuxtConfig({ // ... content: { // ... highlight: { // ... preload: ['diff', 'ts'] // and other languages you need to highlight } } })
So great, thank you!
Hi,
It would be cool if this could support code diffs, like seen here:
In addition to file names and tabs like:
I wasn't sure if these are natively supported by Nuxt Content v2 already, and needed some form of syntax or flag. These are in the docs.