Markdown Syntax 2.0
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Markdown Syntax 2.0相关的知识,希望对你有一定的参考价值。
Markdown Syntax 2.0
This document is used for "Gem for OneNote"? Markdown feature.
- Write the Markdown text in OneNote page.
- Click "Markdown" button to convert Markdown text to OneNote normal text.
- Click "Markdown" button again, convert the text back to Markdown text.
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
- [ ] Check Box
- [x] Checked 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
? ?
以上是关于Markdown Syntax 2.0的主要内容,如果未能解决你的问题,请参考以下文章
Computer Science - Markdown - Syntax