github / github/paste-markdown
Unexpected HTML paste when copying code from Gitea
未關閉
- 主要語言
- 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.
---
```
{
--
}
```
貢獻指南
研究方向
透過複製連結的 Gitea 原始檔案中的程式碼,並將其貼到 GitHub 留言框中來重現問題。先追蹤 repository 的剪貼簿與貼上處理進入點;當貼上的結果只包含純文字程式碼,而不是損壞的 HTML 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 42/100