| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,36 @@ |
| 1 |
+[= |0] |
|
| 2 |
+[>1|1]Paragraphs (even at indentation 0) outside markers |
|
| 3 |
+[<1|1]also create folds. |
|
| 4 |
+[= |0] |
|
| 5 |
+[>1|1]Paragraphs on the same level |
|
| 6 |
+[<1|1]do not swallow empty lines. |
|
| 7 |
+[= |0] |
|
| 8 |
+[>1|1]## Marker 1 |
|
| 9 |
+[= |1]Single line paragraphs do not create folds, neither right after markers... |
|
| 10 |
+[= |1] |
|
| 11 |
+[= |1]...nor on their own. |
|
| 12 |
+[= |1] |
|
| 13 |
+[>2|2]But lines below with more indentation are counted as part of the same fold... |
|
| 14 |
+[= |2] |
|
| 15 |
+[>3|3] ...while still being able to create |
|
| 16 |
+[<4|3] folds |
|
| 17 |
+[<2|3] of their own. |
|
| 18 |
+[= |1] |
|
| 19 |
+[>2|2]### Marker 2 |
|
| 20 |
+[<3|2]Wider markers create higher fold levels. |
|
| 21 |
+[= |2] |
|
| 22 |
+[>3|3] #### Marker 3 |
|
| 23 |
+[= |3] Indentation does not affect marker fold levels. |
|
| 24 |
+[= |3] |
|
| 25 |
+[<4|3] Marker folds of the same level swallow empty lines... |
|
| 26 |
+[= |3] |
|
| 27 |
+[>3|3] #### Marker 3 |
|
| 28 |
+[= |3] |
|
| 29 |
+[>4|4] ##### Marker 4 |
|
| 30 |
+[<4|4] ...but ones on different levels do not. |
|
| 31 |
+[= |3] |
|
| 32 |
+[>3|3] #### Marker 3 |
|
| 33 |
+[<3|3] Higher level folds are ended when the indentation drops. |
|
| 34 |
+[= |2] |
|
| 35 |
+[<1|2]Leading and trailing empty lines are not part of folds. |
|
| 36 |
+[= |0] |