Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to MarkDown

2025-02-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Learning reasons and purposes of MarkDown Learning Notes

In daily work, it is often necessary to make work summaries and problem records. At first, I used word, but the startup speed of word is slow, and the operation is more complex, which often interrupts the previous train of thought. Later, I began to use notepad (Ultra Edit, sublime, etc.). Although it is easy to use, you can also set some fonts and themes. But the key points can not be expressed. Later, I found a rich text editor that comes with windows-WordPad rtf, so I used these three tools for a long time.

Accidentally, I saw the markdown editor recommended by others and Baidu found that this was exactly what I had always wanted. Easy to use, and can do some format typesetting on the tag, This is just what I want.

Description

In this article, I'm going to introduce some basic ways to use Markdown according to my study notes. It will not include complex chart content, I think the advantages of markdwon is easy to use, clear focus, a certain expansion of functions. There are Gantt charts, flowcharts, charts and so on, which are troublesome to use and have general functions, so they are not as good as making them with special tools.

Let's start with our content:

Text

Title

Use "#" to indicate the title, which works at the beginning of the line, otherwise it is an ordinary symbol.

# first-level title # / / in order to make it not work, we added two spaces in front of it, and the spaces will be discarded automatically after Markdown processing. If tab is used at the beginning of the line, it will make # effective

# # second-level title # #

According to the number of # in turn, there is a maximum of six headings.

New line

Generally speaking, when we press enter, we will only wrap lines in the editing interface, but not in the resulting text. At this point, you need to add two spaces at the end of the text line, and then enter.

List

Use "-" or "*" at the beginning of the line to indicate an unordered list

Use 1. 2. 3 at the beginning of the line. Indicates an ordered list

Quote

If you need to quote a short sentence from somewhere else, you need to use the citation format.

The way to use it is to add > before the first text of the line

Learning makes one progress / / > Learning makes one progress

Pictures and links

The way to use the link is: [display content] (address "prompt")

The way the picture is used is:! [display content] (address "prompt")

For example, Baidu knows

When using pictures, there are some inconvenient places, that is, the local picture editing interface does not look intuitive, it is best to use the link to give the picture.

! [pic] (https://cache.yisu.com/upload/information/20200311/29/192588.jpg)

Bold type

Use * to include text that needs to be bold. In order not to make it work, we added spaces.

Italic

Use * to include text that needs to be slanted. Italics / / * italics *

Bold italics can be included with *. Bold italics / / *

Code box

After the tab key is indented, the contents are automatically used as code. If you want to add code after indenting once, you need to use tab to indent one more level.

Int main ()

{

Printf ("hello")

}

Dividing line

A split line is automatically added below the title. If we insert the split manually, we can insert the split line with * or--.

Some editors will use the front line as the title line, bold the line, enlarge the font, and then insert a split line, mainly according to the flexibility of the specific tool.

End

So much for the basic usage.

I wish you all a smooth use and a happy life.

Attachment: http://down.51cto.com/data/2366607

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report