The Dead Simple Markdown Guide to Horizontal Rules

Written by typesetting | Published 2024/08/20
Tech Story Tags: markdown | markdown-syntax | text-formatting | markdown-guide | horizontal-rules-in-markdown | markdown-formatting | markdown-best-practices | markdown-horizontal-rules

TLDRCreate horizontal rules in Markdown using three or more asterisks (***), dashes (---), or underscores (___). Ensure blank lines are placed before and after the rule for compatibility.via the TL;DR App

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...

---

...and after a horizontal rule.

Without blank lines, this would be a heading.
---
Don't do this!

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


Written by typesetting | Shaping readable and sustainable publications.
Published by HackerNoon on 2024/08/20