Unexpected HTML paste when copying code from Gitea
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Reproduce the issue by copying the code from the linked Gitea source file and pasting it into a GitHub comment box. Start by tracing the repository's clipboard and paste handling entry point; done means the pasted result contains only the plaintext code rather than mangled HTML.
Written by the indexing model from the issue text.
Description
Originally reported in https://github.com/go-gitea/gitea/issues/22622. To reproduce:
- Open this source file, 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.
{
--
<code class="code-inner"><span class="p">}</span>
</code>
- Dominant language
- JavaScript
- Stars
- 234
- Forks
- 47
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/paste-markdown
-
Pasting a link whose text/html label is a shortened form of its URL plants a `[` inside the URL Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
github/paste-markdown#118 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/paste-markdown#107 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
github/paste-markdown#104 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
github/paste-markdown#100 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
github/paste-markdown#96 · 1 comment ·
All issues in github/paste-markdown
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100