Folding in markdown/CodeMirror editor. There is a buggy and seemingly abandoned plugin for this: Persistent text folding in editor
@ambrt hasn't been on this forum since Nov 2021, so probably safe to assume this plugin has been abandoned. Maybe someone can pick this up, or maybe take a different approach, since this plugin's approach to text folding seems to create numerous issues related to the left gutter.