The Dead Simple Markdown Guide to Horizontal Rules

Horizontal Rules

To create a horizontal rule, use three or more asterisks (***), dashes (—), or underscores (___) on a line by themselves.

***

_________________


The rendered output of all three looks identical:

Horizontal Rule Best Practices

For compatibility, put blank lines before and after horizontal rules.

| ✅  Do this | ❌  Don’t do this |
|—-|—-|
| Try to put a blank line before… n n — n n …and after a horizontal rule. | Without blank lines, this would be a heading. n — n Don’t do this! |

:::info
This guide is a Matt Cone project available on Markdown Guide under the CC BY-SA 4.0 license.

:::

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.