Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] release #10029

Merged
merged 1 commit into from
Feb 12, 2024
Merged

[ci] release #10029

merged 1 commit into from
Feb 12, 2024

Conversation

astrobot-houston
Copy link
Contributor

@astrobot-houston astrobot-houston commented Feb 7, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@astrojs/markdoc@0.9.0

Minor Changes

  • #9958 14ce8a6ebfc9daf951d2dca54737d857c229667c Thanks @Princesseuh! - Adds support for using a custom tag (component) for optimized images

    Starting from this version, when a tag called image is used, its src attribute will automatically be resolved if it's a local image. Astro will pass the result ImageMetadata object to the underlying component as the src prop. For non-local images (i.e. images using URLs or absolute paths), Astro will continue to pass the src as a string.

    // markdoc.config.mjs
    import { component, defineMarkdocConfig, nodes } from '@astrojs/markdoc/config';
    
    export default defineMarkdocConfig({
      tags: {
        image: {
          attributes: nodes.image.attributes,
          render: component('./src/components/MarkdocImage.astro'),
        },
      },
    });
    ---
    // src/components/MarkdocImage.astro
    import { Image } from 'astro:assets';
    
    interface Props {
      src: ImageMetadata | string;
      alt: string;
      width: number;
      height: number;
    }
    
    const { src, alt, width, height } = Astro.props;
    ---
    
    <Image {src} {alt} {width} {height} />
    {% image src="./astro-logo.png" alt="Astro Logo" width="100" height="100" %}

astro@4.3.6

Patch Changes

@github-actions github-actions bot added pkg: example Related to an example package (scope) pkg: astro Related to the core `astro` package (scope) labels Feb 7, 2024
@github-actions github-actions bot force-pushed the changeset-release/main branch 18 times, most recently from 3cc7510 to b739360 Compare February 8, 2024 10:22
@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Feb 8, 2024
@github-actions github-actions bot force-pushed the changeset-release/main branch 9 times, most recently from 20616b9 to a241a05 Compare February 8, 2024 10:29
@github-actions github-actions bot force-pushed the changeset-release/main branch 19 times, most recently from 2a391b2 to 2e7c325 Compare February 12, 2024 13:54
@ematipico ematipico merged commit 7371e1b into main Feb 12, 2024
@ematipico ematipico deleted the changeset-release/main branch February 12, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants