Markdown is a text-only markup language. It can format ordinary text content with simple markup syntax.

Compared to the WYSIWYG editor

Advantages: 1. Because it is pure text, the same editing effect can be obtained wherever Markdown is supported, which can let the author get rid of the trouble of typesetting and concentrate on writing. 2, simple operation. For example :WYSIWYG edit mark a title, first select the content, then click the title button in the navigation bar, select several levels of title. There are three steps. Markdown, on the other hand, simply adds a # to the header

Disadvantages: 1, need to remember some grammar (of course, is very simple. Five minutes). 2. Some platforms do not support Markdown editing mode.

Fortunately, Jane books supports Markdown editing mode.

How to open: Settings -> Default Editor ->Markdown editorCopy the code

A, the title,

Precede the text you want to set as a heading with # to indicate that one # is a primary heading, two # are secondary headings, and so on. Six levels of headings are supported.

Note: In standard syntax, # is followed by a space.

Example:

# this is primary headlines # # # # # this is secondary this is triple title # # # # this is 4 # # # # # this title is a category five titles # # # # # # this is six levels of headingsCopy the code

The effect is as follows:

This is a level one title

This is a secondary heading

This is a level 3 headline

This is a level 4 title

This is a level five headline
This is a six-level headline

Second, the font

  • bold

Use two asterisks on the left and right sides of bold text

  • italics

To tilt the text left and right with an asterisk wrapped

  • Italics bold

Use three asterisks on the left and right of slanted and bold text

  • Delete the line

To add a delete line on the left and right of the text with two ~~ marks

Example:

This is bold words * * * * * this is tilted text * ` this is italicized bold words * * * * * * ~ ~ this is the text strikethrough ~ ~Copy the code

The effect is as follows:

Three, references,

Just add > before the quoted text. References can also be nested, such as adding two >> three >> N… It looks like we can keep adding, but there’s no eggs, right

Example:

> This is the content of the quote >> this is the content of the quote >>>>>>>>>> this is the content of the quoteCopy the code

The effect is as follows:

This is the quote

This is the quote

This is the quote

Four, secant line

Three or more – or *.

Example:

-- -- -- - * * * * * * * *Copy the code

As you can see, the display effect is the same.

Five, the picture

Grammar:

! [Image Alt](image address '' image title'') Image Alt is the text displayed under the image, which acts as an explanation of the content of the image. Picture title is the title of the picture and what is displayed when the mouse moves over the picture. Title can be added or notCopy the code

Example:

! [blockchain] (https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/ u = 702257389127025, 419 & FM 27 & gp = = 0. JPG "block chain")Copy the code

The effect is as follows:

blockchain

Upload a local image Click the image icon on the navigation bar and select an image

The Markdown format pursues simple, multi-platform unification. Then the image storage is a problem, need to use the map bed, provide a unified external chain, so that there is no need to deal with the problem of pictures in different platforms. To write it once and use it everywhere. I have written an article about the choice of graph bed, which summarizes the various methods available on the Internet. If you need a friend, you can have a look. Markdown figure bed

6. Hyperlinks

Grammar:

[Hyperlink name](hyperlink address "hyperlink title") Title can be added or notCopy the code

Example:

[baidu] (http://baidu.com)Copy the code

The effect is as follows:

baidu

Note: Markdown syntax does not support links to be opened in new pages. Other platforms may not work, but if you want to open it in a new page, you can use the HTML a tag instead.

< a href = "hyperlink address" target = "_blank" > links of example < / a > < a href = "https://www.jianshu.com/u/1f5ac0cf6a8b" target = "_blank" > < / a > Jane booksCopy the code

Seven, lists,

Unordered list

Syntax: Use either – + * for an unordered list

- List contents + List contents * List contents Note: There must be a space between - + * and the list contentsCopy the code

The effect is as follows:

  • List the content
  • List the content
  • List the content
An ordered list

Syntax: dot numbers

1. List contents 2. List contents 3. List contents Note: There must be Spaces between the serial number and the list contentsCopy the code

The effect is as follows:

  1. List the content
  2. List the content
  3. List the content
Nested list

Type three Spaces between the upper level and the lower level

  • Level 1 unordered list content

    • Secondary unordered list content
    • Secondary unordered list content
    • Secondary unordered list content
  • Level 1 unordered list content

    1. Second order list contents
    2. Second order list contents
    3. Second order list contents
  1. Level 1 ordered list content

    • Secondary unordered list content
    • Secondary unordered list content
    • Secondary unordered list content
  2. Level 1 ordered list content

    1. Second order list contents
    2. Second order list contents
    3. Second order list contents

Eight, tables,

Grammar:

Header - | | | header header: - : | - : content of | | | | contents content content The second line segment header and content. - there is a line, in order to align, added a few words on both sides of the left - add: by default said text center - the right add: said words in the right Note: the native grammar with | wrapped up on both sides. Is omittedCopy the code

Example:

Name number | -- - | | skills: - : | - : liu2 bei4 | | cry eldest brother guan yu play | | second brother zhang fei scold | | three younger brotherCopy the code

The effect is as follows:

Nine, code,

Syntax: Single line of code: Each code is enclosed in a single backquote

'Code content'Copy the code

Code block: Enclose the code in three backquotes, and the backquotes on each side are on a separate line

(` ` `) code... The code... The code... (` ` `)Copy the code

Note: in order to prevent translation, the three back quotes are enclosed in parentheses, which are not actually available. This is just for demonstration purposes, but in practice, you can remove the parentheses.

Example:

Single line of code

`create database hero; `Copy the code

The code block

(' ') function fun(){echo" } fun(); (` ` `)Copy the code

The effect is as follows:

Single line of code

create database hero;

The code block

Function fun(){echo "this is a very cool code "; } fun();Copy the code

X. Flow chart

Flow st=>start: start op=>operation: My operation cond=>condition: Yes or No? e=>end st->op->cond cond(yes)->e cond(no)->op &```Copy the code

The effect is as follows: Simple books do not support flowcharts, so cut a diagram

The flow chart. The PNG

Author: Gao Hongxiang links: www.jianshu.com/p/191d1e21f… The copyright belongs to the author, any form of reprint please contact the author to obtain authorization and indicate the source.