Description
Steps to reproduce
- Be in a chat room.
- Send a message with a code block containing a space/room invite link.
Example:
Join my space:
https://matrix.to/#/#blue-panda-empyrean:matrix.org
Raw (don't copy-and-paste this, inserted nbsp characters for formatting):
```md
Join my space:
https://matrix.to/#/#blue-panda-empyrean:matrix.org
```
- Edit the message, for example:
- Join my space:
+ Join my space!
What happened?
The invite gets rendered inside of the code block.
What did you expect?
Code blocks should have text inside displayed literally. So, it should display the literal text without rendering the badge/image of the space/room.
Operating system
Ubuntu 20.04
Browser information
Firefox 91.0.1 (64-bit)
URL for webapp
develop.element.io
Have you submitted a rageshake?
No