yeskunall / www

šŸž My personal site built with Astro, Radix Colors, Tailwind, and deployed to Vercel
https://kimchiii.space
MIT License
2 stars 0 forks source link

Better syntax highlighting #42

Open yeskunall opened 9 months ago

yeskunall commented 9 months ago

Replace rehype-pretty-code with shikiji.

yeskunall commented 7 months ago

~Ran into an issue that I cannot fix myself without committing directly to upstream. So Iā€™ll try another way, or just ditch the idea of bright for syntax highlighting as of now.~

yeskunall commented 5 months ago

bright may not work, but looks like Astro supports Shiki(ji) in markdown now.

Shikiji uses hast internally, and with support for in-built (and custom) transformers, I can achieve what Iā€™m doing with rehype-pretty-code with built-in Astro + Shikiji features instead.

yeskunall commented 4 months ago

Thereā€™s also astro-expressive-code