Skip to content

Commit

Permalink
chore: remove background inline style for code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Aug 11, 2023
1 parent a787fa4 commit 1b0865f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/contentlayer/rehype/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const prettyCode: Pluggable<Array<any>> = [
light: getThemeJson('light'),
dark: getThemeJson('dark'),
},
keepBackground: false,
onVisitLine(node?: RehypeElement | null) {
if (!node) return;
// Prevent lines from collapsing in `display: grid` mode, and allow empty
Expand Down

0 comments on commit 1b0865f

Please sign in to comment.