Turned out tabs and spaces don't mean the same thing in markdown -- doh!
Converted tabs to spaces in link reference lines and all is well now.