文章效果与字体编码测试
Markdown 基本语法
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
粗体 斜体 粗斜体 正常 删除线
单行块引用
多个段落的块引用
多个段落的块引用
嵌套块引用
嵌套块引用
带有其它元素的块引用
带有其它元素的块引用
带有其它元素的块引用
- 有序列表
- 有序列表
- 有序列表
- 有序列表
- 有序列表
- 有序列表
- 无序列表
- 无序列表
- 无序列表
- 无序列表
- 无序列表
- 无序列表
单行代码块 with Both Chines and English Text
分割线

| 内容类 HTML 嵌入 |
Markdown 扩展语法
表格
| 左对齐 | 居中对齐 | 右对齐 |
|---|---|---|
| / | 叫做 | 斜线 |
| | | 叫做 | 管道符 |
任务列表
折叠块
点击展开查看隐藏的惊喜
这是一个原生的 HTML 折叠块,常用于隐藏长代码或剧透内容。 结合 Markdown 语法,内部依然可以正常渲染:
- 列表项 1
- 列表项 2
下划线与名词解释
这是 带有下划线的文本,这是 插入的文本。
- Hexo
- 快速、简洁且高效的博客框架
- Butterfly
- 一个基于 Hexo 的高颜值且功能强大的主题
代码框
以下短例取自 Highlight.js 11.12.0 的语言识别测试,用于对照语法着色。Copyright © 2006 Ivan Sagalaev,见完整许可(BSD 3-Clause)。
C++
预处理指令、十六进制数与流运算符。
1 |
|
Java
文档注释、类声明与继承。
1 | /** |
Kotlin
注解、可空类型与字符串模板。
1 | import kotlinx.serialization.Serializable |
Python
装饰器、文档字符串与默认参数。
1 |
|
Bash
变量展开、条件判断与引号。
1 |
|
JavaScript
正则表达式、异常处理与对象。
1 | function $initHighlight(block, cls) { |
Stylus
变量、混入与缩进。
1 | @import "nib" |
HTML
标签内嵌的 CSS 和 JavaScript;正文加入中文以对照字形。
1 |
|
XML
这个独立样例用于区分命名空间、属性、实体与 CDATA。
1 |
|
等宽字体与横向滚动
比较数字和字母、运算符与中英文标点。第二行以一个制表符缩进,第三行以四个空格缩进;最后一行用于测试窄屏横向滚动。
1 | 0O 1lI | != <= >= => -> :: 中文,。 English,. |
长代码块
下面是 LLVM libc++ 18.1.8 的 std::sort 测试(许可证)。
1 | //===----------------------------------------------------------------------===// |
数学
单行公式
数学文字混杂
让我们尝试证明一个稍微复杂一些的等式:
我们可以使用二项式定理证明这个等式。二项式定理表述为:
现在,令 , ,然后代入:
这证明了 。
多行公式与对齐
麦克斯韦方程组(微分形式):
分段函数
符号函数 的定义如下:
矩阵
带有不同括号的矩阵测试:
微积分与极限
求导与积分的排版测试:
化学方程式专区
基础化学式与离子
分子:, ,
离子:, ,
同位素:,
复杂结构:
化学反应方程式
基础反应:
带有气体与沉淀符号:
反应条件与箭头符号
燃烧反应(箭头上方带条件):
加热条件(使用 \Delta):
可逆反应与平衡移动:
有机化学与多行反应
有机物结构简式:
核反应方程式:
渲染器拓展语法测试
这是 被注释文本
上标示例
下标示例
脚注示例 [1]
你知道的太多了!
Butterfly 拓展语法测试 [2]
Note
simple
默认 提示块标签
default 提示块标签
primary 提示块标签
success 提示块标签
info 提示块标签
warning 提示块标签
danger 提示块标签
modern
默认 提示块标签
default 提示块标签
primary 提示块标签
success 提示块标签
info 提示块标签
warning 提示块标签
danger 提示块标签
flat
默认 提示块标签
default 提示块标签
primary 提示块标签
success 提示块标签
info 提示块标签
warning 提示块标签
danger 提示块标签
disable
默认 提示块标签
default 提示块标签
primary 提示块标签
success 提示块标签
info 提示块标签
warning 提示块标签
danger 提示块标签
Gallery 相册图库 [3]
Gallery 相册 [4]
Tag Hide
哪个英文字母最酷?
Mermaid [5]
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
流程图
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
时序图
sequenceDiagram
Alice->>John: Hello John, how are you?
loop HealthCheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
甘特图
gantt
section Section
Completed :done, des1, 2014-01-06,2014-01-08
Active :active, des2, 2014-01-07, 3d
Parallel 1 : des3, after des1, 1d
Parallel 2 : des4, after des1, 1d
Parallel 3 : des5, after des3, 1d
Parallel 4 : des6, after des4, 1d
类图
classDiagram
Class01 <|-- AveryLongClass : Cool
<<Interface>> Class01
Class09 --> C2 : Where am I?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
class Class10 {
<<service>>
int id
size()
}
状态图
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
饼图
pie
"Dogs" : 386
"Cats" : 85
"Rats" : 15
用户体验旅程图
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 3: Me
C4 图
C4Context
title System Context diagram for Internet Banking System
Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.")
Person(customerB, "Banking Customer B")
Person_Ext(customerC, "Banking Customer C")
System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.")
Person(customerD, "Banking Customer D", "A customer of the bank, <br/> with personal bank accounts.")
Enterprise_Boundary(b1, "BankBoundary") {
SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.")
System_Boundary(b2, "BankBoundary2") {
System(SystemA, "Banking System A")
System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.")
}
System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.")
SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.")
Boundary(b3, "BankBoundary3", "boundary") {
SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.")
SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.")
}
}
BiRel(customerA, SystemAA, "Uses")
BiRel(SystemAA, SystemE, "Uses")
Rel(SystemAA, SystemC, "Sends e-mails", "SMTP")
Rel(SystemC, customerA, "Sends e-mails to")
Tabs
This is Tab 1.
This is Tab 2.
This is Tab 3.
Button
Butterfly Butterfly Butterfly Butterfly Butterfly Butterfly Butterflylabel
臣亮言:先帝创业未半,而中道崩殂。今天下三分,益州疲敝,此诚危急存亡之秋也!然侍衞之臣,不懈于内;忠志之士,忘身于外者,盖追先帝之殊遇,欲报之于陛下也。诚宜开张圣听,以光先帝遗德,恢弘志士之气;不宜妄自菲薄,引喻失义,以塞忠谏之路也。
宫中、府中,俱为一体;陟罚臧否,不宜异同。若有作奸、犯科,及为忠善者,宜付有司,论其刑赏,以昭陛下平明之治;不宜偏私,使内外异法也。
Timeline
2022
01-02
这是测试页面
ECharts
下面两张图共用一组虚构的池塘观察记录:在三个时段各观察十分钟,分别记录红蜻和碧伟蜓的目击次数。同一只蜻蜓可能被重复看到。
直角坐标系
横轴是观察时刻,纵轴是目击次数。点按图例可以单独查看一个物种,指向数据点可以比较同一时段的两条记录。
饼图
把三个时段相加,红蜻占 23 次目击中的 13 次。环形图展示两者的比例;点按或悬停可查看次数和百分比。
Chart.js
{
"type": "line",
"data": {
"labels": ["January", "February", "March", "April", "May", "June", "July"],
"datasets": [{
"label": "My First dataset",
"backgroundColor": "rgb(255, 99, 132)",
"borderColor": "rgb(255, 99, 132)",
"data": [0, 10, 5, 2, 20, 30, 45]
}]
},
"options": {
"responsive": true,
"title": {
"display": true,
"text": "Chart.js Line Chart"
}
}
}
{
"type": "radar",
"data": {
"labels": [
"Eating",
"Drinking",
"Sleeping",
"Designing",
"Coding",
"Cycling",
"Running"
],
"datasets": [
{
"label": "My First Dataset",
"data": [65, 59, 90, 81, 56, 55, 40],
"fill": true,
"backgroundColor": "rgba(255, 99, 132, 0.2)",
"borderColor": "rgb(255, 99, 132)",
"pointBackgroundColor": "rgb(255, 99, 132)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(255, 99, 132)"
},
{
"label": "My Second Dataset",
"data": [28, 48, 40, 19, 96, 27, 100],
"fill": true,
"backgroundColor": "rgba(54, 162, 235, 0.2)",
"borderColor": "rgb(54, 162, 235)",
"pointBackgroundColor": "rgb(54, 162, 235)",
"pointBorderColor": "#fff",
"pointHoverBackgroundColor": "#fff",
"pointHoverBorderColor": "rgb(54, 162, 235)"
}
]
},
"options": {
"elements": {
"line": {
"borderWidth": 3
}
}
}
}
{
"type": "pie",
"data": {
"labels": [
"编程",
"音乐",
"阅读",
"游戏",
"健身",
"旅游"
],
"datasets": [
{
"label": "喜爱指数",
"data": [
30,
24,
19,
14,
9,
4
],
"backgroundColor": {
"dark-mode": [
"rgba(255, 99, 132, 0.5)",
"rgba(54, 162, 235, 0.5)",
"rgba(255, 206, 86, 0.5)",
"rgba(75, 192, 192, 0.5)",
"rgba(153, 102, 255, 0.5)",
"rgba(255, 159, 64, 0.5)"
],
"light-mode": [
"rgba(255, 99, 132, 0.2)",
"rgba(54, 162, 235, 0.2)",
"rgba(255, 206, 86, 0.2)",
"rgba(75, 192, 192, 0.2)",
"rgba(153, 102, 255, 0.2)",
"rgba(255, 159, 64, 0.2)"
]
},
"borderColor": {
"dark-mode": [
"rgba(255, 99, 132, 1)",
"rgba(54, 162, 235, 1)",
"rgba(255, 206, 86, 1)",
"rgba(75, 192, 192, 1)",
"rgba(153, 102, 255, 1)",
"rgba(255, 159, 64, 1)"
],
"light-mode": [
"rgba(255, 99, 132, 1)",
"rgba(54, 162, 235, 1)",
"rgba(255, 206, 86, 1)",
"rgba(75, 192, 192, 1)",
"rgba(153, 102, 255, 1)",
"rgba(255, 159, 64, 1)"
]
}
}
]
},
"options": {
"plugins": {
"legend": {
"labels": {
"color": {
"dark-mode": "rgba(255, 255, 255, 0.8)",
"light-mode": "rgba(0, 0, 0, 0.8)"
}
}
}
}
}
}
除了计算机编程外,我想不出还有其他让我感兴趣的工作。 我可以无中生有地创造出精美的范式和结构, 在此过程中也解决了无数的小谜团。 I can’t think of any other job other than computer programming that interests me. I can create beautiful paradigms and structures out of nothing, Countless small mysteries are also solved in the process.
脚注是指附在文章页面的最底端的,对某些东西加以说明的注文。 ↩︎
代码来自 Butterfly 安裝文檔 (三) 主題配置 -1 | Butterfly,采用 CC-BY-NC-SA 协议授权 ↩︎
画作由 TysonTan 绘制,采用 CC-BY-SA 协议授权 ↩︎
图片来自 Butterfly ReadMe,采用 CC-BY-NC-SA 协议授权 ↩︎
代码来自 Mermaid ReadMe ↩︎




