github / github/paste-markdown

Unexpected HTML paste when copying code from Gitea

Open
#80 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
234
Forks
47
Avg merge
1d 12h
Merged PRs (30d)
5

Description

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.

---

```
{
--

}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.