THE GITHTML FIELD GUIDE
Add Markdown section dividers without creating list items
Use a clearly separated thematic-break line when you need a divider, and inspect its surrounding list or paragraph context. Dashes and asterisks can serve several Markdown roles. A descriptive heading is usually better for a new topic; reserve dividers for a genuine pause that does not need its own named section.
Decide what the divider is supposed to communicate
A horizontal rule can separate a short acknowledgment from the main document or mark a deliberate shift in a narrative. It should not substitute for a heading that readers need to find later. Name the transition in words before choosing the syntax. If you can write a useful section title, use that title. If the separation is merely decorative, remove it and see whether spacing already provides enough clarity. This prevents source punctuation from accumulating without a purpose. It also reduces confusion when the same file is rendered by a generator with its own section styling.
Test the boundary near lists and paragraphs
Create a fixture with the divider before a list, after a list, and beneath a short paragraph. Use blank lines to make the intended block boundaries obvious. Asterisks and dashes are also list markers, and a dash line directly beneath text can interact with heading syntax. Do not infer correctness from one isolated preview. The sample uses a spaced asterisk rule between ordinary paragraphs, but the project's established convention may choose another valid form. Keep that convention consistent and avoid mixing several divider styles merely to create visual variety in the source.
The first discussion ends here.
* * *
The appendix begins with additional context.Verify that structure did not change accidentally
Inspect the rendered page's list numbering and heading outline after inserting the rule. The divider should not split one task into two unrelated lists unless that is intentional. Read the paragraphs on either side to confirm the transition remains understandable without the visible line, such as in a plain-text extraction. If a screen reader announces the separator, it should occur at a sensible point in the reading order. When exporting the document, review the same boundary again. A small punctuation edit can have a larger structural effect than its size suggests, especially inside nested content. If a divider appears inside a reusable template, explain its purpose in contributor guidance. Otherwise later authors may copy it into unrelated contexts and accidentally preserve a boundary that no longer makes sense.
- Write down the reason for the pause; choose a heading instead when the next topic needs a name.
- Preview the divider with realistic preceding and following content, including any list.
- Check numbering and outline structure after the change.
- Keep one documented divider convention rather than improvising punctuation patterns throughout the repository.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.