-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 for Payment 13 August] Implement Hyperlink and Email link HTML to markdown conversion #4187
Comments
Triggered auto assignment to @MitchExpensify ( |
A suggestion to the description.
|
Sounds good, updated! |
To match anchor tags we can use this
|
Replicated! Looks like a good external issue right @Jag96? |
@MitchExpensify ah yes, forgot to add the External label! |
Weird that it didn't auto assign someone |
Triggered auto assignment to @laurenreidexpensify ( |
Ignore the PR reference. Proposal for Link HTML to Markdown I would go ahead with this regex.
This will result in two matches $1 and $2. I'll add code to matching groups to handle plain links and It basically covers the odd cases such as inconsistent parenthesis etc. I can implement this if you plan to hire along with the tests. Will handle this for all the three groups mentioned. |
Hi Folks - @Jag96 @MitchExpensify I'm confused here - should I have hired @mananjadhav in Upwork yet? did we agree on the path for the fix in the PR? |
We agreed the problem was a good candidate for external so I think an Upwork job can be created. Then we'd hire @mananjadhav if the proposal suggested here looks good, right? |
@laurenreidexpensify @MitchExpensify first we need to create the Upwork job, then we can assign the |
Will wait for the job to be created. For the engineer to review, I've added this commit in my fork along with the unit test cases that confirm it is working for hyperlink as well as email. |
okay we're on upwork here now |
I've added a PR for review and also sent a proposal on Upwork! |
Thanks @mananjadhav, just for reference the process here is that once a job has been added to Upwork folks can submit proposals on this GH issue and @Luke9389 will review them here and confirm when we're ready to move to PR. So for now you can close that PR and if @Luke9389 confirms your proposal is the one we're moving forward with, I will hire you in Upwork and then you can reopen or create a new PR. Thanks! |
Noted. Thanks for explaining the process. Closing the PR. |
@Luke9389 can you take a look today when you're back? Thanks |
Proposal #4187 (comment). Please let me know if you need further explanation. Thanks. |
Ok, @parasharrajat had a proposal down first, so I'm gonna give him the green light to write up a PR. |
https://www.upwork.com/jobs/~015d7fb34d72ccdc11 @parasharrajat hired you on Upwork |
@parasharrajat, @Luke9389, @laurenreidexpensify it looks like no one is assigned to work on this job. |
melvin u liar |
Strange, I'm gonna look into why Melvin misfired here... |
@parasharrajat looks like we missed a step here and you were never hired in Upwork for this one 😬 can you apply and i'll hire / pay you as soon as that's done! thanks! |
All sorted |
I think this case should be added as well: (when text includes http/https so text and url are same)
Here's video of failure: html.markdown.movAfter reviewing code, I suspect this line which excludes failure case above:
But we cannot remove this condition completely because of email case. Solution:
final code:
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Related to #3047, similar to Expensify/expensify-common#392. Email and link MD->HTML version can be found here
Action Performed:
Copied a hyperlink from slack to E.cash
Expected Result:
Rules of parsing would be as
[html](www.google.com)
When<a href="www.google.com">html</a>
and you will see this type pf link as html.www.google.com
when<a href="www.google.com">www.google.com</a>
and you will see this type pf link as www.google.com.abc@gmail.com
when<a href="abc@gmail.com">abc@gmail.com</a>
and visible as abc@gmail.com.Actual Result:
Message just pasted text
Platform:
Where is this issue occurring?
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: