Closed sunknudsen closed 3 years ago
The issue is related to autolink literals, this issue is being tracked at https://github.com/micromark/micromark-extension-gfm-autolink-literal/issues/5 and a possible solution in the works at https://github.com/micromark/micromark-extension-gfm-autolink-literal/pull/6
closing this issue, as it isn't actionable at the remark-gfm
level and will be resolved in micromark-extension-gfm-autolink-literal
There's also a potential work around described here: https://github.com/remarkjs/remark-gfm/issues/6#issuecomment-767775803
Thanks for the heads-up @ChristianMurphy. Thankfully, I "own" the content and used \[(http.*?)\]\(\1\)
to find and replace links to $1
.
Subject of the issue
Let's say we have the following markdown.
[https://www.twilio.com/](https://www.twilio.com/)
is rendered as[https://www.twilio.com/](https://www.twilio.com/)
vs ahttps://www.twilio.com/
hyperlink with ahttps://www.twilio.com/
href
.Your environment
10.15.7
react-markdown
andremark-gfm
14.15.1
and npm6.14.11
Steps to reproduce
This should be pretty straightforward to reproduce using above markdown.
Expected behavior
[https://www.twilio.com/](https://www.twilio.com/)
should be rendered ashttps://www.twilio.com/
hyperlink with ahttps://www.twilio.com/
href
.Actual behavior
[https://www.twilio.com/](https://www.twilio.com/)
is rendered as[https://www.twilio.com/](https://www.twilio.com/)
.