johnxnguyen / Down

Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark.
Other
2.24k stars 319 forks source link

Horizontal rule support #298

Open gkumar-asapp opened 10 months ago

gkumar-asapp commented 10 months ago

Feature Request

Insert a horizontal rule by using three or more hyphens (-), asterisks (*), or underscores (_) on a line that is surrounded by empty lines. Each of the characters is the same for a horizontal rule. Whitespace between the characters is ignored.

---… | … | ___… ---… | … | ___…

This should look like as shown below.

/*: This text is above the horizontal rule.


And this is below. */

Screenshot 2023-11-02 at 9 02 41 AM

Currently it is not showing any horizontal line. """

(horizontal rule above)

""" Screenshot 2023-11-02 at 9 06 39 AM

gkumar-asapp commented 9 months ago

did anybody get chance to look into this.