feat: markdown 样式调整

This commit is contained in:
2026-06-12 14:32:50 +08:00
parent 333d3b5dbc
commit d723c690fc

View File

@@ -112,9 +112,9 @@ export default {
`, `,
// 一级标题 // 一级标题
h1: ` h1: `
margin:8px 0; margin:4px 0;
font-size: 20px; font-size: 20px;
line-height: 1.6; line-height: 1.85;
text-align: center; text-align: center;
font-weight: 900; font-weight: 900;
color: ${themeColor}; color: ${themeColor};
@@ -126,7 +126,7 @@ export default {
`, `,
// 二级标题 // 二级标题
h2: ` h2: `
margin:6px 0; margin:4px 0;
font-size: 18px; font-size: 18px;
line-height: 1.85; line-height: 1.85;
text-align:center; text-align:center;
@@ -138,7 +138,7 @@ export default {
`, `,
// 三级标题 // 三级标题
h3: ` h3: `
margin:6px 0; margin:4px 0;
font-size: 16px; font-size: 16px;
line-height: 1.85; line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
@@ -151,6 +151,7 @@ export default {
blockquote: ` blockquote: `
margin:4px 0; margin:4px 0;
font-size:15px; font-size:15px;
line-height: 1.85;
font-family: ${fontFamily}; font-family: ${fontFamily};
font-weight:500; font-weight:500;
color: #777777; color: #777777;
@@ -240,16 +241,16 @@ export default {
`, `,
// 一级标题 // 一级标题
h1: ` h1: `
margin:8px 0; margin:4px 0;
font-size: 20px; font-size: 20px;
line-height: 1.6; line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
font-family: ${fontFamily}; font-family: ${fontFamily};
font-weight:900; font-weight:900;
`, `,
// 二级标题 // 二级标题
h2: ` h2: `
margin:6px 0; margin:4px 0;
font-size: 18px; font-size: 18px;
line-height: 1.85; line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
@@ -258,7 +259,7 @@ export default {
`, `,
// 三级标题 // 三级标题
h3: ` h3: `
margin:6px 0; margin:4px 0;
font-size: 16px; font-size: 16px;
line-height: 1.85; line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
@@ -269,6 +270,7 @@ export default {
h4: ` h4: `
margin:4px 0; margin:4px 0;
font-size: 15px; font-size: 15px;
line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
font-family: ${fontFamily}; font-family: ${fontFamily};
font-weight:600; font-weight:600;
@@ -277,6 +279,7 @@ export default {
h5: ` h5: `
margin:4px 0; margin:4px 0;
font-size: 14px; font-size: 14px;
line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
font-family: ${fontFamily}; font-family: ${fontFamily};
font-weight:500; font-weight:500;
@@ -285,6 +288,7 @@ export default {
h6: ` h6: `
margin:4px 0; margin:4px 0;
font-size: 12px; font-size: 12px;
line-height: 1.85;
color: ${themeColor}; color: ${themeColor};
font-family: ${fontFamily}; font-family: ${fontFamily};
font-weight:500; font-weight:500;
@@ -293,6 +297,7 @@ export default {
blockquote: ` blockquote: `
margin:4px 0; margin:4px 0;
font-size:14px; font-size:14px;
line-height: 1.85;
color: #777777; color: #777777;
border-left: 4px solid #dddddd; border-left: 4px solid #dddddd;
padding: 0 10px; padding: 0 10px;
@@ -320,6 +325,7 @@ export default {
`, `,
// 加粗 // 加粗
strong: ` strong: `
line-height: 1.85;
font-weight: bold; font-weight: bold;
color: ${themeColor}; color: ${themeColor};
font-family: ${fontFamily}; font-family: ${fontFamily};