mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-02-01 16:39:42 +00:00
docs: update embed files
This commit is contained in:
parent
56608e4739
commit
bf5d999296
@ -55,16 +55,6 @@ Did you see it? You only need to write directly. You can check [MDN](https://dev
|
||||
|
||||
Embedding any type of source code file, you can specify the highlighted language or automatically identify.
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code')
|
||||
```
|
||||
|
||||
⬇️
|
||||
|
||||
[](_media/example.html ':include :type=code')
|
||||
|
||||
Or Specify the language
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code text')
|
||||
```
|
||||
|
||||
@ -55,16 +55,6 @@ Did you see it? You only need to write directly. You can check [MDN](https://dev
|
||||
|
||||
Embedding any type of source code file, you can specify the highlighted language or automatically identify.
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code')
|
||||
```
|
||||
|
||||
⬇️
|
||||
|
||||
[](_media/example.html ':include :type=code')
|
||||
|
||||
Or Specify the language
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code text')
|
||||
```
|
||||
|
||||
@ -50,17 +50,7 @@ docsify 4.6 开始支持嵌入任何类型的文件到文档里。你可以将
|
||||
|
||||
## 代码块高亮
|
||||
|
||||
如果是嵌入一个代码块,你可以设置高亮的语言,或者让它自动识别。
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code')
|
||||
```
|
||||
|
||||
⬇️
|
||||
|
||||
[](_media/example.html ':include :type=code')
|
||||
|
||||
这里是手动设置高亮语言
|
||||
如果是嵌入一个代码块,你可以设置高亮的语言,或者让它自动识别。这里是手动设置高亮语言
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code text')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user