Skip to main content

markdown usages | Markdown语法

markdown是一种的文本语言,markdown用简单的文本规则即可表达基本的格式。由于其使用文本编码,计算机不需要转换格式即可直接读取内容,成为了在AI训练的首选文本语言。

Basic usage | 进阶用法

Markdown ElementMarkdown Code ExamplesOutput
Heading
# H1
## H2
### H3

H1

H2

H3

Bold**bold text**bold text
Italic*italicized text*italicized text
Blockquote> blockquote
blockquote
Ordered List
1. First item
2. Second item
3. Third item
  1. First item
  2. Second item
  3. Third item
Unordered List
- First item
- Second item
- Third item
  • First item
  • Second item
  • Third item
Code`code`code
Horizontal Rule---
Link[betastory](https://betastory.workapp.uk)betastory
Image![logo](/img/logo.svg)logo

advanced usage | 进阶用法

Markdown ElementMarkdown Code ExamplesOutput
Tablesee belowsee below
Fenced Code Blocksee belowsee below
Footnote
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
Here's a sentence with a footnote.1
1. This is the footnote.
Heading ID### My Great Heading {#custom-id}

My Great Heading

Definition Listterm<br/>: definition
term
definition
Strikethrough~~The world is flat.~~The world is flat.
Task List- [x] Write the press release<br/>- [ ] Update the website<br/>- [ ] Contact the media
  • Write the press release
  • Update the website
  • Contact the media
EmojiThat is so funny! :joy:That is so funny! 😂
HighlightI need to highlight these ==very important words==I need to highlight these very important words
SubscriptH~2~OH2O
SuperscriptX^2^X2

table

example:

| firstName | lastName | age |
| - | - | - |
| John | Smith | 25 |

Output

firstNamelastNameage
JohnSmith25

Fenced Code Block

example:

```
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```

Output

{
"firstName": "John",
"lastName": "Smith",
"age": 25
}

References