Before starting with markdown, pls note all punctuation should be English.
Basic text formatting
Heading
Headings are marked with hashes #
, H1 uses one hash #
, H2 is ##
and so on.
# # Page title
A paragraph.
## ##Second heading
which redeners in HTML as:
<h1 id="page-title">Page title</h1>
<p>A paragraph.</p>
<h2 id="second-heading">Second heading</h2>
Emphasis
-
*italic*
and_italic_
render as italic -
**bold**
render as bold -
==highlight==
render as ==highlight==(don't have this function in jianshu) -
~~strikethrough~~
render asstrikethrough -
~subscript~
render as subscript , eg: H2O
Paragraph
Add a line break between two separate paragraph.
Line Break
Add a backslash\
inside a paragraph followed by a new line.
This is a paragraph`\`
with a line break
This renders as:
This is a paragraph
with a line break
Horizontal rules
Use three dashes ---
preceded and followed by a blank line, which renders as:
Blockquotes
Prefix each line with right angle bracket character >
>aaaaa
>bbbbb
>ccccc
This renders as:
aaaaa
bbbbb
ccccc
Link
[label](address)
eg: [百度](https://www.baidu.com)
This renders as
百度
List
Use asterisks or "lazy" numbering, use 4 space indent for nesting lists.
1. 2 spaces after a numbered list.
4 space indent for wrapped text.
2. 2 spaces again.
* 3 spaces after a bullet.
4 space indent for wrapped text.
1. 2 spaces after a numbered list.
8 space indent for the wrapped text of a nested list.
2. Looks nice, don't it?
* 3 spaces after a bullet.
This renders as:
- 2 spaces after a numbered list.
4 space indent for wrapped text. - 2 spaces again.
- 3 spaces after a bullet.
4 space indent for wrapped text.- 2 spaces after a numbered list.
8 space indent for the wrapped text of a nested list. - Looks nice, don't it?
- 2 spaces after a numbered list.
- 3 spaces after a bullet.
Code
- Use backticks for short code quotation
renders as`inline code`
inline code
- Use fenced codeblock ``` for long code quotation
Table
Header (left) | Header (center) | Header (Right)
:--------------- | :-------------: | -------------:
Cell 00 | Cell 01 | $10
Cell 10 | Cell 11 | $20
Header (left) | Header (center) | Header (Right) |
---|---|---|
Cell 00 | Cell 01 | $10 |
Cell 10 | Cell 11 | $20 |
Images
[图片上传失败...(image-9d3d25-1542360074493)]

网友评论