Skip to content

Conversation

@imjohnbo
Copy link
Contributor

@imjohnbo imjohnbo commented Jan 28, 2022

Summary

Hello! After #35, I discovered that this feature does not work on Microsoft Edge due to Improved copy and paste of URLs in Microsoft Edge. This pull request brings the functionality of #35 to Microsoft Edge.

Full support for Improved copy and paste of URLs in Microsoft Edge would come in a subsequent PR.

Here is a before/after:
paste-markdown-broken-fixed-edge

Thanks for taking a look!

@imjohnbo imjohnbo requested a review from a team as a code owner January 28, 2022 20:13
@imjohnbo imjohnbo requested a review from theinterned January 28, 2022 20:13
@imjohnbo imjohnbo marked this pull request as draft January 29, 2022 02:39
@imjohnbo
Copy link
Contributor Author

I moved to Draft because I'd like to test another edge case before proceeding. :-)

fix: only markdownify if corresponding plaintext can be found
@imjohnbo imjohnbo marked this pull request as ready for review January 31, 2022 02:08
@imjohnbo
Copy link
Contributor Author

Sorry for the back and forth – this is now ready for re-review 🙏!

Originally, I was checking for a certain content-type and returning quickly if it was detected.

However, I think the better solution to the problem is to add proper error checking to the trimAfter function.

Let me know if you have any questions 🙇.

Copy link
Contributor

@theinterned theinterned left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does seem more straightforward! Nice!

@theinterned theinterned merged commit c00138b into github:main Feb 1, 2022
@imjohnbo imjohnbo deleted the imjohnbo/fix-edge-link-paste branch February 1, 2022 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants