diff --git a/src/assets/example/theme-css.txt b/src/assets/example/theme-css.txt index 25aaca8..aeb5beb 100644 --- a/src/assets/example/theme-css.txt +++ b/src/assets/example/theme-css.txt @@ -57,3 +57,6 @@ li { /* 代码块样式 */ code { } +/* 代码块外层样式 */ +code_pre { +} diff --git a/src/utils/index.js b/src/utils/index.js index 6933ee0..97547e0 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -43,6 +43,7 @@ export function customCssWithTemplate(jsonString, color, theme) { `h3`, `h4`, `code`, + `code_pre`, `p`, `hr`, `blockquote`,