MarkDown的使用(一)-今日精选
前言
刚刚步入工作,准备写博客来记录一下工作学习中遇到的困难,发现Markdown作为一款轻量级的文本标注语言编写博客较为轻松,故写下本篇记录Markdown语法的学习过程。初次写博客,若本文有什么不足之处,还请大家提出宝贵的意见。
【资料图】
1 文字的效果
正常文字
**加粗文字**
加粗文字
*文字倾斜*
文字倾斜
_文字倾斜_
文字倾斜
***倾斜加粗***
倾斜加粗
~~划线~~
划线
2 标题
# 一级标题
一级标题
## 二级标题
二级标题
### 三级标题
三级标题
………………
3 链接
3.1 链接图片


3.2 链接地址
http://www.baidu.com
4 分割线
---
***
___
5 代码块
5.1 tab
#include int main(){ printf("this is a test!\n"); return 0;}
5.2 单行代码一对反引号
this is a test
5.3 代码语法高亮
代码前一行三个反引号+代码类型代码后一行三个反引号
#include int main(){ printf("This is a test !\n"); return 0;}
5.4 html代码会自动识别(部分Markdown编辑器除外,如简书)
一 二 三 1 2 3
一 | 二 | 三 |
---|---|---|
1 | 2 | 3 |
6 列表
6.1 有序列表
使用数字和一个英文句点表示有序列表(内容前添加空格)
1. test2. test3. test
test
test
test
6.2 无序列表
使用 *,+,- 表示无序列表(内容前添加空格)
* test+ test- test
- test
- test
- testv
7 表格
表格对齐方式:冒号在左边表示左对齐,右边表示有对齐,两边都有表示居中。
| 班级 | 姓名 | 学号 || :---: | :--- | ---: || 1 | 王 | 11 || 2 | 张 | 22 || 1 | 李 | 33 |
班级 | 姓名 | 学号 |
---|---|---|
1 | 王 | 11 |
2 | 张 | 22 |
1 | 李 | 33 |
本文参考文章https://blog.csdn.net/u014061630/article/details/81359144?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168473065516800211532079%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=168473065516800211532079&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-81359144-null-null.142^v87^control_2,239^v2^insert_chatgpt&utm_term=markdown语法&spm=1018.2226.3001.4187
关键词: