Skip to content

Commit 62f0e4f

Browse files
luohuidongbrc-dd
andauthored
docs: modify the example usage of postcssIsolateStyles (#3111)
Co-authored-by: Divyansh Singh <[email protected]>
1 parent 7a3b2d5 commit 62f0e4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: docs/guide/markdown.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ Wraps in a <div class="vp-raw">
220220

221221
`vp-raw` class can be directly used on elements too. Style isolation is currently opt-in:
222222

223-
::: details
224-
225223
- Install `postcss` with your preferred package manager:
226224

227225
```sh
@@ -234,9 +232,9 @@ Wraps in a <div class="vp-raw">
234232
import { postcssIsolateStyles } from 'vitepress'
235233

236234
export default {
237-
plugins: {
235+
plugins: [
238236
postcssIsolateStyles()
239-
}
237+
]
240238
}
241239
```
242240

@@ -248,8 +246,6 @@ Wraps in a <div class="vp-raw">
248246
})
249247
```
250248

251-
:::
252-
253249
## Syntax Highlighting in Code Blocks
254250

255251
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:

0 commit comments

Comments
 (0)