matrix-react-sdk
matrix-react-sdk copied to clipboard
Show strikethrough and bold text in room list message previews
Fixes vector-im/element-web #16330
Changes made:
- Render HTML content in message previews (using dangerouslySetInnerHTML)
- Sanitize message preview html to retain only strikethroughs and bold formatting (
<del>
and<strong>
tags)
Edit: Signed-off-by: Tanay Karnik [email protected]
Here's what your changelog entry will look like:
🐛 Bug Fixes
- Show strikethrough and bold text in room list message previews (#5813). Contributed by @tanayvk.
@tanayvk, thanks for working on this! Could you please include a sign-off as described here?
Sure. I thought I did sign-off, but let me recheck.
Okay for some reason git rebase --signoff origin/develop
doesn't seem to add the signoff to the commit messages automatically.
Anyway, I have added the sign-off in the PR comment message, that's okay right?
@tanayvk, yeah, that's alright
Okay done. Message previews now render: italics, underlined, bold, code and strikethroughs.
hey @tanayvk are you able to take a look at updating this?
This PR hasn't seen any attention for about 6 months, so we should probably close it unless someone is willing to take it on and address the remaining comments.
I'll give it a week and then close if I don't see a response.
Feel free to re-open if you want to get this code rebased and working with the latest!