Markdown: normalize whitespace in link reference ids