I can’t believe how the Math feature was shipped. The `$$` which starts the math formula can potentially remove all my images that are below that symbol. Once you type that symbol, all images are formatted into their local paths and unless you press UNDO, you can’t get them back. Problem is UNDO only works as long as you haven’t left that Note yet. This already deleted a whole Note with a dozen images for me.
There is not even a way to avoid this unless you use “Math Block” from the menu, making it risky to do the same on your keyboard (like markdown was intended to use)
Type $$ before a picture, but don’t hit enter, then
Click on a different line, then
Click back into the line with $$ and delete the hidden \ that precedes the $$ symbol.
I can’t imagine a scenario where I would ever do that series of actions. So, can you describe your process a bit more? I tried adding a picture and typing $$ before it (either on the preceding line or on the same line as the picture). I also tried typing $$ and then adding the picture after it.
Good news first: your images aren’t “destroyed”, they’re still there! There was just a rendering bug that made them disappear temporarily. If you exit and re-enter the note, they’ll reappear. This issue is now fixed, and an update is on the way.
We’ve also tried to mitigate a related issue with markdown opening blocks (like code and MathJax). When you type $$, Bear automatically escapes it until you press Enter, and then closes the block for you. This prevents the rest of the note from being invalidated.
Unfortunately, beyond this UX improvement, there’s not much we can change as it’s simply how markdown parsing works.