Skip to content
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

Markdown formatted links in text #220

Open
Kequc opened this issue Jan 20, 2018 · 2 comments
Open

Markdown formatted links in text #220

Kequc opened this issue Jan 20, 2018 · 2 comments
Labels
feature plugin Anything related to the plugin API
Milestone

Comments

@Kequc
Copy link

Kequc commented Jan 20, 2018

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.
@nfrasser
Copy link
Owner

nfrasser commented Mar 3, 2018

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

@Kequc
Copy link
Author

Kequc commented Mar 3, 2018

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.

@nfrasser nfrasser added this to the 4.1+ milestone Jan 31, 2022
@nfrasser nfrasser added plugin Anything related to the plugin API and removed help wanted labels Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature plugin Anything related to the plugin API
Projects
None yet
Development

No branches or pull requests

2 participants