fix markup of edit media block