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

链接 open-graph 标题预览 #5592

Closed
wizyoung opened this issue Aug 6, 2022 · 5 comments
Closed

链接 open-graph 标题预览 #5592

wizyoung opened this issue Aug 6, 2022 · 5 comments

Comments

@wizyoung
Copy link

wizyoung commented Aug 6, 2022

在什么情况下你需要该特性?In what scenarios do you need this feature?

粘贴链接的时候, 希望能实现 open-graph 协议的预览, 能快速知道链接的内容

描述可能的最优解决方案 Describe the optimal solution

类似 notion, craft, telegram 等 app 对链接的处理一样
对链接: https://softwareengineering.stackexchange.com/a/419847, 粘贴后自动显示如下

image

描述候选的解决方案 Describe the candidate solution

适用 open-graph 协议

其他信息 Other information

No response

@88250
Copy link
Member

88250 commented Aug 6, 2022

卡片式超链接暂时不考虑,感谢提议。

@88250 88250 closed this as completed Aug 6, 2022
@wizyoung
Copy link
Author

wizyoung commented Aug 8, 2022

能问下为什么不暂时考虑么, 我个人是觉得在记录一些技术性笔记添加大量参考链接的时候, 能解析这些链接对后面的二次审阅非常方便. open graph parser 我觉得第三方组件应该很多吧, 是否考虑添加下呢

@88250
Copy link
Member

88250 commented Aug 8, 2022

已有待完成任务太多了,因为没有开发资源所以无法考虑部分需求,如果社区有开发者能够贡献的话非常欢迎。

@wizyoung
Copy link
Author

wizyoung commented Aug 8, 2022

好的, 感谢回复

@wizyoung
Copy link
Author

wizyoung commented Aug 9, 2022

前端开发能力有限, 暂时通过 alfred workflow 实现了简单的 og:title 自动解析然后替换链接锚文本的功能. (用到的 node js 包是 https://npm.io/package/open-graph)

https://ld246.com/article/1655622875831/comment/1660052594386?r=wizyangchen#comments

看社区反馈呼声似乎挺高, 还是希望作者或者其他第三方开发者有空时能实现下完整的卡片式超链接.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants