Cleanup in markdown editor