Open turt2live opened 6 years ago
We (obviously) shouldn't be parsing the display name within the pill as markdown (though I fear that might be quite tricky to implement).
At the moment I can only think of display-names-containing-markdown that might make things look a bit cosmetically weird. If there's anything worse than that this might be worth bumping to a P1.
Another case:
The solution here would probably be to escape special characters in the URL text (using backslashes) and the hyperlink (using percent-encoding).
The current rendering itself does seem to be correct according to CommonMark: https://babelmark.github.io/?text=%5Bfoo%60%5D(http%3A%2F%2Fexample.com%2Fbar%60%2Fbaz) - so this would be an issue in the code that converts a highlight to a Markdown link, not in the client rendering.
Message source:
{
"unsigned": {
"transaction_id": "m1558341085491.761",
"age": 53
},
"event_id": "$15583410851132WwVxa:alternanet.fr",
"sender": "@joepie91:alternanet.fr",
"content": {
"msgtype": "m.text",
"body": "joepie91`: test",
"format": "org.matrix.custom.html",
"formatted_body": "[joepie91<code>](https://matrix.to/#/@freenode_joepie91</code>:matrix.org): test"
},
"type": "m.room.message",
"origin_server_ts": 1558341085561,
"room_id": "!FpSNdNQOADEwDHqmrC:matrix.org"
}
Where curly brackets represent a pill, here's an example: