Steps to reproduce
- Verify that “fold heading” is enabled in Obsidian’s “Editor” settings.
- Type some text on a blank line, do not give it a heading value (e.g. H1).
- Press enter to move down to the very next line. This only happens if there is no vertical space separating the text & the line below it containing the three sequential hyphens. The line in question must also not already be a header.
- On the new line you’re now on enter three sequential hyphens while observing the behavior in both the preview & edit displays. Obsidian does something slightly different after each hyphen. I’ll detail these below in the “Actual Result” section.
I expected a horizontal rule to be rendered after entering the third hypen.
After entering the first hyphen the line of text immediately above it will increase in size, in the preview only. Sometimes instead of this happening the first hyphen will be rendered a bullet without requiring a space after it.
After you enter the second hyphen you’re given the ability to fold the contents beneath that line & the size of the same text will now have increased in size in the editor similar to the preview.
After the third hyphen the preview will now properly show the horizontal rule & the size of the text will revert to normal, but the folding ability persists in the editor. Sometimes Obsidian will also require a “space” following the third hyphen before the horizontal rule will render.
- Operating system: Windows 10
- Obsidian version: 0.9.3
The line above the hyphens seems to be being treated as a header after entering the second hyphen. If only “fold indent” is enabled the text will still increase in size, but you’ll not be be given the ability to fold.
I’m still fairly new to Markdown, but I don’t think this is intentional behavior. If I’m wrong I apologize.
In the screenshots attached I’m illustrating the behavior on the “see also:” line. The bullet behavior I described is later illustrated in the “source” line.