-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Compose -Copy URL to clipboard shows url link and markdown text. #31422
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b6ad7e1bea3c914c |
Triggered auto assignment to @peterdbarkerUK ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Will you let me know what the original text is? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Paste URL with hash inside bold markdown does not apply the bold markdown
What is the root cause of that problem?Our bold rule is currently after the auto link rule, so at the time bold rule is processed, the auto link already assumes the What changes do you think we should make in order to solve the problem?
The current auto link regex is here We need to update the Same for auto email here, update We can fix the same for other tags like italic (move above What alternative solutions did you explore? (Optional)Modify the auto link rule to not consume the bold/italic character if it's entirely inside the special character pairs for bold, italic, ... |
@s-alves10 please try with this text |
@ntdiary, @peterdbarkerUK Eep! 4 days overdue now. Issues have feelings too... |
repro'd and updated OP |
ProposalPlease re-state the problem that we are trying to solve in this issue.URL with hash inside bold markdown does not apply the bold markdown
What is the root cause of that problem?The bold rule is after the auto link rule, What changes do you think we should make in order to solve the problem?If Url with ending asterisk is part of string which is likely to be parsed as bold (e.g.
we can add relevant test case This approach does not make other test cases failed. |
📣 @css1022! 📣
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This seems like dupe of #30823 |
@ntdiary, @peterdbarkerUK Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I would agree it seems to be the same root cause of where * fits int he regex pattern. @r3770 could you clarify why you disagree? |
@conorpendergrast, eh, that PR has been deployed to the production, but it didn't resolve this issue. BTW, here's the structure of the URL: So far, we allow the However, if we still want to fix this issue eventually, we can continue to wait for some new proposals, because the above proposals don't seem to be very perfect. :) |
Fantastic, thanks for that @ntdiary - I'm coming to this late, so that's really helpful. I'll take another pass through, reproduce it too, and then will recommend fixing or closing. |
Ok, I've reproduced this again too.
Thinking with my customer support hat on, I think I can imagine myself sending a message like:
Whereas the workaround is:
Which does work: |
I've posted to #expensify-open-source in Slack to get discussion on closing this out |
@conorpendergrast, @ntdiary Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Triggered auto assignment to @sakluger ( |
Hi @ntdiary, I'd like to fix this issue, and I think that Conor's proposed fix in his comment here is a good solution. |
@sakluger, are you referring to this workaround?
Our app already supports this workaround, but our customers need to use the standard markdown link format, which is If we want to use both autolink and bold format (i.e., |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hi @ntdiary - I misunderstood Conor's comment before, sorry about that! I thought his "workaround" was a proposed solution when it's actually what the user would have to do to make the whole text line bold. I did a bit more research and found that it's possible for URLs to have In the future, after we add live markdown previews, we'll also add keyboard shortcuts (i.e. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.0-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
*text https://expensify.com#abc*
Expected Result:
Link should be bolded
Actual Result:
Link is not bolded, markdown * are showing
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6278535_1700104850573.star.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: