From fc34a7976e5483d90c5726e6d395b06e0c9c32dc Mon Sep 17 00:00:00 2001 From: i544693 <369491420@qq.com> Date: Sun, 18 Apr 2021 19:03:00 +0800 Subject: [PATCH 1/2] docs: add note on video/media attrs. --- docs/embed-files.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/embed-files.md b/docs/embed-files.md index 26a0072ea..43590de12 100644 --- a/docs/embed-files.md +++ b/docs/embed-files.md @@ -73,6 +73,11 @@ Example: If you embed the file as `iframe`, `audio` and `video`, then you may need to set the attributes of these tags. +?> Note the `audio` and `video` types, docsify will and the `controls` attribute by default. When you want add more attributes, the `controls` attribute need to be added manually if need be. +```md +[filename](_media/example.mp4 ':include :type=video controls width=100%') +``` + ```markdown [cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px') ``` From 13a58900b593f5d1b4386e0b90eb5012b96051e4 Mon Sep 17 00:00:00 2001 From: i544693 <369491420@qq.com> Date: Mon, 19 Apr 2021 10:28:51 +0800 Subject: [PATCH 2/2] update: refine decription. --- docs/embed-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/embed-files.md b/docs/embed-files.md index 43590de12..07aa561f7 100644 --- a/docs/embed-files.md +++ b/docs/embed-files.md @@ -73,7 +73,7 @@ Example: If you embed the file as `iframe`, `audio` and `video`, then you may need to set the attributes of these tags. -?> Note the `audio` and `video` types, docsify will and the `controls` attribute by default. When you want add more attributes, the `controls` attribute need to be added manually if need be. +?> 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. ```md [filename](_media/example.mp4 ':include :type=video controls width=100%') ```