Mentions use ids when exposed in code blocks

(#3000) Bug Confirmed desktop markdown

Observed behaviour

The id of the mention is shown instead.

Reproduction steps

  1. Type out a mention or a channel link
  2. Surround the link in a codeblock

Build information

Canary Desktop 2026.606.140333, Web 2026.605.11941, Linux 7.0.10-arch1-1 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US

Platform

Linux

Details

Expected behaviour A plaintext version of the link's contents are shown; if a channel link is within a codeblock, its name should be displayed.
  • Screenshot_20260609_125441.png

    Screenshot_20260609_125441.png

    366×184 | 26 kB

  1. Rex changed the status from Needs triage to Confirmed

3 comments

Sign in with Fluxer to comment and vote.
Comment by Fullest
Can reproduce CR: on Discord, @Fullest in a code block would render as @Fullest#0000 Canary Desktop 2026.603.33821, Web 2026.605.11941, Linux 7.0.11-100.fc43.x86_64 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US
Comment by Comfy_Deer
Comfy_DeerReviewer 1 vote
Can reproduce CR - Canary Desktop 2026.602.31138, Web 2026.605.11941, Linux 6.17.0-35-generic (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US