You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rich inline text leaf: styled spans, links, inline-code background #249
One wrapping text node made of spans, each with its own style (weight, italic, colour, monospace), built on egui's LayoutJob sections and measured and drawn as one galley.
Links: per-span hit-testing from the galley's glyph rects, a pointer cursor, and ctx.open_url for external links or an app callback for internal ones.
Inline code: a tinted rounded background behind code spans, drawn from their glyph rects.
API refinement in PR #264 (to confirm with the user): link routing is by scheme. An href with a URL scheme (https:, mailto:) goes to ctx.open_url (a new tab with a modifier), and any other href (#anchor, relative) goes to .on_link. This keeps external links working in apps that also handle internal ones.
Activity
samitbasu commentedon Nov 16, 2026
API refinement in PR #264 (to confirm with the user): link routing is by scheme. An href with a URL scheme (https:, mailto:) goes to
ctx.open_url(a new tab with a modifier), and any other href (#anchor, relative) goes to.on_link. This keeps external links working in apps that also handle internal ones.Merge pull request #264 from samitbasu/richtext-249