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

Feature: Paste-to-link #83

Open
NfNitLoop opened this issue Apr 26, 2022 · 0 comments
Open

Feature: Paste-to-link #83

NfNitLoop opened this issue Apr 26, 2022 · 0 comments
Labels
client Affects the JS-based client enhancement New feature or request good first issue Good for newcomers

Comments

@NfNitLoop
Copy link
Owner

A lot of systems nowadays allow you to "paste over" some text with a link to hyperlink it.

Would be handy if the markdown editor for posts/comments would let you do that.

Ex: given this text:

This is cool!

If the user selects the word This and pastes https://www.google.com/, then the Editor would end up with:

[This] is cool!

[This]: https://www.google.com/

Possible implementation details:

  • If the selection is quite long (say, over 10 characters?) prefer to use a [numbered link like this][1].
  • If there is already a link, re-use that one instead of creating a new one.
  • Need to make sure we don't generate link refs with the same name.

I wrote some code that sort of creates link refs when you add an attachment. Not sure how much of that can be re-used, but should check.

@NfNitLoop NfNitLoop added enhancement New feature or request good first issue Good for newcomers client Affects the JS-based client labels Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Affects the JS-based client enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant