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

Getting started with Markdown

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Markdown is a lightweight markup language that uses concise syntax instead of typesetting, unlike the word processing software Word or Pages that we use with a large number of typesetting and font settings. The content, format and illustrations of the article can be done through the keyboard, which is very awesome. At the same time, Markdown can easily export to documents in HTML and PDF formats. There are many Markdown editors that are very easy to use on different platforms, such as MarkdownPad and MarkPad under Mac's Mou,Windows. Sublime is recommended and a unified environment can be used.

Markdown example: getting started with bootstrap .rar

Learn the basic syntax of markdown through a list.

Content

Interpretation

Title

# level 1 title, # # level 2 title, # level 3 title,. It is recommended to add a space after #

List

Unordered list: precede text with +, -, or *

Ordered list: add 1. 2. 3 before the text. Symbol to

Add a character space between the text

Quote

Add > before the text, and use it many times to indicate that the whole range is blockquote.

Insert Link

In-line mode: [Baidu] (http://www.baidu.com)

Reference method:

I get 10 times more traffic from [Google] [1] than from [Yahoo] [2] or [MSN] [3]. [1]: http://google.com/ "Google" [2]: http://search.yahoo.com/ "Yahoo Search" [3]: http://search.msn.com/ "MSN Search"

Insert picture

! [Markdown] (http://www.xiong.com/markdown.jpg)

Bold type

Use text contained in two * *

Italic

Use a * contained text

Form

This is a bit of a trick.

| | Tables | Are | Cool | |

| |-|: | -: |

| | col 3 is | right-aligned | $1600 | |

| | col 2 is | centered | $12 |

| | zebra stripes | are neat | $1 |

Code

1. One line: wrap the middle code in two `backquotes

two。 Multiple numbers: when using tab indentation, it is important to note that it is important to leave a line above and below the code segment.

Dividing line

Start another line and enter 3 * * in succession.

Tip:

If you want to create a formatted block of code, you just need to indent four spaces or one tab for each line, and &,

< 和 >

It is also automatically converted to a HTML entity. Markdown allows you to write characters naturally, and it handles what needs to be converted. If you use the & character that is part of the HTML character entity, it will remain intact, otherwise it will be converted to &.

In addition, the following symbols are supported with a backslash to help insert ordinary symbols:\, `, *, _, {}, [], (), #, +, -,.

If you really want to rely on Markdown to insert tags, press more than two spaces at the insertion and press enter.

Chinese documentation: http://wowubuntu.com/markdown/#list

Editor

Markdown download: http://markdownpad.com/, in addition, when you need to support forms, you need to expand, refer to http://www.cnblogs.com/shierfen/p/5997558.html (free registration, and then you can use the drawing bed, very handsome)

For the processor, please choose github-style markdown offline mode and insert newline characters automatically.

The most common Markdown format options and keyboard shortcuts: (temporarily use MarkdownPad because the sublime plug-in cannot be downloaded)

Output effect Markdown shortcut Bold**text**Ctrl/ + BEmphasize*text*Ctrl/ + IStrike-through~~text~~Ctrl + Alt + ULink [title] (http://)Ctrl/ + KInline Code `code`Ctrl / + Shift + KImage! [alt] (http://)Ctrl/ + Shift + IList* itemCtrl + LBlockquote > quoteCtrl + QH1# Heading)

H2hydrogen # HeadingCtrl/ + HH3### HeadingCtrl/ + H (x2)

Drawing bed tool

The picture in markdown depends on the picture bed, which needs to be noted, but it is generally supported by editors, such as blog Park.

In addition, the plug-ins for markdown in sublime can be found in the article: http://www.jianshu.com/p/aa30cc25c91b

For more settings, especially markdownPreview, see http://www.tuicool.com/articles/NJrQfub, http://www.cnblogs.com/IPrograming/p/Sublime-markdown-editor.html

Beautify markdown (CSS): http://www.jianshu.com/p/5166046e6470

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