Summary of methods using Markdown on Linux

  
                

Markdown's syntax is widely used because it is easy to learn, so to use Markdown, it is necessary to understand its syntax. The following small series will introduce you to Linux using Markdown method. Let's take a look at it.

a: Markdown Profile

Markdown is a lightweight "markup language", it has many advantages, there are also a growing number of enthusiasts writing, essays It is widely used by manuscripts. Don't be fooled by "marking" or "language" when you see it here. Markdown's syntax is very simple. There are no more than ten commonly used tag symbols. Compared to the more complex HTML markup language, Markdown can be described as very lightweight, and the learning cost is not too much. Once you are familiar with this grammar rule, you will have The effect once and for all.

Two: Use Markdown

Linux platform is recommended to use sublime this artifact. I use this on Ubuntu. This effect is very good. It can be output in html format. You can also open it in the browser through the editor. Installation is not too much trouble, first install sublime and then select

Preferences --> Plugin Control --> Install Packages Wait a moment, an output box will appear, you enter Markdown Editting to install, Then enter Markdown Preview to install.

Three: Markdown's basic syntax

Font format

* Italic*

**Bold **

`Important Font `

》 Reference

The following is the format of the title

#标题一

##标题二

###标题三

The following is an unordered list

- list

- list

- sublist

- sublist

+ list

+ list

+ list

+ list

+ list

+ list

* List

* List

* List

* List

* List

* List

* List

LISTED LISTS

1. LISTED LISTS

2. LISTED LISTS

3. LISTED LISTS

CONNECT < Br>

[This is Baidu connection] (http://baidu.com)

! [This is a picture] (http://www.linuxidc.com/upload/2014_08/14080211568028.png)

Writing code

```python

import random

class 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 these basics are enough. If you want to learn more, you can look at the one provided after installing Markdown. Syntax Description:

Press Ctrl+Shift+p in sublime to open the command input box and enter Open Markdown Cheat Sheet. After you press Enter, a Markdown document will open.

The above is the use of Markdown by Linux. The method is introduced. This article introduces the grammar knowledge of Markdown in detail. As long as you master these grammars, you can use Markdown to write blogs.

Copyright © Windows knowledge All Rights Reserved