17
submitted 3 months ago* (last edited 2 months ago) by dudesss@piefed.ca to c/fediverse@piefed.social

How do I copy and paste text that has hyperlinks, and for Lemmy, Piefed, etc, to automatically acknowledge them as hyperlinks.

For example. I'd like to copy and paste text from Reddit to here, but when I copy and paste text that has hyperlinks, only the display text is included and not the hyperlink within.

For example, hyperlinks like from this post: <https://www.reddit.com/r/FreeGameFindings/comments/1pk1xym/epic_games_mobile_game_dead_cells/ >

all 6 comments
sorted by: hot top controversial new old
[-] rimu@piefed.social 8 points 3 months ago

That's a good idea for a feature. I've added it to the pile - https://codeberg.org/rimu/pyfedi/issues/1506

[-] otter@lemmy.ca 8 points 3 months ago

If you can load the raw markdown, then you can copy and paste with the markdown link formatting.

I think the Reddit Enhancement Suite added a button to posts that would let you display the source. I can't check that right now.

For Lemmy, open a post on the website and look for the paper icon. That will let you view the source

[-] Auster@thebrainbin.org 2 points 3 months ago

If I got what you mean, then when formatting is pasted weird and I don't want the formatting, I try pasting into a text editor with no markdown enabled, such as Notepad++ and Sublime Text in a fresh install, then copy the pasted text if it came good.

[-] dudesss@piefed.ca 1 points 3 months ago

That is not working either. And it doesn't seem to be so much of a piefied problem. It seems to not paste the hyperlink with the display name anywhere except if I use Libreoffice.

[-] sin_free_for_00_days@sopuli.xyz 1 points 3 months ago* (last edited 3 months ago)

Seems like this would have an easy answer, but I'm not finding it either.

EDIT: Not sure if anyone cares, but here is how I went about making a solution.

  1. Highlight what I want to copy, right click, select View Selection Source
  2. Highlight the resultant HTML.
  3. Now I can copy with a simple middle click for the HTML, or hit F5 (A randomly chosen hotkey) to trigger a one liner (xclip -o | html2markdown | xclip -i) and now the clipboard is in markdown, so I can just do a middle click to paste the markdown.

It's a little clunky, but seems to work for me.

this post was submitted on 14 Dec 2025
17 points (100.0% liked)

Fediverse

1513 readers
3 users here now

Downvote are limited to members of this community

Welcome!

Can you imagine, years ago how the internet was before? We know Facebook, Twitter, Tiktok, Youtube. We knew blogger, Tumblr, Skyrock... and long before, it was the forum era as phpBB..and mail-lists.

And now with ActivityPub, we are reshaping the web, and achieving much more with lots of freedom. So thank you all, and welcome ๐ŸคŸ๐Ÿ˜

Our threads

Wiki

Resources

Related communities

If you want to donate, double check on the official website and report any problem to mod team

Social network

Threadiverse

FediBlog

Microblog

Event

Mediaverse

Audio

Streaming/live

Book

Culture review

Picture

Podcast

Short-video

Video

FediMarket


Image Credits :
Avatar : Wikipedia Eukombos
Banner : David Revoy licence : CC-BY-4.0

Rules

Moderation process
We all make mistakes,

If your comment is reported, and brings up a complex issue, we will reach out to you and ask you to rephrase it.

Our goal, is to create a serene space for discussion. Nothing more.

If the post isn't edited to remove hurtful language element, we will have to remove it. It would be a shame because your comment was interesting and you took some time to write it.

In case of xenophobia, racism, transphobia, homophobia or harassment, it will be a permanent ban.

founded 11 months ago
MODERATORS