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
Also, you may set custom titles globally by adding the following content in site config, helpful if not writing in English:
210
+
211
+
```ts
212
+
// config.ts
213
+
exportdefaultdefineConfig({
214
+
// ...
215
+
markdown: {
216
+
container: {
217
+
tipLabel: '提示',
218
+
warningLabel: '警告',
219
+
dangerLabel: '危险',
220
+
infoLabel: '信息',
221
+
detailsLabel: '详细信息'
222
+
}
223
+
}
224
+
// ...
225
+
})
226
+
```
227
+
209
228
### `raw`
210
229
211
230
This is a special container that can be used to prevent style and router conflicts with VitePress. This is especially useful when you're documenting component libraries. You might also wanna check out [whyframe](https://whyframe.dev/docs/integrations/vitepress) for better isolation.
@@ -230,11 +249,9 @@ Wraps in a <div class="vp-raw">
230
249
231
250
```js
232
251
import { postcssIsolateStyles } from'vitepress'
233
-
252
+
234
253
exportdefault {
235
-
plugins: [
236
-
postcssIsolateStyles()
237
-
]
254
+
plugins: [postcssIsolateStyles()]
238
255
}
239
256
```
240
257
@@ -548,7 +565,7 @@ const line3 = 'This is line 3'
0 commit comments