Maybe you could figure out a way to use regex with the search and replace. I’ll add a link to my attempt to explain a process of doing what would have been impossible otherwise. Again, you probably are well aware of this already: Note Composer: links to blocks and headers should be updated when extracting - #10 by I-d-as
Good luck! I hope you get it figured out. I am interested to hear what others recommend. Maybe you could give a few more details of the specific syntax or just provide actual examples. I’d be surprised if someone didn’t help you make at least some progress. It’s definitely a topic that people have conversed about in other threads.