Skip to content

feat: support astro v5#56

Merged
shishkin merged 2 commits intoshishkin:mainfrom
QuentinRoy:astro-v5
Dec 14, 2025
Merged

feat: support astro v5#56
shishkin merged 2 commits intoshishkin:mainfrom
QuentinRoy:astro-v5

Conversation

@QuentinRoy
Copy link
Contributor

This PR adds support for astro v5 and remove support for astro < v5 (incompatible with @astrojs/mdx which is needed for the jsx renderer).
It might be possible to retain support for older astro version by implementing our own jsx renderer or move to another approach, but it didn't see worth it.

renovate bot and others added 2 commits December 2, 2025 09:14
BREAKING CHANGE: remove support for astro < v5.
@QuentinRoy QuentinRoy changed the title move to astro v5 feat: support astro v5 Dec 3, 2025
params as InternalHookParams;

addRenderer(astroJsx);
addRenderer({ name: "astro:mdx", serverEntrypoint: "@astrojs/mdx/server.js" });
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! Is that really it?! I've tested it briefly and it seems to work. Let me just dig into mdx renderer internals to see if my hacky code below still makes sense with it.

@shishkin
Copy link
Owner

shishkin commented Dec 6, 2025

Yeah, dropping support for Astro < v5 is fine in a new major version.

@shishkin shishkin merged commit 390f866 into shishkin:main Dec 14, 2025
1 check passed
@shishkin
Copy link
Owner

I've tested it in SSR mode with Node adapter. The generated code looks reasonable.

Thanks @QuentinRoy for resolving this longstanding blocker and reviving astro-asciidoc 👏🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants