docs: update embed files
This commit is contained in:
parent
56608e4739
commit
bf5d999296
3 changed files with 1 additions and 31 deletions
|
|
@ -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.
|
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
|
```markdown
|
||||||
[](_media/example.html ':include :type=code text')
|
[](_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.
|
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
|
```markdown
|
||||||
[](_media/example.html ':include :type=code text')
|
[](_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
|
```markdown
|
||||||
[](_media/example.html ':include :type=code text')
|
[](_media/example.html ':include :type=code text')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue