Skip to content

Commit

Permalink
chore: move shikiji workaround (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 15, 2024
1 parent d20200f commit 95d5e5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ export default defineConfigWithTheme<ThemeConfig>({
},

markdown: {
theme: 'github-dark',
config(md) {
md.use(headerPlugin)
// .use(textAdPlugin)
Expand Down
5 changes: 0 additions & 5 deletions .vitepress/theme/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@
@import "./inline-demo.css";
@import "./utilities.css";
@import "./style-guide.css";

/* vitepress rc.31 migrated to shijiki and need this to apply code styles */
.vp-code span {
color: var(--shiki-dark, inherit);
}

0 comments on commit 95d5e5d

Please sign in to comment.