Multi-line code block hides first line if it is next to starting backticks

(#2456) Bug Closed: Fixed desktop markdown

Reproduction steps

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

Observed behaviour

test line 1 is hidden from view Note: As far as I can tell, this is intended behavior for Markdown — however Discord Markdown does allow this formatting. This bug report can be denied if this is intentional behavior.

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
  1. Rex changed the status from Needs triage to Fixed

2 comments

Sign in with Fluxer to comment and vote.
Comment by loyka32
loyka32Mod 1 vote
Can reproduce
  • Text line 1 is hidden when the provided testing template in the attachments is used. Confirmed. - canary build 605 (0f4cfbe), Electron 41.2.2, Linux 7.0.3-arch1-1 (x64), desktop canary 0.0.122, locale en-GB