Hi, the world, I’m coooooooooming.
Oooops, just examples, ignore me, darling.
静思
下面的效果是相同的。
This is emphasized 斜体. This is also emphasized 还是斜体.
Strong font 粗体 Also strong font 还是粗体
strikethrough 中间被画了个横线
Water is H2O. 42=16. 上标、下标测试。
Code Use the printf()
function,代码模块。
Code Use the printf()
function,与上面功能一样。
There is a literal backtick (`) here.
,额,还是代码模块。
The New York Times (That’s a citation). 引用测试,和斜体相似。
This is Underline. 下划线。
Syntax highlighting via Pygments. css java sh c gas asm cpp c++
1
2
3
4
5
6
7
8
9
10
#container {
float: left;
margin: 0 -240px 0 0;
width: 100%;
}
#container {
float: left;
margin: 0 -240px 0 0;
width: 100%;
}
int main ()
{
return 0;
}
Non Pygments code example
<div id="awesome">
<p>This is great isn't it?</p>
</div>
如下内容不会被渲染。
{% highlight c %}
int main ()
{
return 0;
}
{% endhighlight %}
目前不太想超过长度后使用滑动方式,目前直接换行。
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
The final element.
// Javascript code with syntax highlighting.
var fun = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
下面时关于段引用的测试。
单段的引用。Just one paragraph.
My conclusion after the trip was “well, now I know that there’s at least one company in the world that can succeed with the waterfall model” and I decided to stop bashing the waterfall model as hard as I usually do. Now, however, with all the problems Toyota are having, I’m starting to reconsider.q q q q q q q q q q q q q q q
kkkkk
多段的引用,one more paragraphs.
My conclusion after the trip was “well, now I know that there’s at least one company in the world that can succeed with the waterfall model” and I decided to stop bashing the waterfall model as hard as I usually do. Now, however, with all the problems Toyota are having, I’m starting to reconsider.
My conclusion after the trip was “well, now I know that there’s at least one company in the world that can succeed with the waterfall model” and I decided to stop bashing the waterfall model as hard as I usually do. Now, however, with all the problems Toyota are having, I’m starting to .q q q q q
单段,但较为复杂的引用。
My conclusion after the trip was “well, now I know that there’s at least one company in the world that can succeed with the waterfall model” and I decided to stop bashing the waterfall model as hard as I usually do. Now, however, with all the problems Toyota are having, I’m starting to reconsider.
嵌套引用。
My conclusion after the trip was “well, now I know that there’s at least one company in the world
that can succeed with the waterfall model” and I decided to stop bashing the waterfall model as hard as I usually do. Now, how ever, with all the problems Toyota are having, I’m starting to re consider.
如下是三种不同的表达方式。
如下的各个列表项中,各个项之间表示为段落,而之前的不是,也就是说添加了 <p></p>
,所以现在看起来各个段之间空隙有点大。
Item one
Item two
Item three
有序表的表达方式,只与顺序相关,而与列表前的数字无关。
列表项目标记通常是放在最左边,但是其实也可以缩进,最多 3 个空格,项目标记后面则一定要接着至少一个空格或制表符。
如下显示相同。
如下是在同一列表中,显示两个段落。
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
This is the second paragraph in the list item. You’re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
kramdown 默认支持表格,只需要设置好 table thead tbody th tr td
对应的属性即可。
head1 head1 head1 | head2 head2 head2 | head3 head3 head3 | head4 head4 head4 |
---|---|---|---|
row1text1 | row1text3 | row1text3 | row1text4 |
row2text1 | row2text3 | row2text3 | row2text4 |
如下是 github 上的测试表格。
head1 | head two | three |
---|---|---|
ok | good swedish fish | nice |
out of stock | good and plenty | nice |
ok | good oreos |
hmm |
ok | good zoute drop |
yumm |
如下是一个数学表达式。
\[\begin{align*} & \phi(x,y) = \phi \left(\sum_{i=1}^n x_ie_i, \sum_{j=1}^n y_je_j \right) = \sum_{i=1}^n \sum_{j=1}^n x_i y_j \phi(e_i, e_j) = \\ & (x_1, \ldots, x_n) \left( \begin{array}{ccc} \phi(e_1, e_1) & \cdots & \phi(e_1, e_n) \\ \vdots & \ddots & \vdots \\ \phi(e_n, e_1) & \cdots & \phi(e_n, e_n) \end{array} \right) \left( \begin{array}{c} y_1 \\ \vdots \\ y_n \end{array} \right) \end{align*}\]段内插入LaTeX代码是这样的:$\exp(-\frac{x^2}{2})$,试试看看吧
如下是一个简单的链接 an example,当然也可以使用网站的相对路径 About Me 。
也可以将网站的引用与 URL 分别区分开,如下是其中的示例,而且不区分大小写,RTEMS、Linux、GUN、GUN 。
如果喜欢这里的文章,而且又不差钱的话,欢迎打赏个早餐 ^_^