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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,17 @@
1
1
# ChangeLog
2
2
3
+
## v1.3.0
4
+
5
+
### Features
6
+
7
+
- Add support for `<a href="...">` in HTML / JSX [#16](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/pull/16) by [karlhorky](https://github.com/karlhorky)
8
+
- Add support for video poster attribute [#17](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/pull/17) by [karlhorky](https://github.com/karlhorky)
9
+
- Add filename function option [#19](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/pull/19) by [karlhorky](https://github.com/karlhorky)
10
+
11
+
### Fixes
12
+
13
+
- Reassign value with result of replace [#18](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/pull/18) by [karlhorky](https://github.com/karlhorky)
`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 files will be copied to the public folder and the markdown HTML will be modified to point to it.
@@ -69,6 +71,10 @@ Similarly, `report.css` and `diagram.png` should be in the same directory as the
69
71
70
72
The copy target is a relative link. Therefore, links starting with `XXXX://` or `//` are ignored. In this example `not-copy.rar` is not copied.
71
73
74
+
**v1.3.0**
75
+
76
+
[Pull request](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/pull/8) by [karlhorky](https://github.com/karlhorky) also copied the `href` attribute of `<a>` tag, and `poster` attribute of `<video>` tag.
77
+
72
78
**v1.1.0**
73
79
74
80
[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.
@@ -87,9 +93,12 @@ plugins: [
87
93
options: {
88
94
// By default, `.md` is specified
89
95
// ignoreFileExtensions: ['.md']
90
-
96
+
//
91
97
// These files will not be copied
92
98
ignoreFileExtensions: ['.md', '.pdf', '.d.ts'],
99
+
100
+
// Would generate file-1abcb33beeb811dca15f0ac3e47b88d9.pdf
-**ignoreFileExtensions**`string[]` - Specify the file extension to be ignored from copying. This plugin is for `remark` (Markdown), so it specifies `.md` by default.
111
+
-**filename**`(hash: string, name: string, extension: string) => string` - Can control the file name as you like. See [#15](https://github.com/akabekobeko/npm-gatsby-remark-copy-relative-linked-files/issues/15) for details.
0 commit comments