Fixes to link replacement in description HTML generation.