-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(message-parser): mentions and emojis inside bold, italic and strikethrough #1035
fix(message-parser): mentions and emojis inside bold, italic and strikethrough #1035
Conversation
@hugocostadev, I'm a bit unsure about marking my pr as "Ready for review" because some of the tests are failing. Can you please advise me on what I should do in this situation? |
Hi @jayesh-jain252 thanks a lot for your contribution 🚀 I'm taking a look here, and the tasks that are failing it's important to fix, we had to avoid generating I'll try to figure out here, but just as a note, we need to fix those |
For Instant Testing: You can modify the grammar at Peggy online for testing For this grammar I took the top part of the code from rocketchat-pegjs-benchmark by hugocostadev and rest from current message-parse grammar. |
@hugocostadev now all the tests are passing. I've added an |
Awesome @jayesh-jain252 everything is working now, thanks a lot for your effort! |
@jayesh-jain252 can you open a PR in Rocket.Chat making the changes in the Gazzodown ? |
Thanks for the approval @hugocostadev 🚀. Opened the PR with changes in the gazzodown package RocketChat/Rocket.Chat#29391 |
Proposed changes (including videos or screenshots)
Mentions and emojis are not parsed when they are inside bold, italic or strikethrough
After:
mentions.webm
Channel Mentions
Emojis
Unicode.Emoji.webm
Emoticons
Issue(s)
RocketChat/Rocket.Chat#27838
RocketChat/Rocket.Chat#27839
RocketChat/Rocket.Chat#28843
Further comments
Modifications:
Emoji | UserMention | ChannelMention
to Bold, Italic, Strike definitionsFor testing in Rocket.Chat application, modify gazzodown package (e.g. Rocket.Chat/packages/gazzodown/src/elements/BoldSpan.tsx)