Skip to content

fix(discord): render bare URLs as bare links, not masked links.#567

Open
furgin wants to merge 1 commit into
vercel:mainfrom
furgin:fix/discord-bare-url-links
Open

fix(discord): render bare URLs as bare links, not masked links.#567
furgin wants to merge 1 commit into
vercel:mainfrom
furgin:fix/discord-bare-url-links

Conversation

@furgin
Copy link
Copy Markdown

@furgin furgin commented May 29, 2026

Summary

Discord only renders masked links [text](url) inside embeds. In a normal message, a bare URL converted to [url](url) shows up as literal text rather than a clickable link.

In nodeToDiscordMarkdown's link branch, return the bare URL when the link's label equals its target (the bare-URL / autolink case); labeled links are unchanged. Adds regression tests for both bare URLs and .

Fixes #565.

Test plan

  • Updated markdown.tests.ts
  • Tested manually with a simple bot in discord

Checklist

  • All commits are signed and verified
  • pnpm validate passes
  • Changeset added
  • Documentation updated - N/A

…inks

Discord only renders masked links `[text](url)` inside embeds. In a normal
message, a bare URL converted to `[url](url)` shows up as literal text rather
than a clickable link.

In nodeToDiscordMarkdown's link branch, return the bare URL when the link's
label equals its target (the bare-URL / autolink case); labeled links are
unchanged. Adds regression tests for both bare URLs and <autolinks>.
@furgin furgin requested a review from a team as a code owner May 29, 2026 07:50
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 29, 2026

@furgin is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

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.

Discord adapter renders bare URLs as [url](url) masked links, which display as literal text

1 participant