fix: fixed frontmatter regex to account for windows carriage return c85362f6
Steve · 2026-04-03 21:31 1 file(s) · +1 −1
packages/cli/src/lib/markdown.ts +1 −1
18 18
	// --- (YAML) - Jekyll, Astro, most SSGs
19 19
	// +++ (TOML) - Hugo
20 20
	// *** - Alternative format
21 -
	const frontmatterRegex = /^(---|\+\+\+|\*\*\*)\n([\s\S]*?)\n\1\n([\s\S]*)$/;
21 +
	const frontmatterRegex = /^(---|\+\+\+|\*\*\*)\r?\n([\s\S]*?)\r?\n\1\r?\n([\s\S]*)$/;
22 22
	const match = content.match(frontmatterRegex);
23 23
24 24
	if (!match) {