#Markdown * tips

Time:2020-7-31

         #Markdown * tips

Introduction: markdown is a lightweightMarkup LanguageIt’s so light that you don’t even call it a language, because markdown is easy to use. Just remember a few common tag usages. Markdown has many advantages: focusing on text, simple and efficient.

  don’t say much nonsense. Let’s talk about it in detailThose labels(only a few really)

Common titles

#For H1 (first level title)
##For H2 (secondary title)
###For H3 (Level 3 title)
Of course, and so on, up to H6

The effect is this:

For H1 (first level title)

For H2 (secondary title)

For H3 (Level 3 title)


Links (in two ways)

The first one[text](url)

[text](url)
For example: [workplace]( https://worktile.com )

The second kind[text][id] [id]:url

[text][id]

[id]:url
for instance:
[Worktile][1]

[1]: https://worktile.com

textIt represents the text you want to link to. The URL is the connection address. You can set the second ID as you like, but it is recommended to use numbers. In addition, it is recommended to use the second method in the paragraph[id]:urlAfter the paragraph; because links are often long, it will affect the beauty of the document. And it will be more efficient

Worktile

Worktile


Insert picture![](image-url)

It’s very similar to the first way of linking

![](image-url)
such as
![](http://ww3.sinaimg.cn/mw690/a8bd3be0gw1ekriurpvhej208o01mgnd.jpg)

The effect is this:

         #Markdown * tips


Bold ****

**This is the text to be bold * * the middle of the four asterisks is what you want to bold

I think this one is enough

This is the text to be boldIn the middle of the four asterisks is what you want to bold


Italics **

*This is the text you want to italicize * between the two asterisks is the text you want to italicize

This is enough. The effect is as follows:

This is what you want in italicsBetween the two asterisks is the text in italics


Code (developer specific)

The code is written between 'here is the code you want to write'. The 'sign (under Windows) is the key under ESC. If it is a code block, please put it in the middle of six symbols, and then press tab to indent

Direct code

function time_elapsed_A($secs){
            $bit = array(
                'y' => $secs / 31556926 % 12,
                'w' => $secs / 604800 % 52,
                'd' => $secs / 86400 % 7,
                'h' => $secs / 3600 % 24,
                'm' => $secs / 60 % 60,
                's' => $secs % 60
                );

            foreach($bit as $k => $v)
                if($v > 0)$ret[] = $v . $k;

            return join(' ', $ret);
            }

I don’t know how to describe it. I believe many developers understand it


Unordered list:

*Unordered list content 1
*Unordered list content 2
*Unordered list content 3
An asterisk plus a space. Notice that there is a space between the asterisk and the text

effect:

  • Unordered list content 1

  • Unordered list content 2

  • Unordered list content 3

Ordered list:
1. Ordered list content 1
2. Ordered list content 2
3. Ordered list content 3
A number plus a dot, there is a space between the text and the dot

The effect is this:

  1. Ordered list content 1
  2. Ordered list content 2
  3. Ordered list content 3

quote>

>This is what you're going to quote
Angle brackets to the right indicate references

effect:

This is what you’re going to quote


Horizontal split line ***

***This is a horizontal division line
It is indicated by three consecutive asterisks

effect:


Some tall use

Space    

  a space
&Emsp; two spaces, often used to indent paragraphs

The effect is as follows (please take a closer look at it)

A space
  two spaces, often used to indent paragraphs


Form:

|Mobile service|
| ------------- |:-------------:| -----:|
|Kelly bool|
|Li Hua cloudy raymon|
|Small red stoneware PPET|

Effects (wood and wood) are as follows:

|Web, mobile and customer service|
| ------------- |:-------------:| -----:|
|Kelly bool|
|Li Hua cloudy raymon|
|Small red stoneware PPET|

Or a little trouble

In summary:

In fact, markdown syntax is nothing more than a few commonly used symbols: ා * ()] > and

There are only five commonly used ones, and their combinations are not many. As for the introduction above, it will be very helpful for personal writing and editing documents to use them skillfully.