rothsandro / eleventy-notes

A template for Eleventy to publish your personal notes or docs.
https://eleventy-notes.sandroroth.com/
140 stars 17 forks source link

Consider using Shiki for syntax highlighting #58

Open uncenter opened 2 days ago

uncenter commented 2 days ago

Hi! Thanks as always for this great project. I'm wondering if you would consider switching to Shiki instead of Prism for syntax highlighting. The project is frequently updated, maintained, and far more featureful. You can use any VS Code theme with it, and it supports far more precise highlighting for tokens than Prism allows for. Shiki has powerful "transformers" and many good default transformers for customization (https://shiki.style/packages/transformers).

You can use the https://shiki.style/packages/markdown-it plugin to integrate it easily with Eleventy.

rothsandro commented 1 day ago

Thanks for the suggestion. Improving syntax highlighting was on my todo list anyway as the current theme has insufficient contrast. I'll give Shiki a try.