From 442beb8053b950b714bee41320061fd15b717ce5 Mon Sep 17 00:00:00 2001 From: YangFong Date: Sat, 14 Sep 2024 09:11:52 +0800 Subject: [PATCH] feat: support code_pre style setting (#403) --- src/assets/example/theme-css.txt | 3 +++ src/utils/index.js | 1 + 2 files changed, 4 insertions(+) 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`,