fix: resolve path of image and embed files, fixed #412
This commit is contained in:
parent
74ff68a40e
commit
bfd0d18e48
8 changed files with 29 additions and 23 deletions
|
|
@ -6,14 +6,14 @@ You can embed these files as video, audio, iframes, or code blocks, and even Mar
|
|||
For example, here embedded a Markdown file. You only need to do this:
|
||||
|
||||
```markdown
|
||||
[filename](_media/example.md ':include')
|
||||
[filename](../_media/example.md ':include')
|
||||
```
|
||||
|
||||
Then the content of `example.md` will be displayed directly here
|
||||
|
||||
[filename](_media/example.md ':include')
|
||||
[filename](../_media/example.md ':include')
|
||||
|
||||
You can check the original content for [example.md](_media/example.md ':ignore').
|
||||
You can check the original content for [example.md](../_media/example.md ':ignore').
|
||||
|
||||
Normally, this will compiled into a link, but in docsify, if you add `:include` it will be embedded.
|
||||
|
||||
|
|
@ -32,12 +32,12 @@ This is a supported embedding type:
|
|||
Of course, you can force the specified. For example, you want to Markdown file as code block embedded.
|
||||
|
||||
```markdown
|
||||
[filename](_media/example.md ':include :type=code')
|
||||
[filename](../_media/example.md ':include :type=code')
|
||||
```
|
||||
|
||||
You will get it
|
||||
|
||||
[filename](_media/example.md ':include :type=code')
|
||||
[filename](../_media/example.md ':include :type=code')
|
||||
|
||||
## Tag attribute
|
||||
|
||||
|
|
@ -56,11 +56,11 @@ 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.
|
||||
|
||||
```markdown
|
||||
[](_media/example.html ':include :type=code text')
|
||||
[](../_media/example.html ':include :type=code text')
|
||||
```
|
||||
|
||||
⬇️
|
||||
|
||||
[](_media/example.html ':include :type=code text')
|
||||
[](../_media/example.html ':include :type=code text')
|
||||
|
||||
?> How to set highlight? You can see [here](language-highlight.md).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue