Skip to content

fix highlight collapse in default themes #57

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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