How to gracefully use Markdown to write blog (line feed and nested lists)

Wrap with nested lists

This article describes how to use line breaks and nested lists recommended when writing blog.

About Wrap

Terms of Use

For ease of reading, it should limit the number of characters per line, normally have no more than 80 characters,
can be set in the editor.

suggestions below:

  1. After more than 80 characters wrap.
  2. After the end of a word (Or! Or?) Wrap.

Here Insert Picture Description


Nested list

Syntax examples below.

Here Insert Picture Description

The syntax is described below.

  1. The list can be nested list.
  2. Ordered list and unordered lists can also be nested to each other.

The following example demonstrates.

Here Insert Picture Description

Here Insert Picture Description

1. The list has line feed

If the list items have newline, it is recommended 1 empty line between list items, so it will be easier to distinguish between the beginning and the end of the multi-line list item.

recommend:

Here Insert Picture Description

Not recommended:

Here Insert Picture Description

2. The list of no line breaks

If a list of each item in the list are only one line, do not have blank lines between the recommended list items.

recommend:

Here Insert Picture Description
Not recommended:

Here Insert Picture Description


Here Insert Picture Description


Dividing line

In the Markdown, three or more of the separation line * / - marked / _.

The syntax is as follows.
Here Insert Picture Description

described as follows.

  1. Separation line must be of at least 3 * / - / _ marked.
  2. You can not have the other characters in the line.
  3. Tag can be added in the intermediate space.

The following example demonstrates.

Here Insert Picture Description

Here Insert Picture Description

Published 30 original articles · won praise 20 · views 1801

Guess you like

Origin blog.csdn.net/s1156605343/article/details/105025482