diff --git a/src/input/parseFile.ts b/src/input/parseFile.ts index f9ca4de..c1b9639 100644 --- a/src/input/parseFile.ts +++ b/src/input/parseFile.ts @@ -20,7 +20,7 @@ export function parseFrontmatter(text: string): { text: string; frontMatter: Record; } { - const FM_RE = /^---\n(.*?)\n---\n?/gs; + const FM_RE = /^---\r?\n(.*?)\r?\n---\r?\n?/gs; const match = FM_RE.exec(text); if (match) {