W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
本指南將概述可用于創(chuàng)建文檔的不同設(shè)計元素。
VuePress 提供了一個自定義容器插件來創(chuàng)建警稿框。有四種類型:
Markdown 范例
::: info
You can find more information at this site.
:::
::: tip
This is a great tip to remember!
:::
::: warning
This is something to be cautious of.
:::
::: danger DANGER
This is something we do not recommend. Use at your own risk.
:::
渲染 Markdown
INFO
你可以在這個網(wǎng)站上找到更多信息。
TIP
這是一個值得記住的好提示!
WARNING
這是需要謹(jǐn)慎的。
DANGER
這是我們不推薦的。使用風(fēng)險自負(fù)。
VuePress 使用 Prism 提供語言語法高亮顯示,方法是將語言附加到代碼塊的起始反撇號:
Markdown 示例
```js
export default {
name: 'MyComponent'
}
```
渲染輸出
export default {
name: 'MyComponent'
}
向代碼塊添加行高亮顯示,需要在大括號中附加行號。
Markdown 示例
```js{2}
export default {
name: 'MyComponent',
props: {
type: String,
item: Object
}
}
```
渲染 Markdown
export default {
name: 'MyComponent',
props: {
type: String,
item: Object
}
}
```js{4-5}
export default {
name: 'MyComponent',
props: {
type: String,
item: Object
}
}
```
export default {
name: 'MyComponent',
props: {
type: String,
item: Object
}
}
```js{2,4-5}
export default {
name: 'MyComponent',
props: {
type: String,
item: Object
}
}
```
export default {
name: 'MyComponent',
props: {
type: String,
item: Object
}
}
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: