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

feat(astro): custom expressive code plugins #444

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

isaacplmann
Copy link
Contributor

I would like to add custom expressive code plugins to change the way code blocks are rendered.

This PR adds an options expressiveCodePlugins property on the tutorialkit plugin that is instantiated in the astro.config.ts.

Copy link

stackblitz bot commented Apr 11, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@isaacplmann isaacplmann force-pushed the expressive-code-plugins branch from 01fdcc6 to f1fecff Compare April 11, 2025 19:09
Copy link
Member

@AriPerkkio AriPerkkio left a comment

Choose a reason for hiding this comment

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

Thanks, looks good! 💯

I'll got to check why the e2e tests are breaking. Looks like unzipping the downloaded project fails now. Probably related to recent Webcontainer Node 20 upgrades (cc. @SamVerschueren) 🤔

@SamVerschueren
Copy link
Contributor

@AriPerkkio I tested the same code on StackBlitz and it seems to work fine (https://stackblitz.com/~/edit/node-wpdcdazw?file=index.js). The zip I used is downloaded from Bolt and thus uses the same export functionality as TutorialKit. So not entirely sure what goes wrong...

@AriPerkkio
Copy link
Member

I'll got to check why the e2e tests are breaking. Looks like unzipping the downloaded project fails now.

Created #447 for this.

@AriPerkkio AriPerkkio merged commit d586225 into stackblitz:main Apr 14, 2025
12 checks passed
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.

3 participants