MarkDown语法备忘

MarkDown语法备忘

markdown - 百度百科,Markdown是一种轻量级标记语言,创始人为约翰·格鲁伯(英语:John Gruber)。也就是Markdown是一个标准,按照标准有.md.markdown扩展名文本文件。


Markdown备忘表-Markdown语法快速参考


MarkDown基础语法

这些是John Gruber原始设计文档中概述的元素。所有Markdown应用程序都支持这些元素。

元素Markdown 语法HTML
标题# H1
## H2
### H3
<h1>标题等级1</h1>
<h2>标题等级2</h2>
<h3>标题等级3</h3>
粗体**bold text**<strong>粗体字</strong>
斜体*italicized text*<em>斜体文字</em>
粗体和斜体***bold and italicized text***<strong><em>粗体和斜体文字</em></strong>
块引用> blockquote
有序列表1. First item
2. Second item
3. Third item
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
</ol>
无序列表- First item
- Second item
- Third item
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
</ul>
代码`code`<code>code</code>
水平线
超链接[title](https://www.example.com)
图片![alt text](image.jpg)

MarkDown扩展语法

元素Markdown 语法HTML
表格| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
围栏代码块```
{
“firstName”: “John”,
“lastName”: “Smith”,
“age”: 25
}
```
脚注Here’s a sentence with a footnote. [^1]
[^1]: This is the footnote.
标题ID### My Great Heading {#custom-id}<h3 id=“custom-id”>My Great Heading</h3>
链接到标题ID[Heading IDs](#heading-ids)<a href="#heading-ids">Heading IDs</a>
自定义列表term
: definition
<dl>
<dt>term</dt>
<dd>This is the definition of the first term.</dd>
</dl>
删除线~~The world is flat.~~
任务列表- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xhBruce

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值