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 copy-paste bug: link jumps #94

Open
i3v opened this issue Mar 14, 2024 · 0 comments
Open

Markdown copy-paste bug: link jumps #94

i3v opened this issue Mar 14, 2024 · 0 comments

Comments

@i3v
Copy link

i3v commented Mar 14, 2024

I'm copying a mere line of text from my own older post to quote it in a new post.
This line got 3 embedded urls, two of which are copied correctly, but the 3rd breaks weirdly.

Reproduction Steps

  1. Select the sentence below and hit CTRL+C:

    • Blah-blah [1], [2] foo z2-3, bar [3].
    • Underlying markdown code:
      Blah-blah [[1](https://goo.gl)], [[2](https://goo.gl)] foo z2-3, bar [[3](https://goo.gl)].
      
    • Underlying html code (obtained with Right-click -> Inspect -> Copy element):
    <p dir="auto">Blah-blah [<a href="https://goo.gl" rel="nofollow">1</a>], [<a href="https://goo.gl" rel="nofollow">2</a>] foo z2-3, bar [<a href="https://goo.gl" rel="nofollow">3</a>].</p>
    
  2. Find any "Add a comment" text input field on https://github.com/ and CTRL+V there. The result looks like this (note that the last link suddenly "jumped"):

    • Blah-blah [1], [2] foo z2-3, bar [3].

    • Same as code:

      Blah-blah [[1](https://goo.gl/)], [[2](https://goo.gl/)] foo z2-[3](https://goo.gl/), bar [3].
      

I've originally reported this to https://support.github.com/contact/bug-report , but they asked me to report it here.

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