github / github/paste-markdown
Markdown copy-paste bug: link jumps
- Vorherrschende Sprache
- JavaScript
- Sterne
- 234
- Forks
- 47
- Ø Merge
- 1 T. 12 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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](https://goo.gl)], [[2](https://goo.gl)] foo z2-3, bar [[3](https://goo.gl)].
* 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):
```
Blah-blah [1], [2] foo z2-3, bar [3].
```
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](https://goo.gl/)], [[2](https://goo.gl/)] foo z2-[3](https://goo.gl/), 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.
Beitragsleitfaden
Rechercherichtung
Reproduziere das Problem, indem du den Satz aus dem Report kopierst und in ein GitHub-Kommentarfeld einfügst, und verfolge anschließend den Einstiegspunkt für die Verarbeitung des Einfügens im Repository. Vergleiche das eingefügte Markdown mit der erwarteten Ausgabe mit drei Links, die im Issue gezeigt wird. Die Aufgabe ist erledigt, wenn der dritte Link weiterhin an seiner Bezeichnung hängt, ohne die anderen Links zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 52/100