Skip to content

fix: circular sponsor avatars without blue underlines - #5749

Merged
Jocs merged 1 commit into
developfrom
fix/round-sponsor-avatars
Oct 14, 2026
Merged

Jocs merged 1 commit into
developfrom
fix/round-sponsor-avatars

Conversation

@Jocs

@Jocs Jocs commented Oct 14, 2026

Copy link
Copy Markdown
Member

Summary

Render current sponsors as a single SVG avatar wall with circular clipping. This fixes square avatars and the blue underlines produced by whitespace between linked HTML images. The entire wall still links to https://github.com/sponsors/marktext.

Embed downloaded avatar bytes in the SVG so it renders without external image requests. Keep 48px avatars with 8px gaps, wrapping after ten columns. Update the workflow to commit the generated SVG alongside README changes. When the current sponsor list is empty, remove both the section and generated SVG; download failures leave existing files unchanged.

Type of change

  • Bug fix (non-breaking, fixes an issue)

Test plan

  • pnpm run lint (0 errors; 168 existing warnings)
  • pnpm run typecheck
  • Script formatting and diff checks
  • Generated the wall using the four sponsors already present in README
  • Verified circular clipping, embedded image data, single linked image, empty-list removal and failed-download handling

Notes for reviewers

No related issue was supplied. No new dependencies, setup documents, or secrets are required.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@Jocs
Jocs merged commit c2c4bcc into develop Oct 14, 2026
11 checks passed
@Jocs
Jocs deleted the fix/round-sponsor-avatars branch October 14, 2026 07:46
@github-actions

Copy link
Copy Markdown
Contributor

Build artifacts for PR #5749:

Run: https://github.com/marktext/marktext/actions/runs/38530299233

Artifact Size Link
marktext-macos-x64 313.5 MB Download
marktext-linux 667.3 MB Download
marktext-macos-arm64 300.2 MB Download
marktext-windows-x64 299.1 MB Download
marktext-windows-arm64 291.0 MB Download

Zane-0x5a added a commit to Zane-0x5a/marktext that referenced this pull request Oct 15, 2026
Upstream reworked the old print path (marktext#5722 makes MarkdownPrint wait for
the notation fonts; marktext#5716 resolves URL-encoded Windows image paths). The
fork replaced that path with the paged preview, so printService and its
two specs keep the fork's side. Both fixes still reach the preview: the
image fix lives in resolveLocalImageSrc, which exportHtml uses, and the
notation fonts arrive through the muya export styles, the export themes
and getCssForOptions. Main already waits for fonts.ready under print
media before printToPDF.

marktext#5746 drops the Info tab and explains that a table of contents needs a
[TOC] line. The HTML export dialog takes both changes. The print preview
panel shows the same explanation under its contents settings.

The preload keeps the fork's visual zoom limit next to upstream's
platform path import, and the editor store keeps isSameList.

marktext#5691 was merged earlier from its PR head; upstream's squash differs from
it only by commits that came in alongside it.

Verified on Windows 11: typecheck, desktop and muya lint, and the desktop
unit suite pass. In the muya unit suite, only the tableChessboard
entrypoint import timed out, and only on cold runs (it passes alone). The
print, export, sidebar, theme and title bar e2e specs plus upstream's new
3510, 5394, 5683 and 5710 specs pass in background windows, except 5394's
exact `toBe(400)` width check. At this machine's 1.75 device pixel ratio
the restored width reads 400.0000305, with or without the camera
transform; with `toBeCloseTo(400, 3)` all three scenarios pass.
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