Closed rooneyg21 closed 5 years ago
Sure. Pull request welcome.
Sadly this isn't useful if linkify-urls
is used to to match URLs inside random strings.
https://runkit.com/embed/rys5wsu5zn99
If we don't know what part of input
is a URL, when does a static value
ever come useful? It should be a callback on each matched URL.
Related: https://github.com/sindresorhus/refined-github/issues/811#issuecomment-350296939
Fixed by #18
This would help solve sindresorhus/refined-github#703
If the user can pass the value as part of the options, the library can parse the href text and add an anchor element that has whatever the user wants as its text (HTML in the case of sindresorhus/refined-github#695 to preserve the span tags)