Heading fold should stop at horizontal rule
Currently heading fold will fold until the next heading with the same level.
However when a page has a horizontal rule
---, it’s a clear indication that this is a logical break between text, therefore fold should stop at this line. Not every time I use a
--- the following section need to have a header with the same level as the previous headers.
# H1 Fold with H1 ## H2 Fold with H1 --- ## Another H2 This should not be folded with H1 above.
Alternative: Consider horizontal rule also as a fold marker, with priority bigger than H1 header. This way one can fold the entire
--- section regardless of what header is used inside.