Skip to content

Commit 043c9c9

Browse files
docs: add note on video/media attrs. (#1559)
* docs: add note on video/media attrs. * update: refine decription. Co-authored-by: 沈唁 <52o@qq52o.cn>
1 parent 37d9f0e commit 043c9c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/embed-files.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ Example:
7373

7474
If you embed the file as `iframe`, `audio` and `video`, then you may need to set the attributes of these tags.
7575

76+
?> Note, for the `audio` and `video` types, docsify adds the `controls` attribute by default. When you want add more attributes, the `controls` attribute need to be added manually if need be.
77+
```md
78+
[filename](_media/example.mp4 ':include :type=video controls width=100%')
79+
```
80+
7681
```markdown
7782
[cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px')
7883
```

0 commit comments

Comments
 (0)