Multi-line code block does not look correct when closing backticks are next to final line

(#2455) Bug Fixed desktop markdown

Observed behaviour

each individual line is in it's own code block

Reproduction steps

  1. Copy code block included in attachments
  2. Paste in message box and send message

Build information

canary build 605 (0f4cfbe), Electron 41.2.2, Windows 10 10.0.19045 (x64), desktop canary 0.0.122, locale en-US

Platform

Windows

Evidence

Code block: ``` test line 1 test line 2``` screenshot of bug

Details

Expected behaviour test line 1 and test line 2 are in a multi-line code block
  • RYZEN-PC_Fluxer_Canary_2026-05-05_04-33-28_HF182gcQns.png

    RYZEN-PC_Fluxer_Canary_2026-05-05_04-33-28_HF182gcQns.png

    221×105 | 6 kB

  1. Rex changed the status from Needs triage to Fixed

3 comments

Sign in with Fluxer to comment and vote.
Comment by Daffyduck
DaffyduckMod 1 vote
Can reproduce CR canary build 605 (0f4cfbe), Electron 41.2.2, Windows 11 10.0.26200 (x64), desktop canary 0.0.122, locale en-GB
Comment by loyka32
loyka32Reviewer 1 vote
Can reproduce
  • Each line is posted in its own code block, exactly as described with the test lines provided in the attachment. Confirmed. - canary build 605 (0f4cfbe), Electron 41.2.2, Linux 7.0.3-arch1-1 (x64), desktop canary 0.0.122, locale en-GB