-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD react-native-live-markdown #317] [$500] Render shortened mentions with blue/green outline in live markdown preview #38025
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b3ecb2640f3bf7a3 |
Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
No problem. Done |
📣 @OskarMast! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.New Feature - The live markdown preview in the composer (mobile app only) does not currently render shortened mentions (e.g., @username without the domain) with the blue/green outline like it does for full mentions (e.g., @[email protected]). This is inconsistent with how mentions actually render in the chat. What is the root cause of that problem?The root cause is that the logic for detecting and rendering mentions in the live preview, specifically in the What changes do you think we should make in order to solve the problem?To solve this issue, we should make the following changes:
readonly EMAIL_PART: "([\\w\\-\\+\\'#]+(?:\\.[\\w\\-\\'\\+]+)*(?:@(?:[\\w\\-]+\\.)+[a-z]{2,})?)";
readonly MARKDOWN_EMAIL: "([\\w\\-\\+\\'#]+(?:\\.[\\w\\-\\'\\+]+)*(?:@(?:[\\w\\-]+\\.)+[a-z]{2,})?)"; Now, the |
Tagging @robertKozik @tomekzaw as this is related to markdown preview. |
@thienlnam We would like to work on it as this probably requires some small changes in Live Markdown library as well. |
Hey! I’m Jakub Szymczak from Software Mansion, an expert agency, and I’d like to work on this issue! |
Personally I don't think this requires any change in markdown live preview, and should only include an update to our |
Any progress on this one Expensify/react-native-live-markdown#317 cc @tomekzaw? |
Discussing it here: https://expensify.slack.com/archives/C01GTK53T8Q/p1716235671381059 |
Still on hold, but we're making progress. |
Discussion here: https://expensify.slack.com/archives/C01GTK53T8Q/p1716235671381059 Seems like we're currently holding on #42247 |
Still on hold, but the issues we're held on are making progress. |
@thienlnam @puneetlath I think this should be off hold now. |
Waiting for Expensify/react-native-live-markdown#317 Latest update here Expensify/react-native-live-markdown#317 (comment) |
Still held |
Still on hold for Expensify/react-native-live-markdown#317 |
Same ^ |
Looks like the above is closed to getting merged, should be off hold soon |
Problem
Our markdown rendering renders mentions with a blue or green outline within the chat body like this:
We also have "live markdown preview" in the composer which is supposed to give a live preview of how the text will be rendered like this:
However, this doesn't currently happen for shortened mentions:
Solution
Add shortened mentions to the live markdown preview rendering that happens in the composer.
Note for potential contributors: live markdown preview currently only exists on mobile apps.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: