mirror of https://github.com/vuejs/vitepress
fix!: don't remove shiki styles from `pre` and remove unnecessary transformers (#4652)
BREAKING CHANGE: `vp-adaptive-theme` class is no longer added to code blocks when there is single theme. Theme authors supporting single code theme can use `.shiki:not(.shiki-themes)` as selector. Alternatively, it might be better to use the bg/fg variables set on the `.shiki` block to keep things generic. BREAKING CHANGE: `vp-code` class is no longer added to code blocks. Use `.shiki` or `pre.shiki` or `[class*='language-'] pre` instead. People not customizing their themes are not affected. But if you see weird stuff, you know what to change.pull/4658/head
parent
531a7a19d2
commit
db58af5c66
@ -1,7 +1,7 @@
|
||||
.dark .vp-code span {
|
||||
.dark .shiki span {
|
||||
color: var(--shiki-dark, inherit);
|
||||
}
|
||||
|
||||
html:not(.dark) .vp-code span {
|
||||
html:not(.dark) .shiki span {
|
||||
color: var(--shiki-light, inherit);
|
||||
}
|
||||
|
Loading…
Reference in new issue