update front matter when format is changed in toolbar menu