π Patch Changes
- Updated dependencies [
44c957f893c6bf5f5b7c78301de7b21c5975584d]:- @astrojs/markdown-remark@4.2.1
44c957f893c6bf5f5b7c78301de7b21c5975584d]:
df37366556d46f7abdf82b09e33b08bd94e631b3 Thanks @OliverSpeir! - Allows remark plugins to pass options specifying how images in .mdx files will be optimized53c69dcc82cdf4000aff13a6c11fffe19096cf45, 2f81cffa9da9db0e2802d303f94feaee8d2f54ec, a505190933365268d48139a5f197a3cfb5570870]:
#9706 1539e04a8e5865027b3a8718c6f142885e7c8d88 Thanks @bluwy! - Removes redundant HMR handling code
Updated dependencies [165cfc154be477337037185c32b308616d1ed6fa, e9a72d9a91a3741566866bcaab11172cb0dc7d31]:
e72efd6a9a1e2a70488fd225529617ffd8418534 Thanks @bluwy! - Removes environment variables workaround that broke project builds with sourcemaps1baf0b0d3cbd0564954c2366a7278794fad6726e Thanks @sarah11918! - Updates READMEe83b5095f Thanks @florian-lefebvre! - Upgrades vite to latest#9138 abf601233 Thanks @bluwy! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.
Potentially breaking change: The default value of markdown.remarkRehype.footnoteBackLabel is changed from "Back to content" to "Back to reference 1". See the mdast-util-to-hast commit for more information.
#9138 abf601233 Thanks @bluwy! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.
Potentially breaking change: The default value of markdown.remarkRehype.footnoteBackLabel is changed from "Back to content" to "Back to reference 1". See the mdast-util-to-hast commit for more information.
4537ecf0d]:
c5010aad3]:
#8897 5a3d46da1 Thanks @remcohaszing! - Update the README to suggest that users install the official MDX extension for VS Code.
Updated dependencies [26b77b8fe]:
#8468 a8d72ceae Thanks @bholmesdev! - Support the img component export for optimized images. This allows you to customize how optimized images are styled and rendered.
When rendering an optimized image, Astro will pass the ImageMetadata object to your img component as the src prop. For unoptimized images (i.e. images using URLs or absolute paths), Astro will continue to pass the src as a string.
This example handles both cases and applies custom styling:
---import type { ImageMetadata } from 'astro';import { Image } from 'astro:assets';
type Props = { src: string | ImageMetadata; alt: string;};
const { src, alt } = Astro.props;---
{ typeof src === 'string' ? ( <img class="custom-styles" src={src} alt={alt} /> ) : ( <Image class="custom-styles" {src} {alt} /> )}
<style> .custom-styles { border: 1px solid red; }</style>Now, this components can be applied to the img component props object or file export:
import MyImage from '../../components/MyImage.astro';
export const components = { img: MyImage };
# My MDX article#8438 6df4f3bd9 Thanks @Princesseuh! - Fix errors not having a stacktrace
Updated dependencies [b3cf1b327, b92d066b7]:
#8179 6011d52d3 Thanks @matthewp! - Astro 3.0 Release Candidate
#8131 43140b87a Thanks @matthewp! - Support Astro 3 JSX format
This upgrades the MDX plugin to correctly work with the new JSX render API in Astro 3.
#8188 d0679a666 Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
#8169 e79e3779d Thanks @bluwy! - Remove pre-shiki v0.14 theme names for compatibility. Please rename to the new theme names to migrate:
material-darker -> material-theme-darkermaterial-default -> material-themematerial-lighter -> material-theme-lightermaterial-ocean -> material-theme-oceanmaterial-palenight -> material-theme-palenight#8188 84af8ed9d Thanks @ematipico! - Add astro as peer dependency
#8188 84af8ed9d Thanks @ematipico! - Re-orders the MDX plugin to run before Astroβs JSX plugin
#8188 32669cd47 Thanks @ematipico! - Handle components exports handling itself
Updated dependencies [d0679a666, db39206cb, adf9fccfd, 0c7b42dc6, 46c4c0e05, 364d861bd, 2484dc408, 81545197a, 6011d52d3, c2c71d90c, cd2d7e769, 80f1494cd, e45f30293, c0de7a7b0, 65c354969, 3c3100851, 34cb20021, a824863ab, 44f7a2872, 1048aca55, be6bbd2c8, 9e021a91c, 7511a4980, c37632a20, acf652fc1, 42785c7b7, 8450379db, dbc97b121, 7d2f311d4, 2540feedb, ea7ff5177, 68efd4a8b, 7bd1b86f8, 036388f66, 519a1c4e8, 1f58a7a1b, 2ae9d37f0, a8f35777e, 70f34f5a3, 5208a3c8f, 84af8ed9d, f003e7364, ffc9e2d3d, 732111cdc, 0f637c71e, 33b8910cf, 8a5b0c1f3, 148e61d24, e79e3779d, 632579dc2, 3674584e0, 1db4e92c1, e7f872e91, 16f09dfff, 4477bb41c, 55c10d1d5, 3e834293d, 96beb883a, 997a0db8a, 80f1494cd, 0f0625504, e1ae56e72, f32d093a2, f01eb585e, b76c166bd, a87cbe400, 866ed4098, 767eb6866, 32669cd47]:
#8169 e79e3779d Thanks @bluwy! - Remove pre-shiki v0.14 theme names for compatibility. Please rename to the new theme names to migrate:
material-darker -> material-theme-darkermaterial-default -> material-themematerial-lighter -> material-theme-lightermaterial-ocean -> material-theme-oceanmaterial-palenight -> material-theme-palenight