本文的markdown标签针对ruby实现的kramdown解释器

ruby代码段

int main()
{
	printf("hello github.\n");
}
#=> prints 'hello github.' to STDOUT.

c代码段

#include <stdio.h>
    int main(){
    printf("hello");
}

shell片段

ls | while read line; done echo $line; done

标题示例


H1 #

H2 ##

H3 ###

H4 ####

H5 #####
H6 ######

强调


强调1-1 //用*表示斜体

强调1-2 //用_也可以

强调2-1 //用**表示粗体

强调2-2 //用__也可以

强调3-1 //用***表示斜粗体

强调3-2 //用___也可以

**这是什么** //四个*会被重新翻译,就不用了

列表


颜色

  • a. 朱红

    b. 酒红

    1. 深黄

    2. 淡黄

引用


这是一段引用,用>表示

字体颜色


红色. *红色*{:style="color:red"}

绿色.

黄色.

链接


www.google.com [www.google.com](https://www.google.com)

图片


github ![github](/images/github.png "github")

表格


head1 head2 head3
a b c

sample2

Markdown Less Pretty
Still renders nicely
1 2 3