Some Markdown Syntax
Common Syntax
Escape
These characters cannot be directly printed. Must prefixed with \
1
2
3
4
5
6
7
8
9
10
11
12
13
\
`
*
_
{}
[]
()
#
+
-
.
!
Syntax
1 | *IDLER* |
e.g.
IDLER
*IDLER*
Extension Syntax
Strikethrough
Syntax
1 | ~~Strikethrough~~ |
e.g.
Strikethrough
Code Highlights
Syntax
``` [c/c++/sh/js …]
CODE
```
e.g.
1 | class Markdown { |
TaskList
Syntax
1 | - [x] Code |
e.g.
- [x] Code
- [x] C艹
(Sigh… Hexo can not parse indent tasklist)
- [x] C艹
- [ ] Sleep
Table
Syntax
Split by |
and -
1
2
3
4book | id
-----| ---
SICP | 1123
CLRS | 12312
e.g.
book | id |
---|---|
SICP | 1123 |
CLRS | 12312 |
Syntax
For clarity, prefer to reverse blank with two sides of |
and -
.1
2
3
4| book | id |
| ---- | --- |
| SICP | 1123 |
| CLRS | 12312 |
e.g.
book | id |
---|---|
SICP | 1123 |
CLRS | 12312 |
Syntax
:---
align left:--:
align center---:
align right
Without align mark :---
, :--:
and ---:
, the default configuration is that, head cells with :--:
and table cells with :---
.
1 | | left | center | right | |
e.g.
left | center | right |
---|---|---|
aaaa | bbbbbb | ccccc |
a | b | c |