github / github/paste-markdown

Unexpected HTML paste when copying code from Gitea

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

Descrizione

Originally reported in https://github.com/go-gitea/gitea/issues/22622. To reproduce:

- Open [this source file](https://try.gitea.io/silverwind/symlink-test/src/branch/master/package.json), select all code lines, copy them
- Paste into GitHub comment box
- Pasted content is completely mangled. Paste result below. Expectation would be to only paste the plaintext parts of the clipboard data.

---

```
{
--

}

```

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.