Open Roukoswarf opened 2 years ago
Where do you see it as a single line? Only the line numbering is broken for me, the breaks are there 🤔
It's not related to org.matrix.msc1767.message
, but it's definitely a client bug (specifically, it doesn't handle <br/>
properly). I might still work around it in the bridge since I don't think element web is the only client that has bugs in that area.
I played with some settings, it seems to be dependent on syntax highlighting being enabled clientside for codeblocks.
I can reproduce the broken line numbering by disabling syntax highlighting, resulting in the entire 3 line block rendering as line "1". Once highlighting is switched on, messages from the bridge appear in one line.
When sent a codeblock such as:
From a google chat user, the message will be rendered as a single line lacking \n in element desktop. This is technically element-desktop/element-web's fault, as it does appear properly in element mobile, but is not a problem on matrix to matrix as the message json is different.
Examples:
From bridge:
From element:
I am not sure if this is something I should instead be reporting to element, or if the bridge should add text/html to make element-desktop/web happy.