外观
Markdown
标题 2
标题 3
标题 4
标题 5
标题 6
加粗:加粗文字
斜体: 斜体文字
删除文字
内容 标记
数学表达式: −(2n−1) ~ 2n−1−1
∂ωr∂r(ωyω)=(ωyω){(logy)r+∑i=1rωi(−1)Ir⋯(r−i+1)(logy)ri}
19th
H2O
内容居中
内容右对齐
- 无序列表1
- 无序列表2
- 无序列表3
- 有序列表1
- 有序列表2
- 有序列表3
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
引用内容
引用内容
Badge:
- info badge
- tip badge
- warning badge
- danger badge
图标:
- home -
- vscode -
- twitter -
demo wrapper:
main
aside
代码:
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.',
}
}
}
}
}代码分组:
tab1
const a = 1
const b = 2
const c = a + btab2
const a: number = 1
const b: number = 2
const c: number = a + b代码块高亮:
function foo() {
const a = 1
console.log(a)
const b = 2
const c = 3
console.log(a + b + c)
console.log(a + b)
}代码块聚焦:
function foo() {
const a = 1
}注释
文本写作时更加关注横向内容或扩充联想。
note信息
强调用户在快速浏览文档时也不应忽略的重要信息。 文本写作时更加关注纵向内容或名词解释。
info提示
有助于用户更顺利达成目标的建议性信息。 文本写作时更加关注小技巧或小建议。
tip警告
因为可能存在风险,所以需要用户立即关注的关键内容。 文本写作时更加关注风险事项或待办事项。
warning错误
行为可能带来的负面影响。 文本写作时更加关注警报或红线。
caution重要
对用户达成目标至关重要的信息。 文本写作时更加关注关键步骤或关键信息。
importantGFM alert:
笔记
文本写作时更加关注横向内容或扩充联想。
信息
强调用户在快速浏览文档时也不应忽略的重要信息。 文本写作时更加关注纵向内容或名词解释。
提示
有助于用户更顺利达成目标的建议性信息。 文本写作时更加关注小技巧或小建议。
警告
因为可能存在风险,所以需要用户立即关注的关键内容。 文本写作时更加关注风险事项或待办事项。
注意
行为可能带来的负面影响。 文本写作时更加关注警报或红线。
重要
对用户达成目标至关重要的信息。 文本写作时更加关注关键步骤或关键信息。
代码演示:
:::: demo title="常规示例" desc="一个常规示例"
HTML
<div id="app">
<h3>vuepress-theme-plume</h3>
</div>Javascript
const a = 'So Awesome!'
const app = document.querySelector('#app')
app.appendChild(window.document.createElement('small')).textContent = aCSS
#app {
font-size: 2em;
text-align: center;
}::::
选项卡:
标题1
内容区块
标题2
内容区块
注意
标题1
内容区块
标题2
内容区块
package.json
{
"name": "vuepress-theme-plume"
}详情
This is a details block.
正文内容
正文内容
【单选题】
小明同学去摘苹果( )。
A.
B.
C.
D.解析:点击时可见
- 小红同学去跑步( )。
A.
B.
C.
D.
【判断题】
- 一去二三里( )
假定无风险收益率为 Rf,市场平均收益率为 Rm,某股票贝塔系数为 β,则普通股资本成本为:Ks=Rf+β×(Rm−Rf)
- default:
==Default==- Default - info:
==Info=={.info}- Info - note:
==Note=={.note}- Note - tip:
==Tip=={.tip}- Tip - warning:
==Warning=={.warning}- Warning - danger:
==Danger=={.danger}- Danger - caution:
==Caution=={.caution}- Caution - important:
==Important=={.important}- Important
在对话窗口输入: cmd然后点击 OK 按钮。
保存文件请使用快捷键 Ctrl+S
interfaces
文件列表 vitepress-plugin-filelist
基于 OpenList 的文件浏览组件:树形目录、多根挂载、批量 ZIP、预览/下载、目录密码和 token。
安装与注册
pnpm add -D vitepress-plugin-filelist// docs/.vitepress/plugins/index.ts
import fileList from 'vitepress-plugin-filelist'
export const plugins = [
// ...
fileList(),
]本站已经在上面的插件入口中注册,下面可以直接使用。
演示模式
不传 base 时使用内置演示数据:
<FileList title="课程资料(演示数据)" />课程资料(演示数据)演示数据
操作
没有文件
0 个已加载文件 · 共 0 B
单路径
<FileList
base="https://demo.oplist.org"
path="/Document"
title="OpenList 演示站"
/>OpenList 演示站
操作
没有文件
0 个已加载文件 · 共 0 B
多根挂载
sources 可以把多个目录或单个文件挂到同一个组件里:
<FileList
base="https://demo.oplist.org"
title="多根挂载"
:sources="[
{ path: '/Document' },
{ path: '/Document/example1.ppt' }
]"
/>多根挂载
操作
没有文件
0 个已加载文件 · 共 0 B
目录根默认折叠;加 :expanded="true" 或给单个 source 加 expanded: true 可以默认展开。
脚注:
脚注 1 链接[1]。
脚注 2 链接[2]。
行内的脚注[3] 定义。
重复的页脚定义[2:1]。