Closed bigadz closed 2 years ago
This PR adds macOS and iOS implementations for thematic breaks aka horizontal rules.
thematic breaks
horizontal rules
The Markdown parser already detects ---, ***, ___ on a single line and creates a .thematicBreak node.
---
***
___
.thematicBreak
However the AttributedStringRenderer currently renders this as an empty string.
AttributedStringRenderer
The proposed new code renders a resizing horizontal rule that works well in dark and light modes. It has been tested on macOS and iOS.
Can this accept theme changes? It renders but has no padding around it unfortunately
This PR adds macOS and iOS implementations for
thematic breaks
akahorizontal rules
.The Markdown parser already detects
---
,***
,___
on a single line and creates a.thematicBreak
node.However the
AttributedStringRenderer
currently renders this as an empty string.The proposed new code renders a resizing horizontal rule that works well in dark and light modes. It has been tested on macOS and iOS.