Markdown快速入门

注:详细内容请前往此处
Dingus 是一个网页应用程序,你可以把自已编写的 Markdown 文档转成 XHTML。

段落、标题、区块代码:

Markdown 支持两种标题的语法,Setext 和 atx 形式。Setext 形式是用底线的形式,利用 = (最高阶标题)和 - (第二阶标题),Atx 形式在行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶。
区块引用则使用 email 形式的 '>' 角括号.
示例:
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 aregular paragraph.

The quick brown fox jumped over the lazydog's back.

### Header 3

> This is a blockquote.
>
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote

结果:

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 aregular paragraph.

The quick brown fox jumped over the lazydog'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__.
结果:
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.
+ Candy.
+ Gum.
+ Booze.
- Candy.
- Gum.
- Booze.

结果:

  • Candy.
  • Gum.
  • Booze.
  • Candy.
  • Gum.
  • Booze.
  • Candy.
  • Gum.
  • Booze.

链接

1. 行内:
示例: This is an[example link](http://example.com/).
结果: This is an example link.

2. 参考:
示例:
I get 10 times more traffic from [Google][1] than from[Yahoo][2] or [MSN][3].
注意:这里有一空行
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"

结果:
I get 10 times more traffic from Google than fromYahoo or MSN.

图片

1. 行内:
示例: ![jqm](/path/to/jqm.jpg "Title")
结果:

jqm

2. 参考:
示例:
![alt text][id]
注意:这里有一空行
[id]: /path/to/jqm.jpg "Title"

结果:

jqm

代码

插入HTML代码,需要用反引号来标记代码区段。
示例:
I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.

结果:
I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like &mdash;
instead of decimal-encoded entites like &#8212;.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 标题 标题是每篇文章都需要也是最常用的格式,在 Markdown 中,如果一段文字被定义为标题,只要在这段文字前加...
    Nic_ofh阅读 262评论 0 1
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,872评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 11,260评论 0 23
  • 抄写句子,字字有温~集合一篇,咂味一番,也是小结吧 以前的感情很决绝~ 清醒的人最荒唐~ 练字进行中~ 画字儿进行...
    faner_911b阅读 280评论 2 2
  • 我在床上睡觉的时候,突然听到了一种声音,“酥酥酥酥”,好奇的我披上了睡衣,悄悄的推开了冰冷的窗户。 ...
    徐寅博阅读 509评论 2 3

友情链接更多精彩内容