Fix space-before-linkref issue in newer markdown renderers