< markdown > Introduction to markdown

(1) What is Markdown

Markdown is a lightweight markup language, which allows people to write documents in a plain text format that is easy to read and write. With the help of markdown, people can quickly typeset and transform them into rich HTML pages. At present, it is used by more and more writers and workers. Its grammar is very simple, the commonly used symbols are few, the learning time is little, once mastering this kind of markup language, it will greatly improve the efficiency. But if you need complex layout, such as left and right alignment indentation, or choose professional software such as word.

Markdown uses simple syntax instead of typesetting, rather than setting typesetting, font, insertion, etc. with commonly used Word processing software or Pages. Mark language can realize font size, insert table, picture, hyperlink, footnote and so on through keyboard.

(2) Advantages of Markdown

The biggest benefit is: quick mastery.

It is simple, suitable for all people, and easy to open. It is not necessary to open documents with lower version of word and higher version of word.

Avoid software differences, such as wps, and see different word documents.

Convenient and fast typesetting, saving time.

Easy to export to HTML, PDF format.

Plain text content, compatible with all text editors and word processing software.

There are many editors that support Markdown syntax, and some websites also support it.

(3) Markdown's tools

Mac platform:
Mo tool: free and easy to use. It supports real-time preview, single document. On the left is the edited Markdown language, and on the right is the preview effect.

Ulysses III: charging, supporting more writing formats, supporting multiple documents, and supporting the management of Folder and Filter.

Other software includes iA Writer, Writer Pro, etc.

Windows:
Mark downpad, mark pad, mark Feixiang (editor for impression notes), Miu, Atom, Typora, Rstudio, etc.

IOS terminal:
Drafts, Day One, iA Writer, etc.

Linux terminal:
Atom,ReText,UberWriter,RStudio

Browser plug in:
Markdown Here,MaDo (Chrome),Marxico(Chrome)

Web terminal:
Short book (support real-time preview), Draftin online editor, etc.

Two online editors:
http://daringfireball.net/projects/markdown/dingus

https://stackedit.io/

(4) Markdown usage syntax

Segments and branches

To separate a paragraph with one or more blank lines; to wrap within a paragraph with two or more spaces.

Title

This is an H1
=============

This is an H2
-------------

# This is an H1

##  This is an H2

######  This is an H6

Quote

Write a > before each line:

> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
>
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
> id sem consectetuer libero luctus adipiscing.

Effect:

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.

Or write a > before each paragraph:

> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.

Multiple reference

> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.

Effect:

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

list

List items take up one line, starting with *, +, -:

*   Red
*   Green
*   Blue

Effect:

  • Red
  • Green
  • Blue

An ordered list simply needs to replace the above markers with numbers and periods. And the order is determined by the writing order, regardless of the number, but the number needs to start from 1. For example:

1\.  Bird
3.  McHale
2.  Parish

Effect:

  1. Bird
  2. McHale
  3. Parish

Each list item can have multiple lines:

*   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.
*   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.

Effect:

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
  • Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.

Code block

Indenting four or more spaces in front of each line is considered the beginning of a code block. Output as is within the code block.

This is a normal paragraph:

    This is a code block.

Effect:

This is a normal paragraph:

This is a code block.

Horizontal line

Three or more *, - (spaces between them are possible) produce horizontal lines:

* * *

Effect:

link

Inline links:

I get 10 times more traffic from [Google](http://google.com/ "Google")
than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
[MSN](http://search.msn.com/ "MSN Search").

Or a reference link (the default link tag is considered consistent with the text):

I get 10 times more traffic from [Google] [1] than from
[Yahoo] [2] or [MSN] [3].

  [1]: http://google.com/        "Google"
  [2]: http://search.yahoo.com/  "Yahoo Search"
  [3]: http://search.msn.com/    "MSN Search"

I get 10 times more traffic from [Google][] than from
[Yahoo][] or [MSN][].

  [google]: http://google.com/        "Google"
  [yahoo]:  http://search.yahoo.com/  "Yahoo Search"
  [msn]:    http://search.msn.com/    "MSN Search"

Effect:

I get 10 times more traffic from Google than from Yahoo or MSN.

If you directly use the link address as the link text, you can use the following shortcut:

<http://Www.shengbin. Me > effect:

http://www.shengbin.me

Emphasize

A single * or a * produces italics, and two (* *,) produce bold. For example:

*like* _this_

**like** **this**

Effect:

like this

like this

Embedded code

code: `echo hello`

Effect:

code: echo hello

picture

The picture is similar to the link, just add an exclamation point! Before the text. Picture location and size cannot be specified through Markdown.

Escape character

The following special characters need to be escaped with \.

\   backslash
`   backtick
*   asterisk
_   underscore
{}  curly braces
[]  square brackets
()  parentheses
#   hash mark
+   plus sign
-   minus sign (hyphen)
.   dot
!   exclamation mark
Published 6 original articles, won praise 18, visited 1462
Private letter follow

Keywords: Google Mac Windows iOS

Added by worldofcarp on Mon, 24 Feb 2020 06:22:01 +0200