Skip to content

fix: improve link rendering and detect wss:// relay URLs#97

Merged
barrydeen merged 1 commit intomainfrom
fix/link-rendering-improvements
Mar 1, 2026
Merged

fix: improve link rendering and detect wss:// relay URLs#97
barrydeen merged 1 commit intomainfrom
fix/link-rendering-improvements

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • URLs on their own line render as rich preview cards (existing behavior), while URLs mid-paragraph now render as inline clickable hyperlinks instead of breaking the reading flow with a full card
  • wss:// and ws:// relay URLs are now detected by the URL regex and rendered as clickable links that open the relay feed
  • Added InlineLinkSegment type to distinguish inline vs standalone link rendering

Test plan

  • URL on its own line shows rich preview card
  • URL mid-paragraph shows as inline clickable hyperlink
  • wss://relay.damus.io renders as clickable link and opens relay feed
  • Image URLs mid-paragraph still render as images (block-level)

…/ relay URLs

Standalone URLs (on their own line) get rich preview cards, while inline
URLs render as clickable hyperlinks. WebSocket relay URLs (wss://, ws://)
are now detected and tapping them opens the relay feed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@barrydeen barrydeen merged commit da4a906 into main Mar 1, 2026
@barrydeen barrydeen deleted the fix/link-rendering-improvements branch March 4, 2026 01:28
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