github / github/paste-markdown

Unexpected HTML paste when copying code from Gitea

未关闭
#80 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
234
派生
47
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

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.

---

```
{
--

}

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。