Markdown常用基础语法,有这一篇就够了


typora-copy-images-to: markdown\基础语法操作


N级标题

一个#就是一级,最多支持6级

# This is an H1     等同语法ctrl+1
## This is an H2    等同语法ctrl+2
### This is an H3   等同语法ctrl+3

记住最后一个#后边有空格

加粗、斜体语法

加粗:
**需要加粗字体**

斜体:
*需要加斜字体*

效果如下:

加粗:
需要加粗字体

斜体:
需要加斜字体

高亮

==highlight高亮==

效果如下:

highlight高亮

下划线

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

效果如下:

下划线内容

删除线

 ~~Mistaken text.~~

效果如下:

Mistaken text.

引用

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

效果如下:

abc

def

列表

有序列表

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

效果如下:

  1. Red
  2. green
  3. blue

无序列表

un-ordered list:
- Red
- Green
- Blue

效果如下:

  • Red

  • Green

  • Blue

复选框

* [ ]	

效果如下图:

  • 复选框1
  • 复选框2

插入代码块

python示例

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

java示例

​```java
public static void main(String[] args){
    System.out.println("hello world")
}
​```

效果如下:

public static void main(String[] args){
    System.out.println("hello world")
}

表格

| First Column  | Second Column |
| ------------- | ------------- |
| Content Cell1 | Content Cell2 Content Cell2 |
| Content Cell3 | Content Cell4|

效果如下:

First ColumnSecond Column
Content Cell1Content Cell2 Content Cell2
Content Cell3Content Cell4

超链接

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

效果如下:

百度

生成索引目录

在需要生成目录的地方输入[TOC]即可

字体颜色调整
文本文字

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值