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
Copy file name to clipboardExpand all lines: docs/guide/markdown.md
+2-6
Original file line number
Diff line number
Diff line change
@@ -220,8 +220,6 @@ Wraps in a <div class="vp-raw">
220
220
221
221
`vp-raw` class can be directly used on elements too. Style isolation is currently opt-in:
222
222
223
-
::: details
224
-
225
223
- Install `postcss` with your preferred package manager:
226
224
227
225
```sh
@@ -234,9 +232,9 @@ Wraps in a <div class="vp-raw">
234
232
import { postcssIsolateStyles } from'vitepress'
235
233
236
234
exportdefault {
237
-
plugins:{
235
+
plugins:[
238
236
postcssIsolateStyles()
239
-
}
237
+
]
240
238
}
241
239
```
242
240
@@ -248,8 +246,6 @@ Wraps in a <div class="vp-raw">
248
246
})
249
247
```
250
248
251
-
:::
252
-
253
249
## Syntax Highlighting in Code Blocks
254
250
255
251
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