split out yaml front matter when editing