test/test.txt
214888c9
 [= |0]
 [>1|1]Paragraphs (even at indentation 0) outside markers
 [<1|1]also create folds.
 [= |0]
 [>1|1]Paragraphs on the same level
 [<1|1]do not swallow empty lines.
 [= |0]
 [>1|1]## Marker 1
 [= |1]Single line paragraphs do not create folds, neither right after markers...
 [= |1]
 [= |1]...nor on their own.
 [= |1]
 [>2|2]But lines below with more indentation are counted as part of the same fold...
 [= |2]
 [>3|3]  ...while still being able to create
 [<4|3]    folds
 [<2|3]  of their own.
 [= |1]
 [>2|2]### Marker 2
 [<3|2]Wider markers create higher fold levels.
 [= |2]
 [>3|3]  #### Marker 3
 [= |3]  Indentation does not affect marker fold levels.
 [= |3]
 [<4|3]  Marker folds of the same level swallow empty lines...
 [= |3]
 [>3|3]  #### Marker 3
 [= |3]
 [>4|4]  ##### Marker 4
 [<4|4]  ...but ones on different levels do not.
 [= |3]
 [>3|3]  #### Marker 3
 [<3|3]  Higher level folds are ended when the indentation drops.
 [= |2]
 [<1|2]Leading and trailing empty lines are not part of folds.
 [= |0]