Skip to content

Commit

Permalink
Merge pull request #327 from r-Techsupport/astro-patches
Browse files Browse the repository at this point in the history
fix(frontend): improved frontmatter detection for Astro compatability
  • Loading branch information
zleyyij authored Jan 8, 2025
2 parents d722328 + e8e924f commit 845ec29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function stripFrontMatter(input: TokensList) {
if (
frontMatterNode !== undefined &&
frontMatterNode.type === 'heading' &&
frontMatterNode.raw.startsWith('layout')
frontMatterNode.raw.includes('title: ')
) {
// The output of this process will contain the serialized frontmatter header
frontMatterNode['raw'].replace('---\n', '\n').trim();
Expand Down

0 comments on commit 845ec29

Please sign in to comment.