hide horizontal rule source text by matching background color
This commit is contained in:
parent
23594548ed
commit
f0c29533e7
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue