You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can embed content such as video, audio, iframes (`.html`), code blocks or even Markdown files.
346
+
347
+
#### Format
348
+
349
+
Add the `':include'` parameter in a markdown URL reference. Here is the format:
350
+
351
+
```markdown
352
+
[filename](url ':include')
353
+
```
354
+
355
+
The URL could be a local file (e.g. `_media/foo.js`) or a remote URL `https://...`.
356
+
357
+
If you want to embed a code block, you can use the automatic formatting. But markdown and HTML files need to be marked as a code if you want them as code rather than HTML.
358
+
359
+
```
360
+
':include :type=code'
361
+
```
362
+
363
+
See the _Docsify_ [Embed](https://docsify.js.org/#/embed-files) help for forcing types and using fragments.
- Do not put the URL in a bullet point as it will become an ordinary link.
402
+
- Do not put two embed items in a sequence without some characters in between, otherwise you will get a JS error rending the page. Putting an empty line between them is **not** sufficient.
403
+
- If you embed a URL of a Github file, remember to use the _Raw_ URL otherwise you will get an error.
0 commit comments