Pasting same title in html/markdown causes output to be nested
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with the linked CodePen reproduction and compare what happens when copying each example into a GitHub comment box. Trace the paste handling in the repository to identify why identical text/html and text/plain titles produce non-nested output; done means the reproduction returns the expected nested Markdown link.
Written by the indexing model from the issue text.
Description
This is an issue that was forwarded to me, but I'm able to reproduce.
If text/html and text/plain contain the same title, the output we return is nested.
Expected output: [[Same](https://google.com/)](https://google.com)"
Actual output: [Same](https://google.com)
Reproduction: https://codepen.io/tarngerine/pen/ZEZBEpy
Try pressing the Copy button on either of the examples and try pasting into any GitHub comment box.
- 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 52/100
github/paste-markdown#94 ·
All issues in github/paste-markdown
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
aemdemos/patients-stryker#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·