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 IPv6 addresses cannot be handled correctly #800

Open
YihaoPeng opened this issue Jan 29, 2021 · 0 comments
Open

Links with IPv6 addresses cannot be handled correctly #800

YihaoPeng opened this issue Jan 29, 2021 · 0 comments

Comments

@YihaoPeng
Copy link

Consider the following text:

Link with IPv6 address:
https://[2408:400a:d:a300::1]/

Link with IPv6 address and port:
https://[2408:400a:d:a300::1]:443/

The parsing result on https://parsedown.org/demo is:

image

<p>
  Link with IPv6 address:
  <a>https://[2408:400a:d:a300::1</a>]/
</p>
<p>
  Link with IPv6 address and port:
  <a href="https://[2408:400a:d:a300::1]/">https://[2408:400a:d:a300::1]:443/</a>
</p>

It should be:

<p>
  Link with IPv6 address:
  <a>https://[2408:400a:d:a300::1]/</a>
</p>
<p>
  Link with IPv6 address and port:
  <a href="https://[2408:400a:d:a300::1]/">https://[2408:400a:d:a300::1]:443/</a>
</p>
@YihaoPeng YihaoPeng changed the title Links with IPv6 addresses cannot be resolved correctly Links with IPv6 addresses cannot be handled correctly Jan 29, 2021
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

1 participant