Fix link output in export view. Give pre tags bottom margin for styling