KotoriKotori

Markdown Style Test

2024-12-31

This test document aims to verify the display effects of different styles and functions in the theme. Each syntax includes examples and how to use it.


Headings

In Markdown, headings are defined using #, the number of # indicates the level of the heading.

1
2
3
4
5
6
# Level 1 Heading
## Level 2 Heading
### Level 3 Heading
#### Level 4 Heading
##### Level 5 Heading
###### Level 6 Heading

Level 1 Heading

Level 2 Heading

Level 3 Heading

Level 4 Heading

Level 5 Heading
Level 6 Heading

Text Formatting

Bold

Syntax: **bold text**
Bold Text

Italic

Syntax: *italic text*
Italic Text

Bold Italic

Syntax: ***bold italic text***
Bold Italic Text

Strikethrough

Syntax: ~~strikethrough text~~
Strikethrough Text

Emoji Support

Syntax: :emoji_name:
Example: :smile: :heart: :+1:
:smile: :heart: :+1:


Blockquotes

Blockquotes start with >.

1
2
3
> Single line quote
>
> Multi-line quotes need `>` at the beginning of each line.

I dwell in Possibility –1
A fairer House than Prose –
More numerous of Windows –
Superior – for Doors –

Of Chambers as the Cedars –
Impregnable of eye –
And for an everlasting Roof
The Gambrels of the Sky –

Of Visitors – the fairest –
For Occupation – This –
The spreading wide my narrow Hands
To gather Paradise –


Horizontal Line

Syntax: --- or ***
Example:



Images

The syntax for inserting an image is: ![alt text](image URL).

1
2
![Hexo Logo](https://hexo.io/icon/favicon-196x196.png)
![Hexo Logo](/source/images/14813.jpg)

Hexo Logo


Code

Use three backticks ```` to enclose code blocks, supporting multiple programming languages.

1
2
3
~~~language
Code content
~~~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
fn merge_sort<T: Ord + Clone>(arr: &[T]) -> Vec<T> {
if arr.len() <= 1 {
return arr.to_vec();
}
let mid = arr.len() / 2;
let left = merge_sort(&arr[..mid]);
let right = merge_sort(&arr[mid..]);
merge(&left, &right)
}

fn merge<T: Ord + Clone>(left: &[T], right: &[T]) -> Vec<T> {
let mut result = Vec::with_capacity(left.len() + right.len());
let mut i = 0;
let mut j = 0;
while i < left.len() && j < right.len() {
if left[i] <= right[j] {
result.push(left[i].clone());
i += 1;
} else {
result.push(right[j].clone());
j += 1;
}
}
result.extend_from_slice(&left[i..]);
result.extend_from_slice(&right[j..]);
result
}

fn main() {
let arr = vec![38, 27, 43, 3, 9, 82, 10];
let sorted_arr = merge_sort(&arr);
println!("{:?}", sorted_arr);
}

Lists

Unordered List

Syntax:

1
2
3
4
* Item 1
* Item 2
* Subitem 2.1
* Subitem 2.2
  • Item 1
  • Item 2
    • Subitem 2.1
    • Subitem 2.2

Ordered List

Syntax:

1
2
3
4
1. Item 1
2. Item 2
1. Subitem 2.1
2. Subitem 2.2
  1. Item 1
  2. Item 2
    1. Subitem 2.1
    2. Subitem 2.2

Mathematical Formulas

Formulas use $...$ for inline or $$...$$ for block display.

1
2
3
4
5
6
Inline formula example: $E = mc^2$

Block formula example:
$$
a^2 + b^2 = c^2
$$

Inline formula example: E=mc2E = mc^2

Block formula example: L(w)=1Ni=1N[yilog(σ(wTxi))+(1yi)log(1σ(wTxi))]L(w) = -\frac{1}{N} \sum_{i=1}^{N} \left[ y_i \log(\sigma(w^T x_i)) + (1 - y_i) \log(1 - \sigma(w^T x_i)) \right]


Tables

Tables are separated using |.

1
2
3
4
| Name  | Age | Gender |
|-------|-----|--------|
| Alice | 25 | Female |
| Bob | 30 | Male |
NameAgeGender
Alice25Female
Bob30Male

Collapsible Section

Use <details> and <summary> to create a collapsible section.

1
2
3
4
<details>
<summary>Click to expand</summary>
Hidden content.
</details>
Click to expandHidden content.

Center-aligned Text

Center alignment can be achieved using Tailwind CSS classes.

1
<div class="text-center">Center-aligned text</div>
Center-aligned text

English Test

The Brain—is wider than the Sky2

The Brain — is wider than the Sky —
For — put them side by side —
The one the other will contain
With ease — and You — beside —

The Brain is deeper than the sea —
For — hold them — Blue to Blue —
The one the other will absorb —
As Sponges — Buckets — do —

The Brain is just the weight of God —
For — Heft them — Pound for Pound —
And they will differ — if they do —
As Syllable from Sound —


Chinese-English Mixed Example

2008年北京奥运会:体育与文化的辉煌盛宴
本站特约记者ChatGPT报道3

2008年北京奥运会于88日至824日举行,成为一场震撼全球的体育盛宴。开幕式在鸟巢(北京国家体育场)举行,场面宏大且富有象征意义。2008名击鼓手与18分钟的《画卷》表演将中国悠久的历史和深厚的文化底蕴展现得淋漓尽致,而李宁以空中点火的方式点燃了奥运圣火,瞬间点燃了全国观众的激情。中国代表团在本届奥运会上表现卓越,最终以51枚金牌创下历史最高纪录,位居奖牌榜首。跳水项目成为中国代表团的“梦之队”,包揽了所有8枚金牌,体操选手也为中国增添了7枚金牌,展现了强大的竞技实力。尽管刘翔因伤在110米栏预赛中遗憾退赛,但他的勇气与努力依然成为人们心中难以忘怀的记忆。中国男篮由姚明与易建联领衔,尽管未能夺得金牌,但他们的奋力拼搏赢得了国际尊重。国际赛场上,美国游泳明星Michael Phelps8枚金牌打破历史纪录,成为奥运史上最伟大的游泳选手,而牙买加的Usain Bolt则以破纪录的速度在100米、200米和4×100米接力中斩获三枚金牌,成为“跑得最快的人”。北京奥运会的场馆设计也成为全球瞩目的焦点,鸟巢和水立方(国家游泳中心)不仅是比赛场地,更是展示中国现代化与创新能力的建筑奇迹。鸟巢结合了传统的“鸟巢”概念与现代建筑技术,而水立方的膜结构设计引领了全球建筑潮流。此次奥运会还创下了多项历史“首次”:首次有43个国家和地区首次参加奥运会;首次在中国举办奥运会;首次大规模应用绿色技术于奥运场馆建设和运营。此外,北京奥运会的志愿者队伍也成为一道亮丽的风景线,他们被亲切地称为“微笑大使”,为奥运会增添了无数温暖的亮点。2008年北京奥运会不仅是一场盛大的体育赛事,更是一次展示中国开放形象、文化交流的重要窗口,向全球观众展示了中国的繁荣与自信,留下了深刻印象。

Footnotes and References

Syntax: [^note name] to define footnotes.

1
2
Refer to the creation of something[^something].
[^something]: Created by Someone

Refer to the creation of something4.


References


  1. Dickinson, Emily. I dwell in Possibility. Poems: Packet XIX, Fascicle 22 (1862).↩︎

  2. Dickinson, Emily. The Brain—is wider than the Sky. (1896).↩︎

  3. Generated by ChatGPT.↩︎

  4. Created by Someone.↩︎