Skip to content

Sanitize no-break whitespace (U+00A0) in frontmatter before YAML parsing#17262

Merged
pelikhan merged 3 commits intomainfrom
copilot/sanitize-frontmatter-whitespace
Feb 20, 2026
Merged

Sanitize no-break whitespace (U+00A0) in frontmatter before YAML parsing#17262
pelikhan merged 3 commits intomainfrom
copilot/sanitize-frontmatter-whitespace

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

  • Add sanitization of no-break whitespace (U+00A0) in frontmatter YAML before parsing in pkg/parser/frontmatter_content.go
  • Add test cases to pkg/parser/frontmatter_extraction_test.go for no-break whitespace handling
  • Run make fmt, make lint, make build to validate changes

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@pelikhan pelikhan marked this pull request as ready for review February 20, 2026 19:40
Copilot AI review requested due to automatic review settings February 20, 2026 19:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pelikhan
Copy link
Contributor

@copilot create helper function to parse YAML that always applies the space normalization.

@pelikhan
Copy link
Contributor

Regression test:

---
on:
  workflow_dispatch:
permissions:
  issues: read
  contents: read
tools:
  github:
    toolsets: [default, actions]
  bash: true
safe-outputs:
  github-token: ${{ secrets.GITHUB_TOKEN }}
  create-issue:
  update-issue:
    body:
    footer: false
    target: "*"
    target-repo: "*"
    max: 5
---

Testing.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Sanitize frontmatter for YAML parsing Sanitize no-break whitespace (U+00A0) in frontmatter before YAML parsing Feb 20, 2026
Copilot AI requested a review from pelikhan February 20, 2026 19:50
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.

3 participants