Merged
Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Contributor
|
Awesome! I noticed there's no examples here about what changes with images in Markdown - I know you can now use relative images, does anything else change? |
Princesseuh
reviewed
Mar 3, 2023
Princesseuh
reviewed
Mar 3, 2023
Princesseuh
reviewed
Mar 3, 2023
Princesseuh
reviewed
Mar 3, 2023
sarah11918
reviewed
Mar 3, 2023
Member
sarah11918
left a comment
There was a problem hiding this comment.
Just leaving these to make link checker happy!
sarah11918
reviewed
Mar 3, 2023
Jutanium
reviewed
Mar 3, 2023
Jutanium
reviewed
Mar 3, 2023
Jutanium
reviewed
Mar 3, 2023
Jutanium
reviewed
Mar 3, 2023
Jutanium
reviewed
Mar 3, 2023
Jutanium
reviewed
Mar 3, 2023
natemoo-re
commented
Mar 3, 2023
Princesseuh
reviewed
Mar 7, 2023
Princesseuh
reviewed
Mar 7, 2023
|
|
||
| ### `getImage()` (`astro:assets`) | ||
|
|
||
| This function is intended for generating images destined to be used somewhere else than directly in HTML, for example in CSS or in an [API Route](/en/core-concepts/endpoints/#server-endpoints-api-routes). |
Member
There was a problem hiding this comment.
A major usage of getImage is also if you want to create your own Image component, might be worth a shoutout (the included Image component is basically just a call to getImage!)
Princesseuh
reviewed
Mar 7, 2023
sarah11918
reviewed
Mar 7, 2023
sarah11918
reviewed
Mar 7, 2023
|
|
||
| ### Update your Markdown files | ||
|
|
||
| Relative images can now be referenced in Markdown and MDX files. These will automatically be optimized and hashed by Astro's build process. |
Member
There was a problem hiding this comment.
Suggested change
| Relative images can now be referenced in Markdown and MDX files. These will automatically be optimized and hashed by Astro's build process. | |
| Relative images can now be referenced in Markdown. These will automatically be optimized and hashed by Astro's build process. |
sarah11918
reviewed
Mar 7, 2023
sarah11918
reviewed
Mar 7, 2023
Princesseuh
reviewed
Mar 7, 2023
|
|
||
| #### How this Works | ||
|
|
||
| At build time for static sites, both `<Image/>` and `getImage(options)` call the `transform()` function. They pass options either through component attributes or an `options` argument, respectively. The transformed images will be built to a `dist/_astro` folder. |
Member
There was a problem hiding this comment.
This is also the case for pre-rendered routes, if you want to add an additional precision.
Princesseuh
reviewed
Mar 7, 2023
Princesseuh
reviewed
Mar 7, 2023
sarah11918
reviewed
Mar 7, 2023
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of changes does this PR include?
Description
astro:assetsmoduleOpen Questions