-
Line Highlighting partially broken even in a same file. The only section got highlighted: I am not sure how to debug this, all I do is grouping a bunch of files from file system into a multi-sidebar, so they should be compiled into html? |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
Oct 4, 2024
Replies: 1 comment 5 replies
-
Ah it's related to #4087 Your theme is splitting |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah sorry I should've reworded my answer.
Your theme has different color or style for
"comment"
and"punctuation.definition.comment"
. This creates two different<span>
s. Now the way those transformers are written, they only match the regex within same element. This function in shiki core needs to support separate elements - https://github.com/shikijs/shiki/blob/main/packages/transformers/src/utils.tswith eva dark:
https://github.com/fisheva/Eva-Theme/blob/a90d1a6674271e03c585a0b37c787071e3f01f73/themes/Eva-Dark.json#L930 -- removing
punctuation.definition.comment
from this line will also work.