示例
main
aside
约 1182 字大约 4 分钟
markdown示例
## 标题H2
### 标题H3
#### 标题H4
##### 标题H5
###### 标题H6
## 标题2 Badge <Badge type="tip" text="Badge" />
### 标题3 Badge <Badge type="warning" text="Badge" />
#### 标题4 Badge <Badge type="danger" text="Badge" />正文内容。
@property CSS at-rule是 CSS Houdini API 的一部分,它允许开发者显式地定义他们的 CSS 自定义属性, 允许进行属性类型检查、设定默认值以及定义该自定义属性是否可以被继承。
@property 的出现,极大的增强了 CSS 的能力。
`@property` CSS at-rule是 [CSS Houdini API](https://developer.mozilla.org/zh-CN/docs/Web/Guide/Houdini)
的一部分,它允许开发者显式地定义他们的 [CSS 自定义属性](https://developer.mozilla.org/zh-CN/docs/Web/CSS/--*),
允许进行属性类型检查、设定默认值以及定义该自定义属性是否可以被继承。
`@property` 的出现,极大的增强了 CSS 的能力。加粗:加粗文字
斜体: 斜体文字
删除文字
内容 标记
数学表达式: −(2n−1) ~ 2n−1−1
∂ωr∂r(ωyω)=(ωyω){(logy)r+∑i=1rωi(−1)Ir⋯(r−i+1)(logy)ri}
19th
H2O
19^th^
H~2~O内容居中
内容右对齐
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
引用内容
引用内容
> 引用内容
>
> 引用内容
[链接](/)
[外部链接](https://github.com/pengzhanbo)
Badge:
**Badge:**
- <Badge type="info" text="info badge" />
- <Badge type="tip" text="tip badge" />
- <Badge type="warning" text="warning badge" />
- <Badge type="danger" text="danger badge" />图标:
**图标:**
- home - <Icon name="material-symbols:home" color="currentColor" size="1em" />
- vscode - <Icon name="skill-icons:vscode-dark" size="2em" />
- twitter - <Icon name="skill-icons:twitter" size="2em" />示例容器:
代码:
const a = 1
const b = 2
const c = a + b
const obj = {
toLong: {
deep: {
deep: {
deep: {
value: 'this is to long text. this is to long text. this is to long text. this is to long text.',
}
}
}
}
}代码分组:
const a = 1
const b = 2
const c = a + bconst a: number = 1
const b: number = 2
const c: number = a + b**代码分组:**
::: code-tabs
@tab tab1
```js
const a = 1
const b = 2
const c = a + b@tab tab2
const a: number = 1
const b: number = 2
const c: number = a + b:::
**代码块高亮:**
```ts
function foo() {
const a = 1 // [!code highlight]
console.log(a)
const b = 2 // [!code ++]
const c = 3 // [!code --]
console.log(a + b + c) // [!code error]
console.log(a + b) // [!code warning]
}代码块聚焦:
function foo() {
const a = 1
}仅标题
信息
信息内容 link inline code
const a = 1
const b = 2
const c = a + b
::: info 信息
信息内容 [link](https://github.com/pengzhanbo) `inline code`
```js
const a = 1
const b = 2
const c = a + b
::: tip 提示
提示内容 [link](https://github.com/pengzhanbo) `inline code`
```js
const a = 1
const b = 2
const c = a + b:::
这里是内容。
GFM alert:
笔记
note
信息
info
提示
tip
警告
warning
注意
caution
重要
important
代码演示:
:::: demo title="常规示例" desc="一个常规示例"
<div id="app">
<h3>vuepress-theme-plume</h3>
</div>const a = 'So Awesome!'
const app = document.querySelector('#app')
app.appendChild(window.document.createElement('small')).textContent = a#app {
font-size: 2em;
text-align: center;
}::::
选项卡:
内容区块
内容区块
注意
内容区块
内容区块
脚注:
脚注 1 链接[1]。
脚注 2 链接[2]。
行内的脚注[3] 定义。
重复的页脚定义[2:1]。