Skip to content

Commit 845ec29

Browse files
authored
Merge pull request #327 from r-Techsupport/astro-patches
fix(frontend): improved frontmatter detection for Astro compatability
2 parents d722328 + e8e924f commit 845ec29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/lib/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function stripFrontMatter(input: TokensList) {
5858
if (
5959
frontMatterNode !== undefined &&
6060
frontMatterNode.type === 'heading' &&
61-
frontMatterNode.raw.startsWith('layout')
61+
frontMatterNode.raw.includes('title: ')
6262
) {
6363
// The output of this process will contain the serialized frontmatter header
6464
frontMatterNode['raw'].replace('---\n', '\n').trim();

0 commit comments

Comments
 (0)