Cool idea!
I could have used something like this back when I was converting various software documentation sets into personal vaults in Obsidian. I created this help topic back then: Is it easier/better to convert .htm software documentation to .md or save PDFs and link manually?
In the end, I was able to make things work using some search and replace with a little regex. I actually recently explained my process, if you are interested. Not sure it’s actually relevant for you, but here’s the link: Note Composer: links to blocks and headers should be updated when extracting - #10 by I-d-as
Good luck!