From d723c690fcdd374c82a368f77067c4a51e4428c5 Mon Sep 17 00:00:00 2001 From: zoujing Date: Fri, 12 Jun 2026 14:32:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20markdown=20=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zero-markdown-view/zero-markdown-view.vue | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue b/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue index 4dbb39e..d426e40 100644 --- a/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue +++ b/src/uni_modules/zero-markdown-view/components/zero-markdown-view/zero-markdown-view.vue @@ -112,9 +112,9 @@ export default { `, // 一级标题 h1: ` - margin:8px 0; + margin:4px 0; font-size: 20px; - line-height: 1.6; + line-height: 1.85; text-align: center; font-weight: 900; color: ${themeColor}; @@ -126,7 +126,7 @@ export default { `, // 二级标题 h2: ` - margin:6px 0; + margin:4px 0; font-size: 18px; line-height: 1.85; text-align:center; @@ -138,7 +138,7 @@ export default { `, // 三级标题 h3: ` - margin:6px 0; + margin:4px 0; font-size: 16px; line-height: 1.85; color: ${themeColor}; @@ -151,6 +151,7 @@ export default { blockquote: ` margin:4px 0; font-size:15px; + line-height: 1.85; font-family: ${fontFamily}; font-weight:500; color: #777777; @@ -240,16 +241,16 @@ export default { `, // 一级标题 h1: ` - margin:8px 0; + margin:4px 0; font-size: 20px; - line-height: 1.6; + line-height: 1.85; color: ${themeColor}; font-family: ${fontFamily}; font-weight:900; `, // 二级标题 h2: ` - margin:6px 0; + margin:4px 0; font-size: 18px; line-height: 1.85; color: ${themeColor}; @@ -258,7 +259,7 @@ export default { `, // 三级标题 h3: ` - margin:6px 0; + margin:4px 0; font-size: 16px; line-height: 1.85; color: ${themeColor}; @@ -269,6 +270,7 @@ export default { h4: ` margin:4px 0; font-size: 15px; + line-height: 1.85; color: ${themeColor}; font-family: ${fontFamily}; font-weight:600; @@ -277,6 +279,7 @@ export default { h5: ` margin:4px 0; font-size: 14px; + line-height: 1.85; color: ${themeColor}; font-family: ${fontFamily}; font-weight:500; @@ -285,6 +288,7 @@ export default { h6: ` margin:4px 0; font-size: 12px; + line-height: 1.85; color: ${themeColor}; font-family: ${fontFamily}; font-weight:500; @@ -293,6 +297,7 @@ export default { blockquote: ` margin:4px 0; font-size:14px; + line-height: 1.85; color: #777777; border-left: 4px solid #dddddd; padding: 0 10px; @@ -320,6 +325,7 @@ export default { `, // 加粗 strong: ` + line-height: 1.85; font-weight: bold; color: ${themeColor}; font-family: ${fontFamily};