Skip to main content
markdown样式测试

markdown样式测试

··118 words·1 mins· loading · loading ·
松TvT
Author
松TvT
出自幽谷,迁于乔木
Table of Contents

说明
#

测试markdown基本元素以及一些扩展语法能否正常显示

1.代码块
#

fn collatz_steps(n: u32) -> Option<u32> {
    if n == 0 {
            return None;
    }
    let mut steps = 0;
    let mut current = n;
    while current != 1 {
            if current % 2 == 0 {
                    current /= 2;
            } else {
                    current = (3 * current + 1) / 2;
            }
            steps += 1;
    }
    Some(steps)
}

2.字体
#

加粗 ==高亮== 删除线 斜体 粗斜体 下划线

3.列表
#

  • BulletedList:-
  • BulletedList:+
  • BulletedList:*
  1. Numbered List
  2. Numbered List

4.表格
#

居中 居左 居右 常规
hello hello hello hello
使用 : 可以控制居中、左、右

5.区块
#

最外层

第一层

第二层

第四层

6.分割线
#

  1. ---

2.***


7.公式
#

已知\(|x|+|y|=0\), 则 $$ x=y=0 $$

8.图片
#

  • 插入图片的方法一

  • 插入图片的方法二

9.链接
#

bilibili