这篇文章分类总结了常用的Markdown的语法,包括如何嵌入H5,可以用作Markdown的语法字典。
一、字体
1.字体颜色
<font color=Blue>我是蓝色</font>
2.字体大小
3. 高亮代码块
- 脚本语言
```Bash
```
- C++
```C++
```
4. 加粗
**加粗**
5. math formula
markdown expression
Fractions: $\frac{a}{b}$
Superscripts: $x^2$
Subscripts: $x_i$
Square root: $\sqrt{x}$
Summation: $\sum_{i=1}^n i$
result below $\frac{a}{b}$ $x^2$ $x_i$ $\sqrt{x}$ $\sum_{i=1}^n i$
二、段落
- 无序列表
“*” + “ “ + 列表内容
- 首行缩进 在段落首行缩进的位置,先写下面这个代码(包括分号),然后再继续写后面的内容就可以了。这个代码写一次是空一格,两个就是空两格。
 
- 居中
# <center>一、习惯C++
- 换行
<br />
- 表格 使用jekyll时,如果选择kramdown作为引擎,表示表格时,如果使用表头,则表格前两行的结尾需要两个空格作为换行
icon
Arrows
Symbol | Decimal Entity | Hexadecimal Entity | Name |
---|---|---|---|
← | ← |
← |
Left Arrow |
↑ | ↑ |
↑ |
Up Arrow |
→ | → |
→ |
Right Arrow |
↓ | ↓ |
↓ |
Down Arrow |
↔ | ↔ |
↔ |
Left-Right Arrow |
↕ | ↕ |
↕ |
Up-Down Arrow |
Mathematical Symbols
Symbol | Decimal | Hexadecimal | Name |
---|---|---|---|
± | ± |
± |
Plus-Minus |
× | × |
× |
Multiplication |
÷ | ÷ |
÷ |
Division |
∞ | ∞ |
∞ |
Infinity |
≈ | ≈ |
≈ |
Approximately Equal |
≠ | ≠ |
≠ |
Not Equal |
Currency Symbols
Symbol | Name | Decimal Entity | Hexadecimal Entity |
---|---|---|---|
$ | Dollar | $ |
$ |
€ | Euro | € |
€ |
£ | Pound | £ |
£ |
¥ | Yen | ¥ |
¥ |
₹ | Rupee | ₹ |
₹ |
Punctuation
Symbol | Name | Decimal | Hexadecimal |
---|---|---|---|
© | Copyright | © |
© |
® | Registered | ® |
® |
™ | Trademark | ™ |
™ |
§ | Section Sign | § |
§ |
¶ | Pilcrow | ¶ |
¶ |
Stars and Shapes
Symbol | Name | Decimal ` | Hexadecimal ` |
---|---|---|---|
★ | Black Star | ★ |
★ |
☆ | White Star | ☆ |
☆ |
■ | Black Square | ■ |
■ |
□ | White Square | □ |
□ |
▲ | Black Triangle Up | ▲ |
▲ |
▼ | Black Triangle Down | ▼ |
▼ |
Hearts and Smileys
Symbol | Name | Decimal | Hexadecimal |
---|---|---|---|
♥ | Black Heart | ♥ |
♥ |
♡ | White Heart | ♡ |
♡ |
☺ | White Smiley Face | ☺ |
☺ |
☹ | Black Sad Face | ☹ |
☹ |
Miscellaneous
Symbol | Name | Decimal | Hexadecimal |
---|---|---|---|
🔒 | Lock | 🔒 |
🔒 |
🔖 | Bookmark | 🔖 |
🔖 |
🏷️ | Label Tag | 🏷 |
🏷 |
🚀 | Rocket | 🚀 |
🚀 |
📦 | Package | 📦 |
📦 |