finish edit markup