Skip to content

Commit

Permalink
docs: modify the example usage of postcssIsolateStyles (#3111)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <[email protected]>
  • Loading branch information
luohuidong and brc-dd authored Oct 21, 2023
1 parent 7a3b2d5 commit 62f0e4f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

::: details

- Install `postcss` with your preferred package manager:

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

export default {
plugins: {
plugins: [
postcssIsolateStyles()
}
]
}
```

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

:::

## 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:
Expand Down

0 comments on commit 62f0e4f

Please sign in to comment.