Skip to content

导出功能添加「是否将链接导出为脚注」 #11169

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

Closed
Achuan-2 opened this issue Apr 27, 2024 · 4 comments
Closed

导出功能添加「是否将链接导出为脚注」 #11169

Achuan-2 opened this issue Apr 27, 2024 · 4 comments

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented Apr 27, 2024

In what scenarios do you need this feature?

目前微信公众号的规则是普通订阅号无法使用外链,超链接只能引用微信文章。
所以希望思源能对微信公众号的导出进行改进

另外这个也可以不仅仅针对微信公众号,也可以用于其他不支持超链接的平台,此外也可以用于导出图片(因为图片无法看超链接的具体链接),增强思源笔记导出多平台的能力

Describe the optimal solution

不仅仅针对微信公众号,而是直接在「设置-导出」添加一个选项,是否将超链接导出为脚注,能作用到预览模式的复制和导出图片上。
这个方案不必检测链接是否来源于微信,对超链接进行统一处理。
注意事项

  • 需要考虑和块引导出的脚注兼容。
  • 如果超链接的链接和标题一样则不转化为脚注。

此外,如果链接能导出为脚注,就会多出一个用法,用链接来实现文献引用导出为脚注,链接的link不一定是超链接,而可以是引用的出处了。

Describe the candidate solution

仅适配微信平台

  1. 检测链接是否为 https://mp.weixin.qq.com 开头,如果不为则将超链接转换为脚注
  2. 超链接转换为脚注需要考虑是否有链接多次出现,即需要对脚注进行去重

下面是一个可以将Markdown转微信公众号文章的网站的效果:https://doocs.github.io/md/
Clip_2024-04-27_17-37-30

Clip_2024-04-27_17-18-39

Other information

No response

@Achuan-2 Achuan-2 changed the title 导出到微信公众号对链接进行优化 导出到微信公众号对链接进行额外处理 Apr 27, 2024
@Achuan-2 Achuan-2 changed the title 导出到微信公众号对链接进行额外处理 复制到微信公众号对链接进行额外处理 Apr 27, 2024
@Achuan-2 Achuan-2 changed the title 复制到微信公众号对链接进行额外处理 导出功能添加是否将链接导出为脚注 Apr 28, 2024
@Achuan-2 Achuan-2 changed the title 导出功能添加是否将链接导出为脚注 导出功能添加「是否将链接导出为脚注」 Apr 28, 2024
@wwxiaoqi
Copy link
Contributor

扩展:【备注】也已脚注的形式导出。

@Achuan-2
Copy link
Member Author

Achuan-2 commented Apr 28, 2024

扩展:【备注】也已脚注的形式导出。

老早就提过了,被否了:#6195
目前备注以上标导出不适合把内容直接分享出去,长文本样式丑。备注要是能以脚注导出,就一定程度上解决思源脚注功能缺失的问题了。
用块引实现脚注实在不方便,并没有备注支持脚注来得方便:1. 新建那么多脚注块引文档不切实际,就算不在乎文档树有这些文档,考虑到文档在搜索的优先级,这些文档也会影响到日常搜索体验 2. 如果用块级的引用,在文章最后放备注内容,然后块引到正文又太麻烦,只能靠插件实现,而且如果要导出还得把块引的原本内容移出正文。

@88250
Copy link
Member

88250 commented Sep 12, 2024

抱歉,不考虑添加了,如果需要的话,请在 Markdown 基础上自行再处理。

@88250 88250 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2024
@Achuan-2
Copy link
Member Author

Achuan-2 commented Nov 14, 2024

思源笔记要发微信公众号,链接可以变为markdown源码样式
写了一个脚本进行处理
https://ld246.com/article/1731553411638

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

3 participants