Markdown Horizontal Rules
To create a horizontal rule (corresponding to the HTML hr tag), use three or more asterisks (*), dashes (-), or underscores (_) on a line by themselves.
Tips
- Spacing: For best compatibility, ensure there is a blank line before and after the rule.
- Avoid Headings: Do not place hyphens directly under a line of text if they're intended to be a horizontal rule, as most parsers will interpret that as a Heading Level 2 (
h2). You can test this by adding a line of text above the hypens in the above example. - Custom Styling: If the standard line isn't enough, you can use CSS to change the appearance of the horizontal rule. This could be done by adding a class to the horizontal rule, or by using inline styles like
hr style="border:2px solid gray"to change its appearance.