feat: support custom code style (#117)

close #117
This commit is contained in:
yanglbme 2021-12-20 20:20:31 +08:00
parent f9b29a5a61
commit aa3c39f9da
2 changed files with 4 additions and 0 deletions

View File

@ -49,3 +49,6 @@ ul {
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}

View File

@ -57,6 +57,7 @@ export function customCssWithTemplate(jsonString, color, theme) {
customTheme.block.h2 = Object.assign(customTheme.block.h2, jsonString.h2);
customTheme.block.h3 = Object.assign(customTheme.block.h3, jsonString.h3);
customTheme.block.h4 = Object.assign(customTheme.block.h4, jsonString.h4);
customTheme.block.code = Object.assign(customTheme.block.code, jsonString.code);
customTheme.block.p = Object.assign(customTheme.block.p, jsonString.p);
customTheme.block.hr = Object.assign(customTheme.block.hr, jsonString.hr);
customTheme.block.blockquote = Object.assign(