Revert "Added folding support"

This reverts commit 45f260fefb67d0108822acbdd52d4e1db83dd33c.
Revert "Simplified heading matching regex"

This reverts commit d5e5fce204f1754f5a784d794fb79e66c5d97d82.