切换主题
标题
啊
姓名 | 年龄 | 职业 |
---|---|---|
张三 | 28 | 工程师 |
李四 | 32 | 设计师 |
王五 | 25 | 产品经理 |
🙃 🎉 💯
INFO
This is an info box.
TIP
This is a tip.
WARNING
This is a warning.
DANGER
This is a dangerous warning.
Details
This is a details block.
STOP
危险区域,请勿继续
123 123 123
点我查看代码
js
console.log('Hello, VitePress!')
点我查看代码
12312312
Wraps in a <div class="vp-raw">
Wraps in a <div class="vp-raw">
NOTE
强调用户在快速浏览文档时也不应忽略的重要信息。
TIP
有助于用户更顺利达成目标的建议性信息。
IMPORTANT
对用户达成目标至关重要的信息。
WARNING
因为可能存在风险,所以需要用户立即关注的关键内容。
CAUTION
行为可能带来的负面影响。
js
export default {
data () {
return {
msg: 'Focused!'
}
}
}
js
export default {
data () {
return {
msg: 'Removed'
msg: 'Added'
}
}
}
js
export default {
data () {
return {
msg: 'Error',
msg: 'Warning'
}
}
}
ts
// 默认禁用行号
const line2 = 'This is line 2'
const line3 = 'This is line 3'
ts
// 启用行号
const line2 = 'This is line 2'
const line3 = 'This is line 3'
ts
// 行号已启用,并从 2 开始
const line3 = 'This is line 3'
const line4 = 'This is line 4'
js
/**
* @type {import('vitepress').UserConfig}
*/
const config = {
// ...
}
export default config
ts
import type { UserConfig } from 'vitepress'
const config: UserConfig = {
// ...
}
export default config
2
123123122
1
321321