mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
feat: customize ul, ol style
This commit is contained in:
parent
e15df5c6b6
commit
865ec177dc
@ -37,5 +37,14 @@ link {
|
|||||||
/* 微信链接样式 */
|
/* 微信链接样式 */
|
||||||
wx_link {
|
wx_link {
|
||||||
}
|
}
|
||||||
|
/* 有序列表样式 */
|
||||||
|
ol {
|
||||||
|
}
|
||||||
|
/* 无序列表样式 */
|
||||||
|
ul {
|
||||||
|
}
|
||||||
|
/* 列表项样式 */
|
||||||
|
li {
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
export default DEFAULT_CSS_CONTENT;
|
export default DEFAULT_CSS_CONTENT;
|
||||||
|
@ -88,7 +88,18 @@ export function customCssWithTemplate(jsonString, color, theme) {
|
|||||||
custom_theme.inline.wx_link,
|
custom_theme.inline.wx_link,
|
||||||
jsonString.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;
|
return custom_theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user