memos icon indicating copy to clipboard operation
memos copied to clipboard

Link preview

Open gitkeniwo opened this issue 1 year ago • 8 comments

Is your feature request related to a problem?

Many social apps have link preview feature, e.g. twitter, mastodon. After entering a link in a tweet, Twitter will automatically grab a preview for the link and render it as a card.

Since memos essentially aims to provide a twitter-like posting experience, I think it'd be nice to have this feature considering the urls nowadays tend to be long and ugly and markdown []() does not entail picture previews, and it is convenient.

许多应用都有链接预览功能,例如Twitter、Mastodon。在推文中输入链接后,Twitter会自动抓取链接的预览,并将其呈现为卡片形式。

由于Memos本质上是模拟类似twitter的发布体验,考虑到现在的urls往往又长又丑,而且markdown的[]()很不显眼,所以有这个feature还是很有必要的。

Describe the solution you'd like

Try rendering the first URL in the post as a preview card. It could be problematic when you have several links and I havent thought about it yet. Maybe just rendering the first one is okay.

Additional context

No response

gitkeniwo avatar Apr 14 '23 14:04 gitkeniwo

I would like this feature too

makidoll avatar Aug 06 '23 02:08 makidoll

I would like this feature too

wodepig avatar Aug 08 '23 05:08 wodepig

Yeah, me too

rodhfr avatar Aug 14 '23 19:08 rodhfr

me too

HidemaruOwO avatar Sep 24 '23 00:09 HidemaruOwO

Would really love to see this feature implemented.

MRobi1 avatar Oct 21 '23 13:10 MRobi1

Yes, it would be great to have this feature

Forceu avatar Nov 19 '23 16:11 Forceu

Hello

I am working on something like this so let's hope it gets accepted.

Warning: Only available for Twitter.com (not X) and Youtube.com (with video and shorts)

image

MehadND avatar Jan 21 '24 01:01 MehadND

@boojack I made a new PR related to this please have a look at it #3043

MehadND avatar Mar 05 '24 12:03 MehadND