Respect accepted ATX heading variations for Obsidian UI features

Commonmark allows One to three spaces of indentation for ATX headings
See Example 38

Section styling works, as well as section recognition for Obsidian link building when these heading indentations are encountered. But section folding in Obsidian does not work if any of these indentations are present.

Please fix that :slight_smile:
Seems like the UI for section interactions should follow the commonmark spec.


  1. Turn Fold Heading and Fold Indent on in Obsidian Editor Settings
  2. Create several section headings
  3. Add a 1-3 spaces before some of the section headings
  4. Notice that folding isn’t available on those