angular-linkify icon indicating copy to clipboard operation
angular-linkify copied to clipboard

Remove bespoke URL work and replace with linkifyjs

Open marksyzm opened this issue 9 years ago • 10 comments

Some people have done a lot of work to make links and hashtags work with this plugin and I think it'd be worth it to just implement those instead to cover all bases. I know this means removing identity of what this plugin is, but maybe you'd get more recognition?

See here: LinkifyJS

marksyzm avatar Jan 31 '16 21:01 marksyzm

I'm going to do a fork pretty soon, but assume that it's pretty much a full rewrite with the same functionality :)

marksyzm avatar Jan 31 '16 21:01 marksyzm

@marksyzm, it's great idea! I wrote this around the same time that was being written, so I was unaware of it. Please feel free to open an PR and we can get that in there!

scottcorgan avatar Feb 01 '16 15:02 scottcorgan

Will do :) I'm trying to get it working as it is at the moment with my current build, then I'll send it over. Might have to add in webpack if that's okay with you, so people can just install it as a whole bundle.

marksyzm avatar Feb 01 '16 15:02 marksyzm

Guild process doesn't really matter. As long as there's a dist folder. Might want to add some tests too.

scottcorgan avatar Feb 01 '16 15:02 scottcorgan

I've basically written the library already (within my own system, so I could test it against a real setup) and I've submitted these so we've got a proper plugin for mentions first: https://github.com/SoapBox/linkifyjs/pull/111 https://github.com/SoapBox/linkifyjs/pull/112

Then I'll chuck this all together via a fork from your repo, chuck some tests together and then work on the build output for making it work nicely via bower and npm. Shouldn't take too long!

marksyzm avatar Feb 04 '16 22:02 marksyzm

Sounds good. I can give you access to the repo too when you're ready.

scottcorgan avatar Feb 05 '16 16:02 scottcorgan

As a collaborator? Cool - I don't mind just doing it from a fork and send a PR over but that's up to you. I'm pretty close to ready so I can make a start tonight (or over the weekend, rather) if you want.

marksyzm avatar Feb 05 '16 16:02 marksyzm

You can probably just open a PR, once I merge it in, I can add you as a collaborator. It'll be good to get some fresh eyes on the repo as I haven't been in Angular land for quite a few years.

scottcorgan avatar Feb 05 '16 16:02 scottcorgan

Here we go! https://github.com/scottcorgan/angular-linkify/pull/22 Haven't got the tests in yet, but I'll knock them up ASAP. Go take a look and see if that works for you. I can't work out how to stop webpack from building linkifyjs into the dist build for bower/stand alone use but otherwise, we're good. It builds to UMD too!

marksyzm avatar Feb 08 '16 23:02 marksyzm

Oh and that seems to fix pretty much all the issues mentioned in your recent list (with a little refactoring on their part).

marksyzm avatar Feb 08 '16 23:02 marksyzm