Steps to reproduce
- Make a new file.
- Create a YAML section at the top of the file.
- At the start of the YAML section, type
<!---. (This is how to begin an HTML comment tag in a markdown file such that it will appear in HTML source output.)
I expected the third dash in
<!--- to appear. Then, I expected to be able to type whatever else I wanted.
The third dash never even appears, nor do any other key inputs. Nothing happens if you try to backspace either. The file, but not the whole program, has frozen. Furthermore, if you try to switch to a different document and come back, you’ll find that the document is now blank.
- Operating system: macOS 10.5.5
- Obsidian version: 0.7.3
You can watch a very short demonstration of the bug here.
The data loss can be prevented if you take a specific action right away. Once the file is frozen, immediately quit Obsidian instead of attempting to refresh the tab by going to a different tab and coming back (like I did when I first encountered the bug, unfortunately). Open the file in a different text editor, remove the offending comment code, and then you can resume editing the file in Obsidian. In case you ever happen to experience anything similar to this bug, remember this so that you can (hopefully) recover your work before it’s overwritten and lost forever.