From f0c29533e7f3ad3c8c59c9401d8f2680428afaab Mon Sep 17 00:00:00 2001 From: jess Date: Sun, 5 Apr 2026 05:31:20 -0700 Subject: [PATCH] hide horizontal rule source text by matching background color --- src/EditorView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/EditorView.swift b/src/EditorView.swift index ddc5cb2..b67d738 100644 --- a/src/EditorView.swift +++ b/src/EditorView.swift @@ -1264,9 +1264,8 @@ private func highlightMarkdownLine(_ trimmed: String, line: String, lineRange: N return true } - // Horizontal rule — layout manager draws the line; mute the source text if isHorizontalRule(trimmed) { - textStorage.addAttribute(.foregroundColor, value: palette.surface0, range: lineRange) + textStorage.addAttribute(.foregroundColor, value: palette.base, range: lineRange) return true }