标签:
Markdown Syntax 2.0
This document is used for "Gem for OneNote"? Markdown feature.
Block Elements
? ?
Headers
? ?
Markdown supports two styles of headers, Setext and atx.
? ?
Setext-style headers are "underlined" using equal signs (for first-level headers) and dashes (for second-level headers).
? ?
Atx-style headers use 1-6 hash characters at the start of the line, corresponding to header levels 1-6.
Markdown Headers
Lists
? ?
Markdown supports ordered (numbered) and unordered (bulleted) lists.
? ?
Unordered lists use asterisks, pluses, and hyphens – interchangably – as list markers.
? ?
Ordered lists use numbers followed by periods.
Markdown Lists
Code Blocks
? ?
Pre-formatted ``` or ~~~ code blocks are used for writing about programming or markup source code.
? ?
Markdown Code Blocks
Horizontal Rules
? ?
Asterisks, or underscores on a line by themselves. If you wish, you may use spaces between the hyphens or asterisks. Each of the following lines will produce a horizontal rule.
Span Elements
? ?
Links
? ?
Markdown supports two style of links: inline and reference.
? ?
In both styles, the link text is delimited by [square brackets].
Emphasis
? ?
Markdown treats asterisks (*) and underscores (_) as indicators of emphasis. Text wrapped with one * or _ will be converted to italic text; double *‘s or _‘s will be converted to bold text.
Code
? ?
To indicate a span of code, wrap it with backtick quotes (`). Unlike a pre-formatted code block, a code span indicates code within a normal paragraph.
Images
? ?
Markdown uses an image syntax that is intended to resemble the syntax for links, allowing for two styles: inline and reference.
New
Quote Text
? ?
?Indent quote text with ">", ">>", ">>>" ...
Check Box
Backslash Escapes
Backslash escapes for the following characters:
\?? backslash
`?? backtick
*?? asterisk
_?? underscore
{}? curly braces
[]? square brackets
()? parentheses
#?? hash mark
+?? plus sign
-?? minus sign (hyphen)
.?? dot
!?? exclamation mark
? ?
标签:
原文地址:http://www.cnblogs.com/isunlitao/p/5935715.html