Skip to content

fix: frontmatter rendering as removal#1927

Merged
Rich-Harris merged 9 commits intomainfrom
fix-frontmatter
Apr 10, 2026
Merged

fix: frontmatter rendering as removal#1927
Rich-Harris merged 9 commits intomainfrom
fix-frontmatter

Conversation

@paoloricciuti
Copy link
Copy Markdown
Member

In sveltejs/ai-tools#188 I've included the subagent definition which is a markdown codeblock with the frontmatter.

The current rendering strategy detect that as a removal because of

---
[content]
---

and you can see how bad it looks
image

This fixes while still leaving the ability to do diffs inside markdown blocks (it just exclude the actual frontmatter) in md and yml codeblocks.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svelte-dev Ready Ready Preview Apr 10, 2026 4:09pm

Request Review

@jycouet
Copy link
Copy Markdown
Contributor

jycouet commented Apr 10, 2026

apps/svelte.dev check: Error: Type '() => ReturnType<import("svelte").Snippet>' is not assignable to type 'Snippet<[]>'.
  • Other than that, the real change you want looks good ^^

@Rich-Harris Rich-Harris merged commit 9f1f483 into main Apr 10, 2026
2 checks passed
@Rich-Harris Rich-Harris deleted the fix-frontmatter branch April 10, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants