-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Markdown links don't work properly when there is text in brackets at the beginning of the line #4526
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
Comments
Triggered auto assignment to @tgolen ( |
If it could be external I would like to post my proposal 😅 |
Unfortunately, this is a regression from Expensify/expensify-common#401. We expected a couple of regressions from this PR Expensify/expensify-common#400 (comment). |
Yeah this is a regression from m PR Expensify/expensify-common#400. I'll fix it. |
I've tried a few regex but some of the test cases break. Give me a day or two to find a solution and close this. @tgolen can you please assign this to me? |
OK, assigned! |
@isagoico @tgolen Can you guys help me with additional test cases for Markdown links?
I can find a solution to get both the nested cases work but if additional test cases are provided I can give a better solution to avoid any regression later. |
Are nested links a requirement? I don't think so. I think case 2 in your comment is something we want to support though. How is that different than the case that spawned this issue with brackets at the beginning of the text? |
@tgolen I've raised the PR with fixes. What I mean by the earlier question was, by default JS regex doesn't support recursion and hence are we looking at any nested options. Anyway, I've got the answer. Please review this PR so that I can update the hash in App and close it. |
@mananjadhav I think there was some miscommunication here. When you asked me to assign it to you, I didn't know that you thought that meant it was OK to work on. This needs to go back through our normal process, so I am going to unassign it from you and we will walk some of this back before I can evaluate your PR. |
Triggered auto assignment to @arielgreen ( |
@arielgreen we goofed up a little bit on the process here. I am OK with the proposal that @mananjadhav gave, but we need to get this to go through UpWork before he can work on it I believe (if @mananjadhav wants to be paid for the fix). |
@mananjadhav I've just sent over an offer via Upwork. |
@tgolen I had worked on the first task of handling few conditions on MD Hyperlink conversion. This PR is meant to handle additional cases, which I treated as a regression from that PR. This PR covers multiple additional nested cases of brackets etc. as pointed in this comment too (Expensify/expensify-common#407 (review)). Whether this change is eligible for payment or not I am not sure about it. |
Actually this issue is caused as a regression from the main PR. That's why @mananjadhav actively participated in it. #4526 (comment) But it is up to you guys to decide. |
Oh, ha... well, welcome to my chaos roller coaster! Sorry about that confusion, I get it now. OK, if it's a regression from a previous PR, then this would be part of the original job and there would be no additional payment, so I think we are OK here and I'm assigning back to @mananjadhav and we can go ahead and get the fix merged when it's done being reviewed. |
@tgolen I've raised the PR with the screenshots. There seems to be a problem in rendering the hyperlinks on mobile Apps. You'll notice that they're aligned to the top. IIt isn't due to this PR. I've attached a screenshot where even if I paste a regular link it is aligned at the top. @parasharrajat Could this be because of the recent upgrade of |
@mananjadhav It could be but You don't need to worry about that in the Current PR. I am in discussions about the issues from the upgrade of |
@tgolen, @mananjadhav Huh... This is 4 days overdue. Who can take care of this? |
PR is merged. Under QA. |
@tgolen, @mananjadhav Eep! 4 days overdue now. Issues have feelings too... |
@tgolen, @mananjadhav 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@tgolen, @mananjadhav 10 days overdue. I'm getting more depressed than Marvin. |
@tgolen Is this safe to close? or add some label? It is deployed to production already as the comment on the PR |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Message should be displayed like this -> [Text text] more text (link here)
Actual Result:
Message is not correctly hyperlinked. Please check the screenshot
The
more text
part is incorrectly included in a hyperlink.Workaround:
N/A
Platform:
Where is this issue occurring?
Version Number: 1.0.83-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Please check the screenshot in Actual Result.
Expensify/Expensify Issue URL:
View all open jobs on Upwork
From @rafecolton https://expensify.slack.com/archives/C01GTK53T8Q/p1628560869141100
The text was updated successfully, but these errors were encountered: