当前位置:网站首页>[markdown notes]

[markdown notes]

2022-04-23 16:58:00 Lily's autumn

1. Title Grammar

= perhaps - Mark and or secondary title

eg:

First level title

========

Secondary title

--------------

# The number can mark 1-6 Level title , The first level Title corresponds to a # Number , It's similar to ……

eg:

# First level title

## Secondary title

### Three level title

2. Picture grammar

![alt Attribute text ]( Picture address )

eg:![BAIDU Icon ](http://static.runoob.com/images/runoob-logo.png)

3. Paragraph grammar

Line break ------2 More than spaces + Enter key

Start a new paragraph ------ Add a blank line

4. Font Syntax

One */- The sign indicates Italic , Two */- For bold , Three */- Indicates bold italics .

* Italic text *

_ Italic text _

** Bold text **

__ Bold text __

*** Text in bold italics ***

___ Text in bold italics ___

5. Separator Syntax

Use more than three asterisks in a line 、 minus sign 、 Bottom line to create a separation line , There must be no other characters in the line .

You can also insert spaces between asterisks or minus signs .

***

* * *

*****

- - -

----------

Be careful , Here is the output divider , That is, a horizontal separation line , Not the symbol itself .

6. Strikethrough syntax

Add two... At both ends of the character ~~ Wave line is enough .

eg:

~~BAIDU.COM~~

7. Underline Syntax

Use similar to HTML, Add... At both ends of the character <u></u>.

8. Footnote grammar

[^ The text to be noted ]

  The footnotes here feel like superscripts .

9. List syntax

Unordered list :*、+、- Add space

Ordered list : Number plus . The sign means

Nested list : Add... Before the sub list 4 A space

10. Block syntax

Use... At the beginning of the paragraph > Symbol plus a space

Can be more > nesting , You can also join the list and nest with each other . 

11. Link Syntax

[ Link name ]( Link address ) perhaps < Link address >

eg: This is a link [ Baidu ](https://www.baidu.com) 

12. Code syntax

Wrap in backquotes

eg:`printf()`

Code block use 4 A space or tab key .

It can also be used.  ```  Package a piece of code , And designate a language ( Or not ):

```javascript
$(document).ready(function () {
    alert('RUNOOB');
});
```

13. Table Syntax

A little , The form is too complicated , How troublesome! , Another way .

14. Other skills

see :Markdown Advanced skills | Novice tutorial

版权声明
本文为[Lily's autumn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230555126839.html