shikijs / twoslash

You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples
https://shikijs.github.io/twoslash/
MIT License
1.06k stars 51 forks source link

Blade language not highlighting #164

Open smth opened 2 years ago

smth commented 2 years ago

I'm running the Eleventy package with a few different languages, most look like they are working great, but I've noticed Blade isn't. This comment is added after the code block <!-- Note from shiki-twoslash: the language blade was not set up for Shiki to use, and so there is no code highlighting -->. Blade is listed as one of the default languages, and as far as I can tell all languages are enabled by default. If I do try to explicitly add it via the config I get an error: Cannot read properties of undefined (reading 'id'). Am I missing something or is this a bug?

smth commented 1 year ago

It looks like the reason is that the addition of Blade was tagged v0.11.0, which hasn't been released yet (so it's in the docs but not the Eleventy package). So I guess this issue is blocked by https://github.com/shikijs/shiki/issues/364

smth commented 1 year ago

Any reason not to bump the Shiki version in Eleventy plugin, now that there are newer versions?