I tried out what you wrote and didn't get an error with an
@auto-md file. It is only a tiny, simple file so maybe it's not enough of a test. Here is what I did:
1. Created an @auto-md file with the following structure:
@clean c:\temp\leo\md-test-at-auto-md.md
Markdown Test Tree
A1
A1.1
A1.1.1
A2
2. I added a line @others to the top of the body of the top node. I wrote a line or two for most of the nodes. Then I saved the outline.
3. I added a new top-level node outside the @auto-md node. I cloned node A1 into it.
4. In the cloned A1.1 node, I added a new line.
5. I observed in an external editor that the @auto-md file had the intended change.
6. I closed and reopened the outline.
7. I did not see any corruption in the outline.
Could you write more detail about the @auto-md file that ended up with a corrupted outline, and whether you use an @others line in it? And is this the only such file that caused a problem? And also the version of Leo and the OS (though it doesn't seem likely that the OS is playing a part).