Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting links in the description editor inserts a hyperlink template #1349

Open
kikugie opened this issue Jun 22, 2024 · 3 comments · May be fixed by #2455
Open

Pasting links in the description editor inserts a hyperlink template #1349

kikugie opened this issue Jun 22, 2024 · 3 comments · May be fixed by #2455
Labels
bug Something isn't working web Relates to Modrinth.com web frontend

Comments

@kikugie
Copy link

kikugie commented Jun 22, 2024

Describe the bug

When pasting links in the markdown editor, it surrounds them with the markdown hyperlink syntax. If the user has intends to have a plain link, the formatting is unnecessary, since it will be shown as a link without it anyway. However it is even more frustrating when writing own hyperlinks.

Based on the example below, I would usually write something like: This mod depends on [Lithium]( <Ctrl+V> and get This mod depends on [Lithium]([https://modrinth.com/mod/lithium](https://modrinth.com/mod/lithium), which would then require additional effort to fix. Even if I don't cause this next time and paste the link first, it's still inconvenient to select and replace the text in the square brackets.

No other editor does this, so I suggest reverting this behavior.

Steps to reproduce

  1. Create a draft project.
  2. Open the description editor.
  3. Copy https://modrinth.com/mod/lithium (or any other link).
  4. Paste it in the editor.
  5. [https://modrinth.com/mod/lithium](https://modrinth.com/mod/lithium) appears.

Expected behavior

https://modrinth.com/mod/lithium should be pasted in as plain text.

Additional context

If the hyperlink template is absolutely essential or my points are not convincing, this still should be fixed for "Paste Without Formatting" option (Ctrl+Shift+V), which currently has the same effect.

@kikugie kikugie added the bug Something isn't working label Jun 22, 2024
@blryface
Copy link

I think that's intended, but it's really annoying

@blryface
Copy link

The CTRL + SHIFT + v option sounds fine yeah

@Prospector
Copy link
Member

it's not intended, no idea why this happens

@Prospector Prospector transferred this issue from modrinth/knossos Aug 3, 2024
@Prospector Prospector added the web Relates to Modrinth.com web frontend label Aug 3, 2024
AarhamH pushed a commit to AarhamH/theseus that referenced this issue Aug 3, 2024
@sammyshear sammyshear linked a pull request Sep 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web Relates to Modrinth.com web frontend
Development

Successfully merging a pull request may close this issue.

3 participants