tweak to switching of competions in markdown