I'm saying that because I actually tried. There are Obsidian and customizable markdown modes/plugins for both Emacs and VSCode. My notes are usually cross-referenced, have pictures, occasional Mermaid diagrams, and are often heavy on math and code.
> markdown has tons of tiny implementation details. And I can not use PDF annotation plugin in Emacs
The same can be said about any other open format, I guess. There's no free lunch, you're always locked in by the implementation/workflow details, and have to write actual code (or use the code written by someone else) to migrate off to a different tool. The point is to not be locked by the format obfuscation or the storage.