0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00
The web framework for content-driven websites. ️ Star to support our work!
Find a file
Oliver Speir 165cfc154b
Allow remark plugins to affect getImage call for .md files (#9566)
* pass hProperties to getImage for optimized imgs

* fix to allow multiple images to have hProps added

* update test to reflect new expected result

* add comment back in

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>

* add srcset

* works on multiple images

* fix tests, fix images.ts type and remove console logs

* add warning back to images.ts again lol

* update changeset to be user oriented

* Update calm-socks-shake.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* pass alt through getImage

* added fixture and test

* update lockfile

* fix lockfile again (had installed an extra package during testing and had sharp33 installed)

* update test to reflect passing alt through getImage

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:13:31 +00:00
.changeset Allow remark plugins to affect getImage call for .md files (#9566) 2024-01-17 13:13:31 +00:00
.devcontainer Remove examples/vite-plugin-pwa (#9270) 2023-12-01 14:54:11 -06:00
.github Update check-merge action (#9682) 2024-01-12 11:38:07 -06:00
.gitpod chore: removed adapters cleanup (#8726) 2023-10-10 19:36:35 +05:30
.vscode update prettier width (#2968) 2022-04-02 14:15:41 -06:00
benchmark Remove deprecated features from Astro 3.0 (#9168) 2023-11-28 00:44:20 +08:00
examples Adapter enhancements (#9661) 2024-01-17 13:10:43 +00:00
packages Allow remark plugins to affect getImage call for .md files (#9566) 2024-01-17 13:13:31 +00:00
scripts Use node:test and node:assert/strict (#9649) 2024-01-12 15:53:00 +08:00
.editorconfig Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
.eslintignore feat: remove webapi in favor of a smaller polyfill (#7840) 2023-08-08 11:01:45 +01:00
.eslintrc.cjs [docs] fix some error message syntax and add some lint rules to help (#9651) 2024-01-09 16:56:28 -04:00
.git-blame-ignore-revs Ignore big formatting commit (#3870) 2022-07-08 15:31:10 -05:00
.gitignore test: add setup for Vercel / Netlify tests (#7716) 2023-07-21 21:24:36 +02:00
.gitpod.yml chore: removed adapters cleanup (#8726) 2023-10-10 19:36:35 +05:30
.npmrc Handle compiler breaking change (#5803) 2023-01-12 22:46:56 +08:00
.nvmrc Remove support for Node 16 (#7780) 2023-08-08 11:01:33 +01:00
.prettierignore Update Prettier (#8420) 2023-09-06 10:23:44 -05:00
CONTRIBUTING.md Use node:test and node:assert/strict (#9649) 2024-01-12 15:53:00 +08:00
LICENSE Implement new a11y audits for the Dev Toolbar app (#9170) 2023-12-04 11:16:27 -06:00
package.json Chore: fix noisy peerDependency warnings (it's fine) (#9257) 2023-11-30 16:27:20 -06:00
pnpm-lock.yaml Allow remark plugins to affect getImage call for .md files (#9566) 2024-01-17 13:13:31 +00:00
pnpm-workspace.yaml Upgrade turbo (#6911) 2023-04-27 11:39:15 +08:00
prettier.config.js Update Prettier (#8420) 2023-09-06 10:23:44 -05:00
README.md Compress banner image (#9493) 2023-12-22 16:48:12 +00:00
SECURITY.md [ci] format 2022-08-08 17:12:48 +00:00
SECURITY_CONTACTS Changes required for a Passing grade from OpenSSF Best Practices (#3718) 2022-08-08 12:11:00 -05:00
STYLE_GUIDE.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
tsconfig.base.json feat(assets): Delete original assets unused outside of the optimization pipeline (#8954) 2023-11-08 10:23:23 +01:00
tsconfig.eslint.json feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
tsconfig.json chore: add empty tsconfig to prevent TypeScript from crawling (#4937) 2022-09-30 16:02:39 -05:00
turbo.json test: add setup for Vercel / Netlify tests (#7716) 2023-07-21 21:24:36 +02:00

Build the web you want


Astro is a website build tool for the modern web —
powerful developer experience meets lightweight output.

Build Status License npm version

Install

The recommended way to install the latest version of Astro is by running the command below:

npm create astro@latest

You can also install Astro manually by running this command instead:

npm install --save-dev astro

Looking for help? Start with our Getting Started guide.

Looking for quick examples? Open a starter project right in your browser.

Documentation

Visit our official documentation.

Support

Having trouble? Get help in the official Astro Discord.

Contributing

New contributors welcome! Check out our Contributors Guide for help getting started.

Join us on Discord to meet other maintainers. We'll help you get your first contribution in no time!

Directory

Package Release Notes
astro astro version
create-astro create-astro version
@astrojs/react astro version
@astrojs/preact astro version
@astrojs/solid-js astro version
@astrojs/svelte astro version
@astrojs/vue astro version
@astrojs/lit astro version
@astrojs/node astro version
@astrojs/vercel astro version
@astrojs/cloudflare astro version
@astrojs/partytown astro version
@astrojs/sitemap astro version
@astrojs/tailwind astro version
@astrojs/alpinejs astro version
@astrojs/mdx astro version

CII Best Practices

Several official projects are maintained outside of this repo:

Project Repository
@astrojs/compiler withastro/compiler
Astro Language Tools withastro/language-tools

Sponsors

Astro is free, open source software made possible by these wonderful sponsors.

❤️ Sponsor Astro! ❤️

Astro's sponsors.