This section describes the different kinds of leaf block that make up a Markdown document.
A line consisting of optionally up to three spaces of indentation, followed by a
sequence of three or more matching -, _, or * characters, each followed
optionally by any number of spaces or tabs, forms a
thematic break.
Wrong characters:
Not enough characters:
Up to three spaces of indentation are allowed:
Four spaces of indentation is too many:
More than three characters may be used:
Spaces and tabs are allowed between the characters:
Spaces and tabs are allowed at the end:
However, no other characters may occur in the line:
It is required that all of the characters other than spaces or tabs be the same. So, this is not a thematic break:
Thematic breaks do not need blank lines before or after:
Thematic breaks can interrupt a paragraph:
If a line of dashes that meets the above conditions for being a thematic break could also be interpreted as the underline of a setext heading, the interpretation as a setext heading takes precedence. Thus, for example, this is a setext heading, not a paragraph followed by a thematic break:
When both a thematic break and a list item are possible interpretations of a line, the thematic break takes precedence:
If you want a thematic break in a list item, use a different bullet: