It turns out gtk-doc can't even parse its own custom links if you don't arrange for the <link> element to on a single line, since it is just a glorified sed script :(