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

Links with URL text aren't being parsed correctly #356

Closed
pdehaan opened this issue Feb 27, 2014 · 4 comments
Closed

Links with URL text aren't being parsed correctly #356

pdehaan opened this issue Feb 27, 2014 · 4 comments

Comments

@pdehaan
Copy link

pdehaan commented Feb 27, 2014

Steps to reproduce:

var marked = require("marked");
console.log(marked("visit us at [http://foo.bar](http://foo.bar)."));

Actual results:

<p>visit us at <a href="http://foo.bar"><a href="http://foo.bar">http://foo.bar</a></a>.</p>

Expected results:

<p>visit us at <a href="http://foo.bar">http://foo.bar</a>.</p>

This works fine, but I don't control the input markdown content, so this isn't possible for my app (unless I have to preprocess the markdown):

console.log(marked("visit us at <http://foo.bar>."));
@adam-p
Copy link

adam-p commented Mar 9, 2014

Are you testing with latest code? I think this is the same issue as #56 and was fixed two weeks ago in bcf206e.

@pdehaan
Copy link
Author

pdehaan commented Mar 9, 2014

I did a fresh npm install, but now you have me second guessing myself. I'll create a new project again and do npm install and confirm.

@adam-p
Copy link

adam-p commented Mar 9, 2014

It looks like @chjj hasn't done a release to npm since he fixed it. So... you're not crazy... and it is fixed... but you can't have the fix.

@pdehaan
Copy link
Author

pdehaan commented Mar 10, 2014

Current status:
sad

@chjj chjj closed this as completed in 43db549 Mar 10, 2014
ghost pushed a commit to zergeborg/marked that referenced this issue May 13, 2016
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

No branches or pull requests

2 participants