写博客经常需要一些常用MarkDown语法所以就找了一些记录下来备用。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Heading ======= Sub-heading ----------- ### Another deeper heading Paragraphs are separated by a blank line.
Two spaces at the end of a line leave a line break.
Text attributes _italic_, *italic*, __bold__, **bold**, `monospace`.
Horizontal rule:
---
Bullet list:
* apples * oranges * pears
Numbered list:
1. apples 2. oranges 3. pears
A [link](http://example.com).
|
HTML效果为
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<h1>Heading</h1>
<hr />
<h2>Sub-heading</h2>
<h3>Another deeper heading</h3>
<p>Paragraphs are separated by a blank line.</p>
<p>Two spaces at the end of a line leave a<br /> line break.</p>
<p>Text attributes <em>italic</em>, <em>italic</em>, <strong>bold</strong>, <strong>bold</strong>, <code>monospace</code>.</p>
Horizontal rule:
<hr />
<p>Bullet list:</p>
<ul> <li>apples</li> <li>oranges</li> <li>pears</li> </ul>
<p>Numbered list:</p>
<ol> <li>apples</li> <li>oranges</li> <li>pears</li> </ol>
<p>A <a href="http://example.com">link</a>.</p> `
|
最终效果为:
Sub-heading
Another deeper heading
Paragraphs are separated
by a blank line.
Two spaces at the end of a line leave a
line break.
Text attributes italic, italic, bold, bold, monospace
.
Horizontal rule:
Bullet list:
Numbered list:
- apples
- oranges
- pears
A link.
原文地址
近期评论