clean up custom markup