Hello atom community,
I want to write a package to fold sections of markdown by markdown headers.
From what I understand, Atom text editors fold lines by indentation only.
Is it possible to define a range of lines to fold that doesn’t use indentation? I’ve been trying to get my head around the Folds section in the text editor api docs but to me it looks like it’s just folding by indentation.
If anybody’s able to provide any guidance or suggestions to help me get started that’d be much appreciated!
My current thoughts about the package are that a command would fold text between two markdown section headers of the same level. What would be even nicer would be if we can somehow insert these fold buttons next to the line numbers, currently they only seem to pop up for indentation0-based folding:
Thanks in advance!