Skip to content

fix highlight collapse in default themes#57

Open
uchijo wants to merge 1 commit intomattbierner:masterfrom
uchijo:fix/dark-plus-theme
Open

fix highlight collapse in default themes#57
uchijo wants to merge 1 commit intomattbierner:masterfrom
uchijo:fix/dark-plus-theme

Conversation

@uchijo
Copy link

@uchijo uchijo commented Oct 15, 2024

summary

before after
image image

what I did

when using this extension with default theme (dark+), the highlighting didn't work.
The reason was, it was referring to a resource file which does not exist, and it happens when this extension is used with default dark+ theme.
It seems to be implemented by branching whether theme name is dark+ or light+. So I removed this branch and let shiki do all the thing.
It seems it's caused by version change of shiki. by migrating from 0.2.5 to 0.14, the folder structure seems to be changed.

concerns

The comment says we need to handle default theme separately, because they use include option, which shiki does not support.
I looked the code carefully and I think it's okay to delete this special handling. But I'm not so confident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant