Skip to content

Commit

Permalink
feat: support code_pre style setting
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Sep 14, 2024
1 parent 9922f5d commit 7c983b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assets/example/theme-css.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ li {
/* 代码块样式 */
code {
}
/* 代码块外层样式 */
code_pre {
}
1 change: 1 addition & 0 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function customCssWithTemplate(jsonString, color, theme) {
`h3`,
`h4`,
`code`,
`code_pre`,
`p`,
`hr`,
`blockquote`,
Expand Down

0 comments on commit 7c983b0

Please sign in to comment.