markdown语法学习笔记

05 January 2015


Markdown语法参考: http://wowubuntu.com/markdown/

Markdown编辑器:

  1. markdownpad 功能强大的md编辑器
  2. sublimetext 功能强大的文本编辑器

简介

兼容HTML

例1 嵌套HTML

这是一个普通段落。

Foo *Foo

这是另一个普通段落。

例2 HTML字符转换

©
AT&T
4 < 5

段落和换行

例1 段落

行一 直接换行
两个空格后换行

标题

例1 setext形式标题

最高阶标题

第二阶标题

例2 atx形式标题

h1

h2

h3

h4

h5
h6

区块引用

例1 普通区块引用

What are GitHub Pages?
User, Organization, and Project Pages
Creating Pages with the automatic generator
Creating Project Pages manually
Using Jekyll with Pages
About custom domains for GitHub Pages sites
Setting up a custom domain with GitHub Pages
Tips for configuring a CNAME record with your DNS provider
Adding a CNAME file to your repository
Tips for configuring an A record with your DNS provider
Further reading on GitHub Pages

例2 区块引用嵌套

What are GitHub Pages?
User, Organization, and Project Pages
Creating Pages with the automatic generator

Creating Project Pages manually
Using Jekyll with Pages
About custom domains for GitHub Pages sites

Setting up a custom domain with GitHub Pages

Tips for configuring a CNAME record with your DNS provider
Adding a CNAME file to your repository

Tips for configuring an A record with your DNS provider
Further reading on GitHub Pages

例3 区块引用嵌套markdown语法

这是一个标题

  1. 有序行1
  2. 有序行2

列表

例1 句首出现‘数字-句点-空白’的转义

  1. 这是第一行
    1. 这是第二行,没有转义
  2. 1099. 这是第三行,经过转义

代码区块

例1 代码区块

下面是一段代码:

public class Test {
	private int test = 0;
}

分隔线

例1 各种分隔符





链接

例1 行内式链接

这是一个行内式链接

例2 参考式链接

这是一个参考式链接

例3 隐式链接

baidu

强调

例1 强调标记

文本1
文本2
文本3
文本4
文本5
部分强调
部分*强调*

代码

例1 代码

打印 print(hello world)
反引号`

图片

例1 行内式图片

图片1

例2 参考式图片

图片1

自动链接

例1 自动链接

https://github.com/

反斜杠