兼容模式和引用
當發表文章時,該模板是同時兼容html和Markdown的。比如直接加入html格式鏈接:
<a href="#">我是一條鏈接</a>
,或者Markdown格式鏈接:[我是另一條鏈接](#)
。引用文字采用>標志開頭。比如下面的一段話就是我們引用的文字:
Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.
斜體和粗體
對于段落中的文字斜體可以用一個星號將需要變斜體的文字圍住。比如:
*我是斜體的文字*
:我是斜體的文字當需要加粗部分文字時,可以左右用兩個星號將需要加粗的文字圍住。比如:
**我是粗體**
: 我是粗體標題級別通過井號來引用,井號的個數越多,表示級別越低。
比如:##二級標題
:
二級標題
內嵌式文本
列表可以通過行首加入橫杠來引用-
-
加粗字體使用html中的
<strong>
-
使字體傾斜采用
<em>
- 略縮詞,鼠標滑過時顯示全名。HTML格式下可以采用
<abbr title="HyperText Markup Langage">HTML</abbr>
, Markdown同樣可以采用。例如:<abbr title="HyperText Markup Langage">HTML</abbr> - 引用詞語,HTML格式下采用
<cite>— Mark otto</cite>
, Markdown同樣可以采用。例如:<cite>— Mark otto</cite> - 刪除線,HTML格式下采用
<del>Deleted</del>
, 例如:<del>Deleted</del>;下劃線,HTML格式下采用<ins>inserted</ins>
, 例如:<ins>inserted</ins> - 上標采用
<sup>text</sup>
, 例如:文字上標; 下標采用<sub>text</sub>
, 例如:文字下標
代碼引用
代碼的引用通常可以采用反引號來將所需要引用的代碼圍住。
例如:printf("hello, world!\n")
或者在Jekyll的環境下加入你要引用的YAML的語法:
{% highlight js %}
// Example can be run directly in your JavaScript console
// Create a function that takes two arguments and returns the sum of those arguments
var adder = new Function("a", "b", "return a + b");
// Call the function
adder(2, 6);
// > 8
{% endhighlight %}
Jekll 下還支持HTML的列表標題內容的標簽<dl><dt></dt><dd></dd></dl>
例如自動縮進的效果:
<dl> <dt>HyperText Markup Language (HTML)</dt> <dd>The language used to describe and define the content of a Web page</dd> <dt>Cascading Style Sheets (CSS)</dt> <dd>Used to describe the appearance of Web content</dd> <dt>JavaScript (JS)</dt> <dd>The programming language used to build advanced Web sites and applications</dd> </dl>
<dl>
<dt>HyperText Markup Language (HTML)</dt>
<dd>The language used to describe and define the content of a Web page</dd>
<dt>Cascading Style Sheets (CSS)</dt>
<dd>Used to describe the appearance of Web content</dd>
<dt>JavaScript (JS)</dt>
<dd>The programming language used to build advanced Web sites and applications</dd>
</dl>
圖片
圖片的鏈接和鏈接非常相似,只是在前面加入了一個感嘆號,例如:
   
placeholder
placeholder
placeholder
表格
表格的形式完全支持HTML的表格標簽,例如:
<table>
<thead>
<tr>
<th>姓名</th>
<th>支持</th>
<th>反對</th>
</tr>
</thead>
<tfoot>
<tr>
<td>總數</td>
<td>21</td>
<td>23</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>小愛</td>
<td>10</td>
<td>11</td>
</tr>
<tr>
<td>小博</td>
<td>4</td>
<td>3</td>
</tr>
<tr>
<td>小李</td>
<td>7</td>
<td>9</td>
</tr>
</tbody>
</table>
姓名 | 支持 | 反對 |
---|---|---|
小愛 | 10 | 11 |
小博 | 4 | 3 |
小李 | 7 | 9 |
總數 | 21 | 23 |
如果你還想了解更多,就趕快親自<a >試試吧</a>.