shikijs / shiki

A beautiful yet powerful syntax highlighter
http://shiki.style/
MIT License
9.91k stars 361 forks source link

`@shikijs/transformers` not working with Astro #733

Closed satnaing closed 4 days ago

satnaing commented 1 month ago

Validations

Describe the bug

As the title suggests, @shikijs/transformers doesn't seem to work with Astro. I tested this with my own repo, AstroPaper, and Astro's minimal blog starter template.

Code snippets like // [!code ++] are rendered as plain text instead of being processed. I’ve created a branch where you can check out and test the issue. After setting up the local environment, you can visit this URL to see the result.

Screenshot 2024-08-04 at 7 04 05 PM

Reproduction

https://github.com/satnaing/astro-paper/tree/bug/shikijs-transformers-issue

Contributes

rishi-raj-jain commented 1 month ago

Take a look at https://www.launchfa.st/blog/shiki?

satnaing commented 3 weeks ago

@rishi-raj-jain Unfortunately, it doesn't work well with AstroPaper.

antfu commented 4 days ago

I'd suggest you to report to astro instead.