github / github/paste-markdown

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

Aperta
#96 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
234
Fork
47
Merge medio
1g 12h
PR unite (30g)
5

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.