Thanks a lot @Arkshine!
The issue is more because we are publishing the markdowns used for other reasons in discourse as well, so the people who keep the documents use these anchors for cross-reference when merging multiple markdowns in a single document.
I think I will make some sort of script to clean up before posting the content.