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

Markdown Grammar instruction and MWeb usage tutorial

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

The explanation of Markdown Grammar and the concept of MWeb usage course

Markdown wants to make it easy to read and write.

Readability is the most important, and a public Markdown document should be as simple and straightforward as it is, and will not look like it has been tagged or formatted.

Markdown grammar has only one purpose: to become the accepted standard format for web writing.

Prompt

In the editor, you can use Command+R or Command+4 to preview the document you are writing.

Title

Example:

# this is a ``tag # # this is a`` tag # this is a ``tag

The result of presentation:

This is a label that emphasizes

Example:

* this line format is italic * _ this line format is also italic _ * this line will be bold * _ this line will also be bold _ _ can also * * be used in conjunction with this format _

The result of presentation:

This line is formatted in italics

This line is also formatted in italics

This line will be thickened.

This line will also be thickened.

You can also use this format together.

New line

Enter a space + enter twice at the end of the line to achieve line wrapping.

If you want to enter only enter to achieve line wrapping, you can click Preferences-Themes-Translate newlines to

Set it up with tags.

List unordered list

Example:

* unordered queue entry 1 `* + SPACE` * unordered queue entry 2* Item 2a unordered list `TAB + * + SPACE` * Item 2b

The result of presentation:

Unordered queue entry 1 * + SPACE

Unordered queue entry 2

Item 2a unordered list TAB + * + SPACE

Item 2b

Ordered list

Example:

1. Ordered queue entry 1 `Number +. + SPACE`2. Ordered queue entry 23. Ordered queue entry 31. Item 3a ordered list `TAB + Number +. + space`2. Item 3b

The result of presentation:

Ordered queue entry 1 Number +. + SPACE

Ordered queue entry 2

Ordered queue entry 3

Item 3a ordered list TAB + Number +. + SPACE

Item 3b

Task list

Example:

-[] Task not completed `- + SPACE + []`-[x] task completes `- + SPACE + [x]`

The result of presentation:

[] Task not completed-+ SPACE + []

[X] Task completed-+ SPACE + [x]

Picture

Example:

! [GitHub set up] (https://cache.yisu.com/upload/information/20200310/71/138517.jpg)Format:! [] (url)

Shortcut key: Control + Shift + I

The result of presentation:

With MWeb, you can use the-w + number to set the width of the picture, for example:

Link

Example:

Email [GitHub] (http://github.com)autolink

Shortcut key: Control + Shift + L

The result of presentation:

Email example@example.com

GitHub

Autolink http://www.github.com/

Quote

Example:

Chairman Mao once said: "there is only one truth, and whoever discovers the truth depends not on subjective exaggeration but on objective practice." Only the revolutionary practice of millions of people is the yardstick for testing truth.

Shortcut key: Command + Shift + B

The result of presentation:

Chairman Mao once said:

There is only one truth, and whoever discovers the truth depends not on subjective exaggeration but on objective practice.

Only the revolutionary practice of millions of people is the yardstick for testing truth.

Embedded code

Example:

I think you should use an```code` element here instead.

Shortcut key: Command + K

The result of presentation:

I think you should use an

Code element here instead.

Embed multiple lines of code

Example:

````jsfunction fancyAlert (arg) {if (arg) {$.facebox ({div:'#foo'})} ```

Shortcut key: Command + Shift+ K

The result of presentation:

Js function fancyAlert (arg) {if (arg) {$.facebox ({div:'#foo'})}}

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

Network Security

Wechat

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

12
Report