hide horizontal rule source text by matching background color

This commit is contained in:
jess 2026-04-05 05:31:20 -07:00
parent 23594548ed
commit f0c29533e7
1 changed files with 1 additions and 2 deletions

View File

@ -1264,9 +1264,8 @@ private func highlightMarkdownLine(_ trimmed: String, line: String, lineRange: N
return true return true
} }
// Horizontal rule layout manager draws the line; mute the source text
if isHorizontalRule(trimmed) { if isHorizontalRule(trimmed) {
textStorage.addAttribute(.foregroundColor, value: palette.surface0, range: lineRange) textStorage.addAttribute(.foregroundColor, value: palette.base, range: lineRange)
return true return true
} }