Cannot edit name of link with markdown syntax in the description
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 43
Description
When I make a link using the markdown syntax, I cannot later edit it at the end. When the text turns into the link, I can only delete from the end, but adding adds "after the square bracket". If I go into editing it (which is possible by the pop up window and the edit button), I can only edit the URL the link points to. I'm not sure what would be the best way to handle it. Maybe moving within the link should have a different a cursor and so going to the end would require two presses of the cursor mover keys. That may be painful to implement, but I think a lot of system uses it. Maybe if I go into the link, the editor should change the text back to the markdown. However, this would make using the link hard as clicking on it would change it back. Also, the edit button may make it possible to change the name of the link as well, not just the URL.
A workaround I found was to add the text in the middle of the description and delete the end. Like what follows:
Original, misspelled link: [Example link with minor typ](example.com)
If I go to the end and hit Backspace it deletes the p.
If I go to the end and type o an the letter appears but not as part of the link.
If I go between the y and the p and type po and hit DEL, the link would look like expected.
Thanks for looking into it.
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.
Research direction
Start by reproducing markdown link editing in the card description editor, including typing and deleting at the link's end and using the edit popup. Done means the link text can be edited predictably without corrupting the link target or rendered description.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100