Skip to content

Commit b95e807

Browse files
committed
fix(shiki): preserve style priority on compress
1 parent f22a837 commit b95e807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/content/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function _getHighlightPlugin(options: HighlighterOptions) {
8585
},
8686
)
8787

88-
result.style = Object.entries(stylesMap).map(([style, cls]) => `.${cls}{${style}}`).join('') + result.style
88+
result.style = Object.entries(stylesMap).map(([style, cls]) => `html pre.shiki code .${cls}{${style}}`).join('') + result.style
8989
}
9090

9191
return result

0 commit comments

Comments
 (0)