Thank you White Noise. I have edited my post as below to explain what happened.
The problem I found is that an outline folds in edit, but not in preview. This may be because I do not know how to fold it in preview. There also appears to be a folding bug in edit. I have tried to explaini it below, but it may be my misunderstanding of how folding should work.
I am not able to record a video of what I did at the moment but to clarify I entered:
‘# A’ (in line 1)
‘# B’ (in line 2)
‘## C’ (in line 3)
‘c’ (in line 4)
‘### D’ (in line 5)
‘d’ (in line 6)
EDIT (unfolded)
This shows what I typed into a blank edit screen
# A
# B
## C
c
### D
d
EDIT (folded)
This is what appears in the edit screen after folding at B (this was as expected)
# A
# B …
PREVIEW (not foldable)
This is what appears in the preview. There was no way of folding that I could see (this was not as expected)
A
B
C
c
D
d
EDIT BUG (OK folded at B)
This is what appears in the edit screen after folding at B (this was as expected)
# A
# B …
EDIT BUG (Not OK folded at C: C text folds but D does not)
This is what appears in the edit screen after folding at C. The text under under C (entered as ‘c’ in line 4 has folded away (this was as expected). D and its text (entered as ‘d’) have not folded away (this was not as expected).
# A
# B
## C
### D
d