github / github/paste-markdown
Pasting same title in html/markdown causes output to be nested
- Langage dominant
- JavaScript
- Étoiles
- 234
- Forks
- 47
- Merge moyen
- 1 j 12 h
- PR mergées (30 j)
- 5
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100