Skip to content

feat: inline links for profile bio and bare domain detection#46

Merged
barrydeen merged 1 commit intomainfrom
feat/inline-bio-links
Feb 26, 2026
Merged

feat: inline links for profile bio and bare domain detection#46
barrydeen merged 1 commit intomainfrom
feat/inline-bio-links

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Bare domains (e.g. domain.com, example.pro/about) are now detected as clickable links using a TLD allowlist, preventing false positives like domain.8839734
  • New plainLinks parameter on RichContent renders links as inline blue clickable text instead of OG preview cards
  • Profile bios use plainLinks = true so URLs appear as lightweight inline links rather than heavy link preview cards

Test plan

  • Profile bio with https://example.com renders as inline blue clickable text, not a preview card
  • Note with domain.com renders as a clickable link (opens https://domain.com)
  • Note with domain.8839734 renders as plain text (not detected as a link)
  • Bare domain with path example.com/about is detected and clickable
  • Notes still show link preview cards for URLs (default behavior unchanged)
  • Existing hashtag, profile mention, and nostr: URI detection still works

Bare domains (e.g. domain.com, example.pro/about) are now detected as
links with known TLDs and rendered as clickable text. Add plainLinks
parameter to RichContent that renders links as inline blue text instead
of OG preview cards, used in profile bios.
@barrydeen barrydeen merged commit 896c787 into main Feb 26, 2026
@barrydeen barrydeen deleted the feat/inline-bio-links 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