markdown 语法_半个小时学会Markdown标记语法

学习编程的过程需要敲大量代码,遇到很多错误,好脑子不如烂笔头,能一边敲代码一边做笔记,学起来事倍功半,今天分享大家一个做笔记的工具软件Typora。
  • N级标题

  • This is an H2

    • This is an H3

  • 加粗、斜体

  • 高亮

  • 下划线

  • 删除线

  • 引用

  • 列表

    • 有序列表

    • 无序列表

  • 代码块

  • 表格

  • 超链接

  • 插入图片

  • 任务清单

  • 数学公式

  • mermaid图表

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高亮==

下划线

下划线内容

下划线内容

删除线

 ~~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:

  1. Red
  2. Green
  3. 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 |
First ColumnSecond Column
Content Cell1Content Cell2
Content Cell3Content Cell4

超链接

[百度](https://www.baidu.com/)

百度

插入图片

插入图片的语法

![](图片文件路径或网址)
![](https://thunderhit.github.io/post/hugo/featured_hu9a15b8275a5635099198061a5e2dc1dd_3029870_720x0_resize_lanczos_2.png)

任务清单

某日任务清单
- [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中可以绘制流程图、序列图、状态图、甘特图、饼形图、类图等,这里以流程图为例

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

-END-

已有50万人
领取Python案例实战课

e4d01e743edcbc278968cca7ca66e57a.png

世界正在奖励坚持学习的人!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值