Skip to content

链接 open-graph 标题预览 #5592

Closed
Closed
@wizyoung

Description

@wizyoung

在什么情况下你需要该特性?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

Activity

88250

88250 commented on Aug 6, 2022

@88250
Member

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

wizyoung

wizyoung commented on Aug 8, 2022

@wizyoung
Author

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

88250

88250 commented on Aug 8, 2022

@88250
Member

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

wizyoung

wizyoung commented on Aug 8, 2022

@wizyoung
Author

好的, 感谢回复

wizyoung

wizyoung commented on Aug 9, 2022

@wizyoung
Author

前端开发能力有限, 暂时通过 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @88250@wizyoung

        Issue actions

          链接 open-graph 标题预览 · Issue #5592 · siyuan-note/siyuan