From 68892b667c0da28125c490c8170e0fba9efc988d Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 11 May 2026 10:09:50 -0700 Subject: [PATCH] fix(editor): remove underline beneath markdown h1/h2 headings (#1696) H2 (and exported H1) headings rendered with a thin border below them; this removes the rule so headings sit flush with following content. Co-authored-by: Orca --- src/renderer/src/assets/markdown-preview.css | 2 -- src/renderer/src/assets/rich-markdown-editor.css | 2 -- src/renderer/src/components/editor/export-css.ts | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/assets/markdown-preview.css b/src/renderer/src/assets/markdown-preview.css index 625696c41..df64ae4d5 100644 --- a/src/renderer/src/assets/markdown-preview.css +++ b/src/renderer/src/assets/markdown-preview.css @@ -116,8 +116,6 @@ .markdown-body h2 { font-size: 1.4em; - border-bottom: 1px solid var(--border); - padding-bottom: 0.3em; } .markdown-body h3 { diff --git a/src/renderer/src/assets/rich-markdown-editor.css b/src/renderer/src/assets/rich-markdown-editor.css index 25bcaacd2..3812a5dd1 100644 --- a/src/renderer/src/assets/rich-markdown-editor.css +++ b/src/renderer/src/assets/rich-markdown-editor.css @@ -163,8 +163,6 @@ .rich-markdown-editor h2 { font-size: 1.4em; - padding-bottom: 0.3em; - border-bottom: 1px solid var(--border); } .rich-markdown-editor h3 { diff --git a/src/renderer/src/components/editor/export-css.ts b/src/renderer/src/components/editor/export-css.ts index c6264e3f0..b19fe7321 100644 --- a/src/renderer/src/components/editor/export-css.ts +++ b/src/renderer/src/components/editor/export-css.ts @@ -34,8 +34,8 @@ html, body { margin-bottom: 0.5em; } -.orca-export-root h1 { font-size: 1.9em; border-bottom: 1px solid #d0d7de; padding-bottom: 0.3em; } -.orca-export-root h2 { font-size: 1.5em; border-bottom: 1px solid #d0d7de; padding-bottom: 0.3em; } +.orca-export-root h1 { font-size: 1.9em; } +.orca-export-root h2 { font-size: 1.5em; } .orca-export-root h3 { font-size: 1.25em; } .orca-export-root h4 { font-size: 1em; }