feat: customize ul, ol style

This commit is contained in:
yanglbme 2021-10-26 22:43:06 +08:00
parent e15df5c6b6
commit 865ec177dc
2 changed files with 21 additions and 1 deletions

View File

@ -37,5 +37,14 @@ link {
/* 微信链接样式 */
wx_link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
`;
export default DEFAULT_CSS_CONTENT;

View File

@ -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;
}