Markdown copy-paste bug: link jumps
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Reproduce the issue by copying the sentence in the report and pasting it into a GitHub comment field, then trace the paste-handling entry point in the repository. Compare the pasted Markdown with the expected three-link output shown in the issue. Done means the third link remains attached to its label without changing the other links.
Written by the indexing model from the issue text.
Description
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
-
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> -
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"):
I've originally reported this to https://support.github.com/contact/bug-report , but they asked me to report it here.
- Dominant language
- JavaScript
- Stars
- 234
- Forks
- 47
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/paste-markdown
-
Pasting a link whose text/html label is a shortened form of its URL plants a `[` inside the URL Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
github/paste-markdown#118 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/paste-markdown#107 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
github/paste-markdown#104 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
github/paste-markdown#100 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
github/paste-markdown#96 · 1 comment ·
All issues in github/paste-markdown
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·