Horizontal rules
Horizontal rules can be used to separate content.
# Horizontal Rules
When to use
💡 Horizontal rules can be used to separate sections when headers are not applicable or to separate base document elements like a header, body and footer.
# Marker character style
A horizontal rule must consist of three (3) hyphens (-
) without spaces.
remark-lint: rule-style (opens new window)
👍 Correct code for this rule:
---
👎 Incorrect code for this rule:
-
--
- -
-- -
- --
# No prepended or appended content
Make sure that there are no other prepended or appended characters (including spaces).
👍 Correct code for this rule:
---
👎 Incorrect code for this rule:
.---
---
---x
---
# Empty lines before and after
Always surround lines by a single empty line except at the beginning of the file.
👍 Correct code for this rule:
... a line of content.
---
Summer is awesome...
👎 Incorrect code for this rule:
... a line of content.
---
Summer is awesome...
... a line of content.
---
Summer is awesome...