resolves #354 don't match front matter in the middle of the file