Markdown: Basics (快速入门)
Dingus 是一个网页应用程序,可以把自已 Markdown 文档转成 XHTML
其他参考:
1.http://www.tuicool.com/articles/fmeMbqR
2.https://segmentfault.com/markdown
代码块儿插入:方式一
引用
代码块儿插入:方式二
<pre>
input:第一次试验
回车换行
</pre>
代码块儿插入:方式三
<code>
input:最后一种
回车换行
</code>
代码块插入:方式四
(或者打四个半角空格)
input:iasdva,sdhflagjh
回车换行
空格
按shift+space,切换成全角,然后按空格键
表格
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
| Tables | Are | Cool |kaka|
| ------------- |:-------------|----------:|: -----:|
| col 3 is | right-aligned | $1600 |123 |
| col 2 is | centered | $12 |23 |
| zebra stripes | are neat | $1 | 1|
A First Level Header
A Second Level Header
Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.
The quick brown fox jumped over the lazy
dog's back.
Header 3
This is a blockquote.
This is the second paragraph in the blockquote.
This is an H2 in a blockquote
Some of these words are emphasized.
Some of these words are emphasized also.
Use two asterisks for strong emphasis.
Or, if you prefer, use two underscores instead.
无序列表使用:星号、加号和减号(*+-)
- Candy.
- Gum.
- Booze.
有序列表使用:使用一般的数字
- Red
- Green
- Blue
插入空行
如果你在项目之间插入空行,那项目的内容会用 < p > 包起来,你也可以在一个项目内放上多个段落,只要在它前面缩排__ 4 个空白或 1 个 tab__ 。
-
A list item.
With multiple paragraphs.
Another item in the list.
文字链接
行内形式
This is an example link.
//加title属性
This is an example link.
参考形式
I get 10 times more traffic from Google than from
Yahoo or MSN.
title 属性是选择性的,链接名称可以用字母、数字和空格,但是不分大小写:
I start my morning with a cup of coffee and
The New York Times.
图片
行内形式
参考形式
代码
在一般的段落文字中,你可以使用反引号 ` 来标记代码区段,区段内的 &、< 和 > 都会被自动的转换成 HTML 实体,这项特性让你可以很容易的在代码区段内插入 HTML 码:
I strongly recommend against using any <blink>
tags.
I wish SmartyPants used named entities like —
instead of decimal-encoded entites like —
.
如果要建立一个已经格式化好的代码区块,只要每行都缩进 4 个空格或是一个 tab 就可以了,而 &、< 和 > 也一样会自动转成 HTML 实体。
If you want your page to validate under XHTML 1.0 Strict,you've got to put paragraph tags in your blockquotes:
<blockquote>
<p>For example.</p>
</blockquote>
分割线:(三个*号)