Markdown Beginner's Guide to Writers

Source: Internet
Author: User

"Jane book" as a "writing software" at the beginning of the birth of support Markdown,markdown is an "e-mail" style of "markup language", we strongly recommend that all writers learn and master the language. Why? can refer to:

    • "Why writers should use Markdown to save their own manuscripts."
    • On "Markdown writing"

Here, we summarize the advantages of Markdown as follows:

    • Plain text, so compatibility is extremely strong and can be opened with all text editors.
    • Lets you focus on text rather than typography.
    • Format conversion Convenient, Markdown text you can easily convert to HTML, ebooks and so on.
    • Markdown's markup syntax is very readable.

Of course, if we admire Markdown, we will certainly teach you to use Markdown, which is the purpose of this article. However, although the syntax of Markdown is simple enough, but the existing Markdown syntax is more for the Web practitioners to see, for many writers, learning efficiency is very low, and now, we specifically tailor this guide for writers, from the writer's actual needs, Introduce the writer's real practical and useful format, and let you quickly master the Markdown grammar in simple and illustrated way.

To help you learn better, we recommend that you log in to the "Jane book", switch your editor to the Markdown Editor, create a new blank note, and then click Preview Mode in the upper-right corner:



At this point, your interface should be as shown, the editing area on the left, the preview area on the right, the text on the left of the Markdown syntax, and the right side will immediately help you to present the final result, OK, let's start learning ~


Title

This is the most commonly used format, most commonly used in the text editor is usually implemented as follows: Enter text, select the text, set the title format.

And in the Markdown, you just need to add in front of the text, in the same # vein, you can also increase the level two title, three-level title, four-level title, five-level title and six-level title, a total of six levels, only need to increase # , the title font size correspondingly reduced. For example:

# 一级标题## 二级标题### 三级标题#### 四级标题##### 五级标题###### 六级标题

Note: # It is recommended to keep a single character space between and "one-level title", which is the most standard Markdown notation.

You can try entering these six-level headings in your editor, which you can refer to below:


First level heading to level six title list

Table format is also very common, in the Markdown, you just need to add in front of the text - , for example:

- 文本1- 文本2- 文本3

If you want to have a list of sequences,
You can also add in front of the text 1. 2. 3. , for example:

1. 文本12. 文本23. 文本3

Note: - 1. the space between, and the text to keep one character.

The list of cases is as follows:


Links and Pictures

In Markdown, inserting links does not require other buttons, you only need to use [显示文本](链接地址) such syntax, for example:

[简书](http://www.jianshu.com)

In Markdown, inserting a picture does not require a different button, you just need to use ![](图片链接地址) this syntax, for example:

![](http://ww4.sinaimg.cn/bmiddle/aa397b7fjw1dzplsgpdw5j.jpg)

Note: The syntax for inserting a picture is much like the syntax of a link, just one more front .

Insert links and pictures in the case:


Reference

When we write, we often need to refer to other people's text, this time it is necessary to refer to this format, in Markdown, you just need to put in front of the text you want to reference > , such as:

> 一盏灯, 一片昏黄; 一简书, 一杯淡茶。 守着那一份淡定, 品读属于自己的寂寞。 保持淡定, 才能欣赏到最美丽的风景! 保持淡定, 人生从此不再寂寞。

Note: > space between and text to keep one character.

The final display is:

A light, a dim, a simple book, a cup of light tea. Guarding that a calm, quality reading belongs to their loneliness. Keep calm, can enjoy the most beautiful scenery! Keep calm, life is no longer lonely.

Cited cases:


Bold and italic

Markdown Bold and italic are also very simple, with two * contains a paragraph of text is the syntax of bold, with a * paragraph containing a text is italic syntax. For example:

*一盏灯*, 一片昏黄;**一简书**, 一杯淡茶。 守着那一份淡定, 品读属于自己的寂寞。 保持淡定, 才能欣赏到最美丽的风景! 保持淡定, 人生从此不再寂寞。

The final display is the following, where "one lamp" is italic, "a simple book" is bold:

a light , a dim, a Simple book , a cup of light tea. Guarding that a calm, quality reading belongs to their loneliness. Keep calm, can enjoy the most beautiful scenery! Keep calm, life is no longer lonely.

Examples of bold and italic:


Code reference

When you need to reference the code, if you refer to a statement that has only one paragraph, do not branch, you can wrap the statement with '.
If the referenced statement is more than one line, you can put ' ' in the first and last lines of the code.
Examples of code references:


Form

Related code:

Tables        | Are           | Cool  || ------------- |:-------------:| -----:|| col 3 is | right-aligned | $1600 || col 2 is | centered | $12 || zebra stripes | are neat | $1 |

Display effect:

is
Tables Cool
Col 3 is right-aligned $1600
Col 2 is Centered $
Zebra Stripes Is neat $


Related code:

dog | bird | cat----|------|----foo | foo  | foobar | bar  | barbaz | baz  | baz

Display effect:
Dog | Bird | Cat
----|------|----
Foo | Foo | Foo
Bar | Bar | Bar
Baz | Baz | Baz

Display a picture with parentheses in the link

The code is as follows:

![][1][1]: http://latex.codecogs.com/gif.latex?\prod%20\(n_{i}\)+1
Conclusion

The above several formats are more commonly used format, so we have made a more detailed explanation for these syntax. In addition to these, Markdown has other syntax, such as to learn more and learn more, you can refer to this "Markdown grammar explanation."

It is highly recommended that you immediately write an article with Markdown and experience the elegance of Markdown!

Finally, we hope that our guide can help you, and that "Jane's book" will be your best choice for writing Markdown.



Wen/Pinterest (Jane book author)
Original link: Http://www.jianshu.com/p/q81RER
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".

Markdown Beginner's Guide to Writers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.