Basic markdown usage

Source: Internet
Author: User


I. Introduction to markdown

Markdown is a lightweight markup language. It has many advantages and is widely used by more and more writers. Do not be confused by the "mark" or "language". The markdown syntax is very simple. There are no more than 10 commonly used markup symbols. Compared with the more complex HTML markup language, markdown is very lightweight and does not require much learning cost, once you are familiar with this syntax rule, it will have a permanent effect.


Ii. Use markdown

For Windows, you can choose markdownpad as the markdown editor. It is said that you can also output PDF files. For Linux, we recommend that you use sublime. I have used Ubuntu to achieve very good results. It can be output in HTML format, or you can open a browser to view it through the editor. Installing sublime first and then selecting

Preference --> plug-in control --> install packages wait a moment and an output box is displayed. You can enter markdown editting for installation, and then enter markdown preview for installation.


3. Basic markdown syntax

Font format * italic ** bold ** 'important font'> reference the following title format # Title 1 # Title 2 ### Title 3: unordered list-list -List-Sub-list + list * List Order List 1. ordered list 2. ordered list 3. ordered list connection [This is Baidu connection] (http://baidu.com )! [This is the picture] (http://s2.51cto.com/wyfs02/M01/31/40/wKiom1OqaE7ytvjqAAE3xo7A5aA082.jpg) writing code ''' pythonimport randomclass cardgame (object ): "A sample Python class" nb_cards = 32 def _ init _ (self, cards = 5): Self. cards = random. sample (range (self. nb_cards), 5) print 'ready to play ''' split line *** remember that these basics are enough, for more information, see the syntax description provided after markdown is installed: in sublime, press Ctrl + Shift + P to open the command input box, enter open markdown cheat sheet, and press enter to open a markdown document.


This article is from the "Focus on Linux" blog, please be sure to keep this source http://forlinux.blog.51cto.com/8001278/1533864

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.