markdown 使用方法

2015-11-05  本文已影响0人  坚硬蝈蝈

我是一级标题

Mac中最好用的markdown编辑器


Mou iconMou icon

我是二级标题

Mou, the missing Markdown editor for web developers.

这样的是粗体
或者可以选中cmd+b
这样的是斜体
或者可以选中cmd+i

我是三级标题

我是四级标题

strong or strong ( Cmd + B )

emphasize or emphasize ( Cmd + I )

Sometimes I want a lot of text to be bold.
Like, seriously, a LOT of text

需要一大段可以编辑的粗体文本,像这样

我是五级标题

Right angle brackets > are used for block quotes.

Links and Email

An email example@example.com link.

我是链接 我是链接的标题

Simple inline link http://chenluois.com, another inline link Smaller, one more inline link with title Resize.

A reference style link. Input id, then anywhere in the doc, define the link with corresponding id:

Titles ( or called tool tips ) in the links are optional.

Images

An inline image Smaller iconSmaller icon

, title is optional.

A Resize iconResize icon

reference style image.

Inline code and Block code

Inline code are surround by backtick key. To create a block code:我是高亮

一个tab或者4个空格就可以了



Indent each line by at least 1 tab, or 4 spaces.
var Mou = exactlyTheAppIwant; 

Ordered Lists

Ordered lists are created using "1." + Space:

  1. Ordered list item
  2. Ordered list item
  3. Ordered list item

中断

  1. 我是有序的列表
  2. 需要数字加空格

Unordered Lists

Unordered list are created using "*" + Space:

Or using "-" + Space:

Hard Linebreak

End a line with two or more spaces will create a hard linebreak, called <br /> in HTML. ( Control + Return )
Above line ended with 2 spaces.

尝试着换行我是第二行

Horizontal Rules

Three or more asterisks or dashes:








Headers

Setext-style:

This is H1

我是一级标题

This is H2

atx-style:

This is H1

This is H2

This is H3

This is H4

This is H5
This is H6

Extra Syntax

Footnotes

Footnotes work mostly like reference-style links. A footnote is made of two things: a marker in the text that will become a superscript number; a footnote definition that will be placed in a list of footnotes at the end of the document. A footnote looks like this:

That's some text with a footnote.[1]

这是第二条标注[2]

Strikethrough

Wrap with 2 tilde characters:

Strikethrough

删掉你

Fenced Code Blocks

Start with a line containing 3 or more backticks, and ends with the first line with the same number of backticks:

Fenced code blocks are like Stardard Markdown’s regular code
blocks, except that they’re not indented and instead rely on
a start and end fence lines to delimit the code block.
zahgndexiangdaima #include <iostream>
he zhe ge bu yiyang 
yekeyi 
#include<iostream>
this is code blocks

Tables

A simple table looks like this:

First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

If you wish, you can add a leading and tailing pipe to each line of the table:

First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

Specify alignment for each column by adding colons to separator lines:

First Header Second Header Third Header
Left Center Right
Left Center Right
我是第一行 我是第二行 我是第三列
左对齐 居中对齐 右对齐

  1. And that's the footnote.

  2. 这就是第二条标注咯

上一篇 下一篇

猜你喜欢

热点阅读