Replace frontmatter using mmd style metadata