twoslash icon indicating copy to clipboard operation
twoslash copied to clipboard

Blade language not highlighting

Open smth opened this issue 3 years ago • 2 comments

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 avatar Sep 25 '22 16:09 smth

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 avatar Oct 30 '22 08:10 smth

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

smth avatar Mar 06 '23 17:03 smth