Markdown Introduction
Foreward
Markdown is a lightweight markup language, founded by John Gruber. It allows people to “write documents in plain text format that is easy to read and write, and then convert them into valid XHTML (or HTML) documents.”
Markdown Syntax
Insert picture
Syntax: ![Alt Text](url)
Example: ```
1
2
3
4
5
6
7
8
9
10
11
12
**Sample result:**
![Demo Image](http://image.wolfnx.com/markdown.jpg)
### Newline
The newline entered in the Markdown text is removed from the final generated result, and the browser automatically wraps based on the available space. If you want to force a line break, you can insert at least two spaces at the end of the line.
## Formatted text
**Example:**
斜体字
这也是斜体字
强调
这也是强调
同时使用强调和斜体
删除线
插入行内代码 public class
1 |
|
First level heading
Secondary title
…
Six r-level headings
1 |
|
Markdown is a lightweight markup language, founded by John Gruber.
It allows people to “write documents in plain text format that is easy to read and write,
and then convert them into valid XHTML (or HTML) documents.
1 |
|
Sample result: Markdown
Horizontal partition line
Example:
1 | * * * |
Sample result:
List
Unordered list:
Example:
1 | * Item 1 |
Sample result:
- Item 1
- Item 2
- Item 2a
- Item 2b
Ordered list:
Example:
1 | 1. Item 1 |
Sample result:
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
Code Highlight
Example:
Sample result:
1 | public class Demo { |
Escape
Markdown uses the backslash \ for escaping. Symbols that support escaping include \ ` * _ { } [ ] ( ) # + - . !
. To insert a space, use ``
Example:
1 | \*literal asterisks\* |
Sample result:
*literal asterisks*
Form
Example:
1 | First Header | Second Header | Third Header |
Sample result:
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | Content Cell |
Content Cell | Content Cell | Content Cell |
Editing tool
Support Chinese, easy to export to PDF file
Domestic Markdown editor
Native support Markdown, use the shortcut Ctrl + Shift + M to preview the effect in real time
Markdown preview plugin can be installed as needed
Reference
- https://zh.wikipedia.org/wiki/Markdown
- https://guides.github.com/features/mastering-markdown/
- http://wowubuntu.com/markdown/
Please indicate the source:http://www.wolfnx.com/2017/04/14/Markdown
Autor : wolfnx
Author Email : wolfnx@outlook.com