mirror of
https://github.com/codexu/note-gen.git
synced 2026-04-25 21:05:55 +03:00
[GH-ISSUE #122] [feat] 本地图片支持 #86
Labels
No labels
bug
duplicate
feature
platform: Android
platform: Linux
platform: Windows
platform: iOS
platform: macOS
priority: high
priority: low
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/note-gen#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roukaixin on GitHub (Apr 12, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/122
描述你的建议
看了一下,好像不支持本地图片
@codexu commented on GitHub (Apr 14, 2025):
之前是会转换成 base64 存在 md 文件中,由于开发同步图床功能,导致这项功能无法正常使用。
但是 base64 这种方式会导致 md 文件过大,加载速度减慢,所以改为本地文件链接的方式。
@roukaixin commented on GitHub (Apr 14, 2025):
可以做成类似 typora 的本地图片,引入路径就可以显示,这样就不用依赖图床
@codexu commented on GitHub (Apr 14, 2025):
Tauri 对本地资源的机制需要使用 convertFileSrc 去转换,只有这样的路径才可以正常显示图片:
所以直接引入本地相对路径的方式暂时无法实现,现在可以使用图拽或者使用上传图片工具。
@roukaixin commented on GitHub (Apr 14, 2025):
好的
@codexu commented on GitHub (Apr 14, 2025):
请更新至 v0.12.4 解决此问题。