@ -220,8 +220,6 @@ Wraps in a <div class="vp-raw">
`vp-raw` class can be directly used on elements too. Style isolation is currently opt-in:
`vp-raw` class can be directly used on elements too. Style isolation is currently opt-in:
::: details
- Install `postcss` with your preferred package manager:
- Install `postcss` with your preferred package manager:
```sh
```sh
@ -234,9 +232,9 @@ Wraps in a <div class="vp-raw">
import { postcssIsolateStyles } from 'vitepress'
import { postcssIsolateStyles } from 'vitepress'
export default {
export default {
plugins: {
plugins: [
postcssIsolateStyles()
postcssIsolateStyles()
}
]
}
}
```
```
@ -248,8 +246,6 @@ Wraps in a <div class="vp-raw">
})
})
```
```
:::
## Syntax Highlighting in Code Blocks
## Syntax Highlighting in Code Blocks
VitePress uses [Shiki](https://shiki.matsu.io/) to highlight language syntax in Markdown code blocks, using coloured text. Shiki supports a wide variety of programming languages. All you need to do is append a valid language alias to the beginning backticks for the code block:
VitePress uses [Shiki](https://shiki.matsu.io/) to highlight language syntax in Markdown code blocks, using coloured text. Shiki supports a wide variety of programming languages. All you need to do is append a valid language alias to the beginning backticks for the code block: