Markdown语法快速入门

1、标题

text
1 2 3 4 5 6 7
// # 一级标题《我的第一篇技术博客》
// ## 二级标题
// ### 三级标题
// #### 四级标题
// ##### 五级标题
// ###### 六级标题

示例

一级标题《我的第一篇技术博客》

二级标题

三级标题

四级标题

五级标题
六级标题

2、代码块

text
1 2 3 4 5 6 7 8 9 10
// ```python
hello = '你好'
name = '小a'
birthday = '1990年05月17日'
location = '海南海口'
introduction = '%s,我是%s,我来自%s,我的生日是%s' % (hello, name, location, birthday)
// ```

// 四个空格或者tab也行

示例

text
1 2
hexo g

3、字体

text
1 2 3
// **粗体字**
// *斜体字*

示例
粗体字
斜体字

4、分割线

text
1 2
// ***

示例


5、无序列表

text
1 2 3 4 5 6 7 8 9 10
// * 列表1
// * 列表2
// * 列表3
// #     马斯克的五步工作法
// > 1.     确保没有愚蠢的需求
// > 2.     在原有的基础上精简
// > 3.     在精简的基础上优化
// > 4.     在优化的基础上加速
// > 5.     最后实现自动化

示例

列表1 列表2 列表3

示例2

马斯克的五步工作法

text
1 2
 确保没有愚蠢的需求
text
1 2
 在原有的基础上精简
text
1 2
 在精简的基础上优化
text
1 2
 在优化的基础上加速
text
1 2
 最后实现自动化

6、链接

text
1 2 3
// [链接名称](链接地址)
// <链接地址>

示例
Markdown官网
https://markdown.com.cn/

7、图片

text
1 2 3
// ![alt 属性文本](图片地址)
// ![alt 属性文本](图片地址 "可选标题")

因为是在线文章,这里就不给示例了

原文地址:https://blog.csdn.net/m0_46428800/article/details/125130963?ops_request_misc=&request_id=2b738d7fd40e442a82fd9ffe84137110&biz_id=&utm_medium=distribute.pc_search_result.none-task-blog-2~all~koosearch~default-23-125130963-null-null.142^v88^insert_down28v1,239^v2^insert_chatgpt&utm_term=markdown