I just asked Multiline entries in custom toc.
During editing I deleted an image and uploaded a new one. During this process the site automatically adjusted the numbers of links,
Unfortunately this happened inside a code block and thus changed a function and broke my MWE. I think it would be useful to exclude code blocks from such automatic replacements.