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/ >
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
That’s a good idea for a feature. I’ve added it to the pile - https://codeberg.org/rimu/pyfedi/issues/1506
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.
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.
deleted by creator
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.
- Highlight what I want to copy, right click, select
View Selection Source - Highlight the resultant HTML.
- 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.
- Highlight what I want to copy, right click, select





