半个小时学会Markdown标记语法

Python数据挖掘与文本分析&Stata应用能力提升与实证前沿云特训
学习编程的过程需要敲大量代码,遇到很多错误,好脑子不如烂笔头,能一边敲代码一边做笔记,学起来事倍功半,今天分享大家一个做笔记的工具软件Typora。

  • N级标题

  • This is an H2

  • This is an H3

  • 加粗、斜体

  • 高亮

  • 下划线

  • 删除线

  • 引用

  • 列表

  • 有序列表

  • 无序列表

  • 代码块

  • 表格

  • 超链接

  • 插入图片

  • 任务清单

  • 数学公式

  • mermaid图表

半个小时学会Markdown标记语法
N级标题
一个#就是一个级,最多支持六级标题。

# This is an H1

## This is an H2

### This is an H3

效果如下

This is an H1
This is an H2
This is an H3

加粗、斜体


加粗的文本

加粗的文本

斜体文本

斜体文本

高亮
==highlight高亮==
==highlight高亮==

下划线
<u>下划线内容</u>
下划线内容

删除线


 ~~Mistaken text.~~

Mistaken text.

引用


> This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

效果如下

This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

列表
有序列表


ordered list:
1. Red
2. Green
3. Blue

ordered list:


Red
Green
Blue

无序列表


un-ordered list:
- Red
- Green
- Blue

un-ordered list:


Red
Green
Blue

代码块
一般情况下,word等office软件不支持代码高亮,且存储代码容易乱行。以typora为首的markdown语法完美支持各种代码,这里以Python代码为例


```python
import requests
url = 'https://www.baidu.com/'
resp = requests.get(url)

import requests
url = 'https://www.baidu.com/'
resp = requests.get(url)


**表格**
First Column Second Column
Content Cell1 Content Cell2
Content Cell3 Content Cell4

![](https://s4.51cto.com/images/blog/202012/30/7fd8ada5065beafe6240e8fd8e18f808.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
**超链接**

百度


百度

**插入图片**
插入图片的语法

![](图片文件路径或网址)
![](https://thunderhit.github.io/post/hugo/featured_hu9a15b8275a5635099198061a5e2dc1dd_3029870_720x0_resize_lanczos_2.png)
![](https://s4.51cto.com/images/blog/202012/30/d10c2b4c7505854f456242d1b2341127.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

**任务清单**

某日任务清单

  • [x] 6点起床
  • [ ] 步数达到10000步
  • [x] 读一小时书
  • [x] 日消费不超过50元

某日任务清单

* [x] 6点起床
* [ ] 步数达到10000步
* [x] 读一小时书
* [x] 日消费不超过50元
**数学公式**
在markdown中用$夹住Latex公式表达式

$\lim_{x \to \infty} \exp(-x) = 0$

$y = a*x + b$


**mermaid图表**
Typora中可以绘制流程图、序列图、状态图、甘特图、饼形图、类图等,这里以流程图为例
graph LR
 A-->B
 B-->C
 C-->D

graph LR
A-->B
B-->C
C-->D

猜你喜欢

转载自blog.51cto.com/15069487/2578561
今日推荐