Skip to content

Cannot edit name of link with markdown syntax in the description #8902

Description

@hooger

This issue is created based on nextcloud/deck#8189 where people said it is a text app issue. So here is the description (copied from the original issue):

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions