Skip to content

Commit

Permalink
fix: include shiki themes in middleware package
Browse files Browse the repository at this point in the history
  • Loading branch information
DavieReid committed Jun 7, 2023
1 parent 4546369 commit 3903f60
Show file tree
Hide file tree
Showing 5 changed files with 1,172 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/site-middleware/src/plugins/prettyCode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import darkTheme from './themes/dark-plus.json';
import lightTheme from './themes/light-plus.json';

const options = {
theme: {
dark: 'dark-plus',
light: 'light-plus'
dark: darkTheme,
light: lightTheme
},
keepBackground: false,
onVisitLine(node) {
Expand Down
Loading

0 comments on commit 3903f60

Please sign in to comment.