1
1
# Embed files
2
2
3
3
With docsify 4.6 it is now possible to embed any type of file.
4
+
4
5
You can embed these files as video, audio, iframes, or code blocks, and even Markdown files can even be embedded directly into the document.
5
6
6
- For example, here embedded a Markdown file. You only need to do this:
7
+ For example, here is an embedded Markdown file. You only need to do this:
7
8
8
9
``` markdown
9
10
[filename](_media/example.md ':include')
10
11
```
11
12
12
- Then the content of ` example.md ` will be displayed directly here
13
+ Then the content of ` example.md ` will be displayed directly here;
13
14
14
15
[ filename] ( _media/example.md ' :include ')
15
16
@@ -19,23 +20,23 @@ Normally, this will compiled into a link, but in docsify, if you add `:include`
19
20
20
21
## Embedded file type
21
22
22
- Currently, file extension are automatically recognized and embedded in different ways.
23
+ Currently, file extensions are automatically recognized and embedded in different ways.
23
24
24
- This is a supported embedding type :
25
+ These types are supported:
25
26
26
27
* ** iframe** ` .html ` , ` .htm `
27
28
* ** markdown** ` .markdown ` , ` .md `
28
29
* ** audio** ` .mp3 `
29
30
* ** video** ` .mp4 ` , ` .ogg `
30
31
* ** code** other file extension
31
32
32
- Of course, you can force the specified. For example, you want to Markdown file as code block embedded .
33
+ Of course, you can force the specified type . For example, a Markdown file can be embedded as a code block by setting ` :type=code ` .
33
34
34
35
``` markdown
35
36
[filename](_media/example.md ':include :type=code')
36
37
```
37
38
38
- You will get it
39
+ You will get:
39
40
40
41
[ filename] ( _media/example.md ' :include :type=code ')
41
42
0 commit comments