Markdown 语法 cheatsheet

43 阅读1分钟

基本语法

ElementMarkdown Syntax
Heading# H1 ## H2 ### H3
Bold**bold text**
Italic*italicized text*
Blockquote> blockquote
Ordered List1. First item 2. Second item 3. Third item
Unordered List- First item - Second item - Third item
Code`code`
Horizontal Rule---
Link[title](https://www.example.com)
Image![alt text](image.jpg)

扩展语法

ElementMarkdown Syntax
Table`SyntaxDescription----------------------HeaderTitleParagraphText`
Fenced Code Block``` {   "firstName": "John",   "lastName": "Smith",   "age": 25 } ```
FootnoteHere's a sentence with a footnote. [^1] [^1]: This is the footnote.
Heading ID### My Great Heading {#custom-id}
Definition Listterm : definition
Strikethrough~~The world is flat.~~
Task List- [x] Write the press release - [ ] Update the website - [ ] Contact the media
Emoji (see also Copying and Pasting Emoji)That is so funny! :joy:
HighlightI need to highlight these ==very important words==.
SubscriptH~2~O
SuperscriptX^2^

其他

换行:句末两个或多个空格进行换行,或者 <br> 换行。

参考

Markdown Cheat Sheet | Markdown Guide
Markdown 换行语法 | Markdown 教程