> 区块引用 >> 嵌套引用 > This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put***Markdown** into a blockquote.
区块引用效果
嵌套引用效果
引用中可以使用markdown语法,加粗,斜体…
内容很长会换行:This is a very long line that will still be quoted properly when it wraps. Oh boy let’s keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can putMarkdown into a blockquote.
代码区块和语法高亮
1 2 3
行内的代码块需要用 `...` 包裹起来。 Inline `code` has `back-ticks around` it. 这也可以仅仅作为一个标记来用,内容不必须为代码。
```javascript var s = "JavaScript syntax highlighting"; alert(s); ``` ```python s = "Python syntax highlighting" print s ``` ``` No language indicated, so no syntax highlighting. But let's throw in a <b>tag</b>. ```
1 2
var s = "JavaScript syntax highlighting"; alert(s);
1 2
s = "Python syntax highlighting" print s
1 2
No language indicated, so no syntax highlighting. But let's throw in a <b>tag</b>.
也可以直接在段落每行前加上4个空格(1个Tab制表符),但是需要和前一个段落间有一个空行。
1 2
using namespace std; cout << "但是没有语法高亮" << endl;
强调
1 2 3 4 5 6 7 8 9
斜体: *斜体* 或者 _斜体_ 加粗:**加粗** 或者 __加粗__ 中划线: ~~中划线~~
可以嵌套使用: **比如一段加粗的话中有 _几个斜体_ **
反斜杠:\ 转义,显示特殊字符
Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Inline-style: ![alt text](https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png "Logo Title Text 1")
Reference-style: ![alt text][logo]
[logo]: https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png "Logo Title Text 2"
Inline-style:
Reference-style:
HTML
可以在md中直接使用HTML写法
1 2 3 4 5 6
<dl> <dt>Definition list</dt> <dd>Is something people use sometimes.</dd> <dt>Markdown in HTML</dt> <dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd> </dl>