making link snippet compatible with md