github / github/paste-markdown

Pasting same title in html/markdown causes output to be nested

Offen
#96 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
234
Forks
47
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

This is an issue that was forwarded to me, but I'm able to reproduce.

If text/html and text/plain contain the same title, the output we return is nested.

Expected output: `[[Same](https://google.com/)](https://google.com)"`
Actual output: `[Same](https://google.com)`

Reproduction: https://codepen.io/tarngerine/pen/ZEZBEpy

Try pressing the `Copy` button on either of the examples and try pasting into any GitHub comment box.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the linked CodePen reproduction and compare what happens when copying each example into a GitHub comment box. Trace the paste handling in the repository to identify why identical text/html and text/plain titles produce non-nested output; done means the reproduction returns the expected nested Markdown link.

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
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.