-
Notifications
You must be signed in to change notification settings - Fork 16
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
Consider using Shiki for syntax highlighting #58
Comments
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. |
Too bad that Shiki doesn't support Nunjucks as language 😞 Just checked your repo and you just use HTML for that. That works, but it's not perfect and also a breaking change if someone currently uses codeblocks with |
Doesn't appear that Prism does either? I see a Jinja/Django entry though if that's what you mean. Shiki has that as well. |
Ah, the Eleventy plugin registered |
I created a first prototype with Shiki. I love the new theme but slow performance (shikijs/shiki#846) is blocking me right now 😕 |
Huh strange, I haven't experienced anything like that. How does using the default markdown-it setup perform? |
You mean the default |
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.
The text was updated successfully, but these errors were encountered: