diff --git a/src/assets/scripts/themes/default-theme-css.js b/src/assets/scripts/themes/default-theme-css.js index ab14aae..67df851 100644 --- a/src/assets/scripts/themes/default-theme-css.js +++ b/src/assets/scripts/themes/default-theme-css.js @@ -37,5 +37,14 @@ link { /* 微信链接样式 */ wx_link { } +/* 有序列表样式 */ +ol { +} +/* 无序列表样式 */ +ul { +} +/* 列表项样式 */ +li { +} `; export default DEFAULT_CSS_CONTENT; diff --git a/src/assets/scripts/util.js b/src/assets/scripts/util.js index ae43a69..7844429 100644 --- a/src/assets/scripts/util.js +++ b/src/assets/scripts/util.js @@ -88,7 +88,18 @@ export function customCssWithTemplate(jsonString, color, theme) { custom_theme.inline.wx_link, jsonString.wx_link ); - + custom_theme.block.ul = Object.assign( + custom_theme.block.ul, + jsonString.ul + ); + custom_theme.block.ol = Object.assign( + custom_theme.block.ol, + jsonString.ol + ); + custom_theme.inline.listitem = Object.assign( + custom_theme.inline.listitem, + jsonString.li + ); return custom_theme; }