Oh you just need to add a script like get_path() to get markdown filename.
Hook link format just like āObsidian://vault/vaultname/filenameā, which is like wiki link in ob. I think it is easy to achieve by using python.
Edit: By the way, absolute path can be used too. However, relative path allowed me to use anki and obsidian both on macOS or win. So please implement them both.