Winse Blog

走走停停, 熙熙攘攘, 忙忙碌碌, 不知何畏.

编写自己的Page(MarkDown/MD)

学习参考链接

其实上面的几个链接讲的都比较类似,不过看看都挺好的。

笔记

下面这些可以“所见即所得”的编写。同时对于一些不是很方便的,可以直接使用html的标签来实现。

斜体

1
2
*italic*
_italic_

加粗

1
2
**bold**
__bold__

星号中不能包括空格!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
单星号 = *斜体*
单下划线 = _斜体_
双星号 = **加粗**
双下划线 = __加粗__
三星号 = ***粗斜***
三下划线 = ___粗斜___
双波浪线 = ~~中划线~~

尖号 = ^上标文本^
双逗号 = ,,下标文本,,
倒单引号 = `代码`

<u>下划线</u> 效果
上标 H<sub>2</sub>O
下标 mc<sup>2</sup>

链接

  • Inline:
1
An [example](http://url.com/ "Title")
  • Reference-style labels (titles are optional):
1
2
3
An [example][id]. Then, anywhere else in the doc, define the link:

  [id]: http://example.com/  "Title"

图片

  • Inline (titles are optional):
1
![alt text](/path/img.jpg "Title")
  • Reference-style:
1
2
3
![alt text][id]

  [id]: /url/to/img.jpg "Title"

标题

  • Setext-style:
1
2
3
4
5
Header 1
========
  
Header 2
--------
  • atx-style (closing #’s are optional):
1
2
3
4
5
# Header 1 #
  
## Header 2 ##
  
#### Header 6

列表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
* Ordered, without paragraphs:
  1.  Foo
  2.  Bar
* Unordered, with paragraphs:
  *   A list item.
      
      With multiple paragraphs.
      
  *   Bar
* You can nest them:
  *   Abacus
      * answer
  *   Bubbles
      1.  bunk
      2.  bupkis
          * BELITTLER
      3. burper
  *   Cunning

在列表下的Code Spans需要添加额外数目的tab哦!并且不能以$开头,前面最好加上个空格!

Blockquotes

1
2
3
4
5
6
7
8
9
> Email-style angle brackets
> are used for blockquotes.
  
> > And, they can be nested.
  
> #### Headers in blockquotes
> 
> * You can quote a list.
> * Etc.

Code Spans

  • <code> spans are delimited by backticks.
1
You can include literal backticks like `this` .
  • Preformatted Code Blocks Indent every line of a code block by at least 4 spaces or 1 tab.
  • 使用GFW可以使用代码块.

This is a normal paragraph.

1
2
This is a preformatted
code block.

Horizontal Rules

Three or more dashes or asterisks:

1
2
3
4
5
---
  
* * *
  
- - - - 

Manual Line Breaks

End a line with two or more spaces:

1
2
Roses are red,   
Violets are blue.

GFW

GitHub提供了一些额外的方便的标签支持:

  • 换行支持,直接Enter
  • 代码块使用```
  • 表格支持
  • 链接文本会被解析为a

Transfer

其他声音

Why I hate markdown (and prefer reST) GitHub Flavored Markdown

Soft

http://markdownpad.com/

–END