-
-
Notifications
You must be signed in to change notification settings - Fork 27
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 "https://" in link text not properly parsed #8
Comments
did you |
Related to remarkjs/remark-gfm#8.
I added several tests and can’t reproduce it. |
The problem here is that our package-lock.json was specifying It might be nice to consider specifying a minimum version of
(in my opinion, this bug isn't fixed until you update your package.json?) thanks! |
This is what the caret stands for: accept bug fixes. Before we had package locks, we had semver. |
🤷♂️ this goes both ways, yes occasionally upgrading the lockfile may cause a regression, the majority of the time it's bug fixes.
As @wooorm mentions, that is what a version range does, it allows smooth upgrades. |
Subject of the issue
When using the
remark-gfm
plugin, certain links are misparsed. Without the plugin, links are always parse properly. Plugging the breaking input into github.com's Preview results in the expected correct parsing behavior. See below for an example.Your environment
Steps to reproduce
With the following input
the link is parsed such that the
link
callback has an oddhref
attribute ofI checked, and that source is parsed as expected by github.com. If instead I use the following
source
, the link is now parsed properly byreact-markdown
:And if i remove the
gfm
plugin, then bothsource
are parsed properly.Expected behavior
remark-gfm
should not affect link parsingActual behavior
Link parsing seems to break when using
remark-gfm
.The text was updated successfully, but these errors were encountered: