Skip to content

fix(sync): quote TIP authors with @ to prevent YAML parse error#392

Open
max-digi wants to merge 1 commit intomainfrom
mmp/sync-tips-quote-authors
Open

fix(sync): quote TIP authors with @ to prevent YAML parse error#392
max-digi wants to merge 1 commit intomainfrom
mmp/sync-tips-quote-authors

Conversation

@max-digi
Copy link
Copy Markdown
Contributor

@max-digi max-digi commented May 7, 2026

Upstream TIPs occasionally include GitHub handles like @0xrusowsky in the authors: frontmatter field. The leading @ is a YAML reserved character, so the build fails with:

[vocs:mdx] [plugin vocs:mdx] src/pages/protocol/tips/tip-1045.mdx: There was an error during the build:
  Plain value cannot start with reserved character @ at line 4, column 10:
authors: @0xrusowsky, Arsenii Kulikov @klkvr, Dan Robinson @danrobinson, Tanish…

This currently breaks all PR previews (e.g. #391).

Defensively quote the value in the syncTips plugin when it begins with any YAML reserved character (`@ & * ! | > % # ``), preserving any embedded quotes.

Upstream TIPs occasionally include GitHub handles like @0xrusowsky in the authors field. The leading @ is a YAML reserved character and breaks the build. Quote the value defensively when it begins with any YAML reserved char.

Amp-Thread-ID: https://ampcode.com/threads/T-019e0366-1385-70ac-8cf3-1738206b7d0e
Co-authored-by: Amp <amp@ampcode.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

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

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment May 7, 2026 5:43pm

Request Review

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.

1 participant