Skip to content

fix: SVG badges#371

Open
arthur-cahu wants to merge 5 commits into
3rd:masterfrom
arthur-cahu:fix/svg-badges
Open

fix: SVG badges#371
arthur-cahu wants to merge 5 commits into
3rd:masterfrom
arthur-cahu:fix/svg-badges

Conversation

@arthur-cahu

@arthur-cahu arthur-cahu commented Jun 28, 2026

Copy link
Copy Markdown

Fixes #370.

  • prevents errors inside the uv loop from escaping pcall (which would make neovim hang for a couple of seconds)
  • parses SVG metadata in pure lua to figure out badge dimensions
  • uses librsvg to actually render them

Disclaimer: Claude code was used in this PR

errors inside uv escape pcall
doesn't fix the underlying issue yet, but prevents the error from
blocking user input for a second or so
@arthur-cahu arthur-cahu changed the title Fix/svg badges Fix: SVG badges Jun 28, 2026
@arthur-cahu arthur-cahu changed the title Fix: SVG badges fix: SVG badges Jun 28, 2026
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.

magick_cli: identify errors on SVG badges with embedded data URIs escape pcall

1 participant