-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow images in content collections folder to be used without relativ…
…e import prefix (#9755) * adds the ./ prefix to the import statement for user * remove accidental new line added * add tests * add changeset * Update young-eyes-film.md Co-authored-by: Sarah Rainsberger <[email protected]> --------- Co-authored-by: Sarah Rainsberger <[email protected]>
- Loading branch information
1 parent
7d937c1
commit d4b8861
Showing
5 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
"astro": minor | ||
--- | ||
|
||
Fixes an issue where images in Markdown required a relative specifier (e.g. `./`) | ||
|
||
Now, you can use the standard `` syntax in Markdown files for images colocated in the same folder: no relative specifier required! | ||
|
||
There is no need to update your project; your existing images will still continue to work. However, you may wish to remove any relative specifiers from these Markdown images as they are no longer necessary: | ||
|
||
```diff | ||
-  | ||
+  | ||
<!-- This dog lives in the same folder as my article! --> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+11.4 KB
packages/astro/test/fixtures/core-image/src/content/blog/blogfolder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ refinedImage: ../../assets/penguin1.jpg | |
# A post | ||
|
||
text here | ||
|
||
 |