Skip to content

Let <url> stop a link from auto-embedding - #1651

Open
SkyJoshua wants to merge 1 commit into
version/0.8.0from
feat/no-embed-brackets
Open

Let <url> stop a link from auto-embedding#1651
SkyJoshua wants to merge 1 commit into
version/0.8.0from
feat/no-embed-brackets

Conversation

@SkyJoshua

@SkyJoshua SkyJoshua commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #1509. Wrapping a link in angle brackets (<https://app.valour.gg>) already renders as a plain clickable link via standard markdown — no code change needed there, Markdig already handles it natively. What didn't work was the server still generating a preview/embed card for that URL regardless. Now it doesn't: a bracketed link is skipped when scanning message content for embeds.

This also sidesteps the underlying complaint in the issue about embeds being unreliable to remove after the fact (missing close button on hover, embed reappearing after refresh) — since the embed is never created at send time for a bracketed link, there's nothing to get stuck.

Changes

  • ProxyHandler.GetUrlAttachmentsFromContent now skips embed generation for any URL match immediately preceded by < and followed by > in the raw message content

Videos

url.Example.mp4

Wrapping a link in angle brackets already renders it as a plain clickable
link (standard markdown), but it would still generate a preview card. Now
it doesn't.
@SkyJoshua
SkyJoshua requested a review from a team as a code owner August 2, 2026 01:56
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying valour with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63f257c
Status: ✅  Deploy successful!
Preview URL: https://d60451da.valour.pages.dev
Branch Preview URL: https://feat-no-embed-brackets.valour.pages.dev

View logs

@SigmaTel71 SigmaTel71 linked an issue Aug 7, 2026 that may be closed by this pull request
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.

📦 Feature - Markdown to block embedding links

2 participants