提交 0021fda4 编写于 作者: U ULIVZ

docs: update doc for "Import Code Snippets" (close: #581)

上级 3e4a73d5
......@@ -272,9 +272,19 @@ module.exports = {
You can import code snippets from existing files via following syntax:
**Input**
``` md
<<< @/filepath
```
It also supports [line highlighting](#line-highlighting-in-code-blocks):
``` md
<<< @/filepath{highlightLines}
```
**Input**
``` md
<<< @/test/markdown/fragments/snippet.js{2}
```
......
......@@ -270,6 +270,16 @@ module.exports = {
你可以通过下述的语法导入已经存在的文件中的代码段:
``` md
<<< @/filepath
```
它也支持 [行高亮](#代码块中的行高亮):
``` md
<<< @/filepath{highlightLines}
```
**Input**
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册