Fix frontmatter removal with --- in body