Make the boundary deliberate
Put blank lines around a hyphen rule so its meaning is clear. Use headings when a section needs a name rather than only a visual divider.
Opening notes.
---
A new part of the note.A hyphen line can become a heading
A line of hyphens directly below text can create a setext heading. The blank line before the rule avoids that ambiguity.