Markdown Refernce
Markdown Refernce.
原文: https://commonmark.org/help/
还有一个在线学习的: https://commonmark.org/help/tutorial/
Markdown is a simple way to format text that looks great on any device. It doesn’t do anything fancy like change the font size, color, or type — just the essentials, using keyboard symbols you already know.
Type | Or | … to Get |
---|---|---|
*Italic* | _Italic_ | Italic |
**Bold** | __Bold__ | Bold |
# Heading 1 |
Heading 1 ========= |
Heading 1 |
## Heading 2 |
Heading 2 --------- |
Heading 2 |
[Link](http://a.com) |
[Link][1] ⋮ [1]: http://b.org |
Link |
![Image](http://url/a.png) |
![Image][1] ⋮ [1]: http://url/b.jpg |
|
> Blockquote |
Blockquote |
|
* List |
- List |
|
1. One |
1) One |
|
Horizontal Rule --- |
Horizontal Rule *** |
Horizontal Rule
|
`Inline code` with backticks |
Inline code with backticks
|
|
``` # code block print '3 backticks or' print 'indent 4 spaces' ``` |
····# code block ····print '3 backticks or' ····print 'indent 4 spaces' |
# code block
print '3 backticks or' print 'indent 4 spaces' |
Ghost 的 Markdown 及快捷键
Result | Markdown | Shortcut |
---|---|---|
Bold | **text** / __text__ | Ctrl/⌘ + B |
Emphasize | *text* | Ctrl/⌘ + I |
~~text~~ | Ctrl + Alt + U | |
Testtext | ^supertext^ | |
Textsubtext | ~subtext~ | |
Link | [title](http://) | Ctrl/⌘ + K |
Inline Code |
`code` | Ctrl/⌘ + Shift + K |
Image | ![alt](http://) | Ctrl/⌘ + Shift + I |
List | * item | Ctrl + L |
Ordered List | 1. item | Ctrl/⌘ + Alt + L |
Blockquote | > quote | Ctrl + Q |
Highlight |
==Highlight== | |
H1 | # Heading | |
H2 | ## Heading | Ctrl/⌘ + H |
H3 | ### Heading | Ctrl/⌘ + H (x2) |