The Dead Simple Markdown Guide to Horizontal Rules

Create horizontal rules in Markdown using three or more asterisks (***), dashes (—), or underscores (___). Ensure blank lines are placed before and after the rule for compatibility.


This content originally appeared on HackerNoon and was authored by Typesetting

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.

:::

\


This content originally appeared on HackerNoon and was authored by Typesetting


Print Share Comment Cite Upload Translate Updates
APA

Typesetting | Sciencx (2024-08-20T15:49:41+00:00) The Dead Simple Markdown Guide to Horizontal Rules. Retrieved from https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/

MLA
" » The Dead Simple Markdown Guide to Horizontal Rules." Typesetting | Sciencx - Tuesday August 20, 2024, https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/
HARVARD
Typesetting | Sciencx Tuesday August 20, 2024 » The Dead Simple Markdown Guide to Horizontal Rules., viewed ,<https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/>
VANCOUVER
Typesetting | Sciencx - » The Dead Simple Markdown Guide to Horizontal Rules. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/
CHICAGO
" » The Dead Simple Markdown Guide to Horizontal Rules." Typesetting | Sciencx - Accessed . https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/
IEEE
" » The Dead Simple Markdown Guide to Horizontal Rules." Typesetting | Sciencx [Online]. Available: https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/. [Accessed: ]
rf:citation
» The Dead Simple Markdown Guide to Horizontal Rules | Typesetting | Sciencx | https://www.scien.cx/2024/08/20/the-dead-simple-markdown-guide-to-horizontal-rules/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.