Markdown 備忘單

2025-02-19 18:24 更新

這是 Markdown 語法的快速參考備忘單。

標題(atx 樣式)

# h1
## h2
### h3
#### h4
##### h5
###### h6

標題(settext 樣式)

Header 1
========
Header 2
--------

塊引用

> This is
> a blockquote
>
> > Nested
> > Blockquote

無序列表

* Item 1
* Item 2
    * item 3a
    * item 3b

或者

- Item 1
- Item 2

或者

+ Item 1
+ Item 2

或者

- [ ] Checkbox off
- [x] Checkbox on

有序列表

1. Item 1
2. Item 2
    a. item 3a
    b. item 3b
[link](http://google.com)
[link][google]
[google]: http://google.com
<http://google.com>

重點

*italic*
_italic_
**bold**
__bold__
`inline code`
~~struck out~~

水平線

連字符

---

星號

***

下劃線

___

代碼

```javascript
console.log("This is a block code")
```
~~~css
.button { border: none; }
~~~
    4 space indent makes a code block

內(nèi)聯(lián)代碼

`Inline code` has back-ticks around it

| Left column | Center column | Right column |
|:------------|:-------------:|-------------:|
| Cell 1      | Centered      | $1600        |
| Cell 2      | Cell 3        | $12          |

簡約風格

Left column | Center column | Right column 
:---:|:---:|:---:
Cell 1 | Centered | $1600 
Cell 2 | Cell 3 | $12 

Markdown表生成器:tableconvert.com

圖片

![GitHub Logo](/images/logo.png)

![Alt Text](url)
[![GitHub Logo](/images/logo.png)](https://github.com/)

[![Alt Text](image_url)](link_url)

參考款式

![alt text][/images/logo.png]

[logo]: /images/logo.png "Logo Title"

反斜杠轉(zhuǎn)義

人物 逃脫 描述
\ \\ 反斜杠
` \` 反引號
* \* 星號
_ \_ 下劃線
{} \{} 大括號
[] \[] 方括號
() \() 括弧
# \# 井號
+ \+ 加號
—— \- 減號(連字符)
. \.
\! 感嘆號


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號