I have these hooks enabled on many of my projects, but for some reason forgot them here which led to the issue described in https://github.com/zoni/obsidian-export/pull/181 This should help prevent that from happening again.
Note as there is no support for block references at the moment, the generated link goes nowhere, however it is to a reasonable ID