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
*Note:* When using the `copyfiles` code fence (see below), `gatsby-remark-copy-relative-linked-files` must appear before general purpose code fence processors like `gatsby-remark-prismjs`.
32
+
_Note:_ When using the `copyfiles` code fence (see below), `gatsby-remark-copy-relative-linked-files` must appear before general purpose code fence processors like `gatsby-remark-prismjs`.
33
33
34
34
Then in your Markdown files, simply reference the files.
35
35
36
36
### E.g.
37
37
38
-
```markdown
39
-
---
40
-
title: My awesome blog post
41
-
---
38
+
````markdown
39
+
---
40
+
title: My awesome blog post
41
+
---
42
42
43
-
Hey everyone, I just made a sweet files with lots of interesting stuff in
44
-
it.
43
+
Hey everyone, I just made a sweet files withlots of interesting stuff in
`image.gif`, `archive.zip`, `sample.pdf` and `report.html` should be in the same directory as the Markdown file. When you build your site, the file will be copied to the public folder and the markdown HTML will be modified to point to it.
59
66
60
67
Similarly, `report.css` and `diagram.png` should be in the same directory as the Markdown file. In this example, `report.html` has its own internal relative links to these files. `report.html` is not changed in any way. The relative links to the copied files work from the copied location.
61
68
62
69
The copy target is a relative link. Therefore, links starting with `XXXX://` or `//` are ignored. In this example `not-copy.rar` is not copied.
63
70
71
+
**v1.1.0**
72
+
73
+
[Pull request](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/pull/8) by [karlhorky](https://github.com/karlhorky) also copied the `src` attribute of `<audio>`/`<video>`/`<source>` tag.
0 commit comments