This is my opinion Markdown to my greatest achievement

For a long time, I found that all the documents I saw on GitLab and GitHub are presented with .md extension, which is specifically written for developers file type. A few weeks ago, when I started using Markdown, my ideas changed. It quickly became my daily work the most important tool.

Markdown make my life easier. I just need to add some code has been written in symbols, and with the help of extensions or open source in the browser, you can convert the text to a variety of popular formats, such as ODT, e-mail (will be detailed later), PDF and EPUB.

What is Markdown?
Tips from Wikipedia:

Markdown is a lightweight markup language, with a plain text format syntax.

This means that by using some additional symbols in the text, Markdown can help you create a document with a specific structure and format. When you (for example, in Notepad application) to take notes in plain text, there is nothing to indicate which text should be bold or italic. In plain text, when you write a link needs to link written as "http://example.com", or written as "example.com", or they "visit the Web site (example.com)". So there is no internal consistency.

But if you are prepared in accordance with Markdown way, your text will have internal consistency. Computer like consistency, since it allows them to follow strict instructions not to worry exception.

Trust me; once you learn to use Markdown, each writing task easier and better than before to some extent will be. let's start.

Markdown basis
following are the basic syntax of Markdown.

1, in order to create a .md extension ending with a text file (for example, example.md). You can use any text editor (or even a word processing program such as Microsoft word or LibreOffice also), just remember to save it as a text file.

A Markdown Profile
Names of Markdown files

2, write what you what to write, as usual:

Lorem ipsum
consectetur adipiscing elit, sed tempor and vitality, so that the labor and sorrow, some important things to do eiusmod. Over the years, I will come, who will nostrud aliquip out of her the advantage of exercise, so that stimulus efforts if the school district and longevity.
Want to be a pain in the cupidatat cillum has been criticized in the Duis et dolore magna flee produces no resultant pleasure.
Excepteur cupidatat blacks are not excepteur, is soothing to the soul, that is, they deserted the general duties of those who are to blame for your troubles.
The Extremes of Good and Evil
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born, a complete account of the system, and expound the actual teachings of the great explorer of the truth and will unfold in the master-builder of human happiness.
Nemo enim ipsam voluptatem Quia voluptas SIT aspernatur AUT odit AUT Fugit, Sed Quia consequuntur Magni Dolores EOS Qui, ratione voluptatem Sequi nesciunt.
Neque Porro quisquam EST, Qui dolorem ipsum Quia dolor SIT amet, consectetur, adipisci velit, Sed Quia non Numquam eius Modi Tempora UT labore et dolore magnam incidunt aliquam quaerat voluptatem.
(LCTT Annotation: the above passage "Lorem ipsum", Chinese called "random fake text" is a commonly used in the layout design of Latin article, the main purpose of the test article or text looks at the effect of different fonts, version.)

3. Make sure that stay empty lines between paragraphs. If you're used to write business letters or traditional prose, it may feel unnatural, because there is only one line of a paragraph, even a retracted before the first word. For Markdown, blank lines (some text handler ¶, Pilcrow called symbols) to ensure that the application creates a new paragraph in another format (e.g., HTML).

4, specify a title and subtitle. For the title of the document, add a pound sign or hash symbol (#) and a space (for example, # Lorem ipsum) in front of the text. The first two levels of a subtitle (## De Bonorum et Malorum Finibus), using the next level three (### third subtitle), and so on. Note that there is a space between the pound and the first word.

Lorem Ipsum

Consectetur adipiscing elit, sed tempor and vitality, so that the labor and sorrow, some important things to do eiusmod. Over the years, I will come, who will nostrud aliquip out of her the advantage of exercise, so that stimulus efforts if the school district and longevity.
Want to be a pain in the cupidatat cillum has been criticized in the Duis et dolore magna flee produces no resultant pleasure.
Excepteur cupidatat blacks are not excepteur, is soothing to the soul, that is, they deserted the general duties of those who are to blame for your troubles.

On the ends of good and evil


For no one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because they do not know how to pursue pleasure rationally encounter consequences that are the sorrows of those who have.
Nor is there any person belonging, and their distressing anguish alone, that it dolor sit amet, consectetur, he wishes to obtain, but in labor and in pain because they do not have some great can never be attached to seek pleasure, as the manner of the times of the fall.
5,如果你想使用粗体字符,只需将字母放在两个星号之间,没有空格: 对应的文本将以粗体显示 .

A Markdown Profile
Bold text in Markdown

6, for italics, text with no spaces in between the underscore symbol: I hope this article appear in italics . (LCTT Annotation: Some schools will Markdown underlined string causes regarded as underlined text, while a single asterisk (*) was considered as a reference in italics up from a compatibility point of view, use the asterisk relatively compatible.)

A Markdown Profile
Italics text in Markdown

7, to insert a link (like Markdown Tutorial), you want to link the text in brackets, URL in brackets, no spaces: Markdown the Tutorial .

A Markdown About
Hyperlinks in Markdown

8, block quote is written in numbers greater than (>) before the text you want to quote plus the greater-than sign, and spaces:> famous quote.

A Markdown Profile
Blockquote text in Markdown

Markdown tutorials and tips
These tips can help you get started Markdown, but it covers a lot of features, not just bold, italics, and links. Markdown is the best way to learn to use it, but I suggest you spend 15 minutes to learn this simple Markdown tutorials, apply their knowledge, engage in active practice.

Due to the integration of many modern Markdown structured text concept of different interpretations, CommonMark project defines a specification, which contains a set of strict rules, so Markdown clearer. When editing on hand to prepare a list of shortcuts in line with CommonMark may be helpful.

What can you do Markdown
Markdown allows you to write anything you want to write, edit only once, you can transform it into virtually any format you want to use. The following example demonstrates how to use MD to write simple text and converted to a different format. You do not need a variety of document formats - you can just edit it once ... and then have unlimited possibilities.

1, a simple note: You can write your notes using Markdown, and when you save notes, open source note taking application Turtl will explain your text file and displays the corresponding format. You can put notes stored anywhere!

A Markdown Profile
Turtl application

2, PDF file: Use Pandoc application, you can use a simple command to convert Markdown files to PDF:

pandoc <file.md> -o <file.pdf>

About a Markdown
Markdown text converted to PDF with Pandoc

3, Email: Markdown Here you can expand by installing the browser will convert Markdown text email html format. To use it, simply select your Markdown text, Markdown is used here to convert it to HTML, and send messages using your favorite e-mail client.

About a Markdown
Markdown text converted to email with Markdown He

Start now to use it
you do not need a special application to use Markdown, you only need a text editor and the above tips. It is compatible with your existing way of writing; you need to do is to use it, so give it a try.

发布了3 篇原创文章 · 获赞 0 · 访问量 34

Guess you like

Origin blog.csdn.net/weixin_46220256/article/details/104070444