`||` in YouTube embeds renders as spoiler when it shouldn't

(#3131) Bug Confirmed embeds markdown

Observed behaviour

Text is spoilered. Whitespace following the second || is also trimmed.

Reproduction steps

  1. Have a YouTube video embed with || <text> || in its title (in this case https://youtu.be/Jm2dJTsYuB4)
  2. Wait for the embed

Build information

Canary Web 2026.605.11941, Linux (x64), Firefox 151.0, Locale fr

Platform

Web

Evidence

1st: After clicking the spoiler 2nd: Before clicking the spoiler 3rd: Title, as seen on YouTube

Details

Expected behaviour Text should not be spoilered. Whitespace should be preserved.
  • grafik.png

    grafik.png

    436×156 | 18 kB

  • grafik.png

    grafik.png

    436×156 | 17 kB

  • grafik.png

    grafik.png

    611×43 | 8 kB

  1. Rex changed the status from Needs triage to Confirmed

3 comments

Sign in with Fluxer to comment and vote.
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
Comment by mesub
mesubMod 1 vote
Can reproduce CR: Canary Desktop 2026.606.140333, Web 2026.605.11941, Windows 11 10.0.26200 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-GB
Comment by ternera
terneraMod 1 vote
Can reproduce CR - Canary Desktop 2026.602.31138, Web 2026.605.11941, Windows 11 10.0.26200 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US