linkifyjs
linkifyjs copied to clipboard
Markdown formatted links in text
Linkifyjs shouldn't be a markdown parser.
But somehow or another Markdown formatted links keep showing up in strings that are submitted by users. Maybe this library can check for them?
Or how should I try and handle them myself?
Current:
[http://example.com](http://example.com)
"http://example.com](http://example.com)" is captured once.
Preferred:
"http://example.com" is captured twice.
There's no great way of going about this unfortunately. I'd suggest running Linkify after the markdown is rendered, with one of the DOM-compatible interfaces: http://soapbox.github.io/linkifyjs/docs/interfaces.html
I'd really rather not render markdown, just capture the links without them breaking. The same thing could be done for square brackets as is being done with round ones?
I hate to put work on anyones plate, it does seem odd behaviour.