mastering-markdown
该页面为markdown的样例测试页面,请参考源码和最终生成的html代码
Reference
Syntax guide
Headers
# This is an <h1> tag
This is an <h2> tag
This is an <h6> tag
Emphasis
This text will be italic
This will also be italic
This text will be bold
This will also be bold
You can combine them
Lists
Unordered
- Item 1
- Item 2
- Item 2a
- Item 2b
Ordered
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
Images
Format: 
Links
Information can be found on the http://example.com homepage. You can also mail me: me.example@example.com
Blockquotes
Hello World, This is block quotes
This is a blockquote.
on multiple lines that may be lazy.
A nested blockquote.
Inline code
I think you should use an
<addr> element here instead.
Code Blocks
common usage (indent your code by four spaces)
function test() {
console.log("notice the blank line before this function?");
}
for kramdown (without syntax highlight)
function test() {
console.log("notice the blank line before this function?");
}
for kramdown (with syntax highlight)
function test() {
console.log("notice the blank line before this function?");
}Nested code blocks
~~~~~~~
code with tildes
~~~~~~~~
Task Lists
- [x] @mentions, #refs, links, formatting, and
tagssupported - [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete item
Tables
| First Header | Second Header |
|---|---|
| Content from cell 1 | Content from cell 2 |
| Content in the first column | Content in the second column |