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

能否指定输出到一个文件夹中?或者在指定的文件夹中再创建文件夹? #14

Open
ykla opened this issue Apr 23, 2024 · 4 comments

Comments

@ykla
Copy link

ykla commented Apr 23, 2024

请问能否指定输出到一个文件夹中?比如 .gitbook\assets并使用相对地址。

另外我很多图片使用的都是一个地址,能否自动判断并记录以防止重复下载?

我的项目位于 https://github.com/taophilosophy/SEP-CN/

非常感谢.

@YellowAndGreen
Copy link
Owner

后续会添加指定输出到一个文件夹的功能。

@YellowAndGreen
Copy link
Owner

很多图片使用的都是一个地址,能否自动判断并记录以防止重复下载?

这个问题在对于在单个文件夹下的所有markdown文件中已经解决,
但是其他不同位置markdown文件的重复地址图片问题确实存在,我还没有想到比较好的解决方法。

@YellowAndGreen YellowAndGreen pinned this issue Apr 28, 2024
@ykla
Copy link
Author

ykla commented May 7, 2024

可以考虑把所有获取到的链接临时缓存在一个配置文件中。每次调用时进行对比。这样就不会重复了。

@YellowAndGreen
Copy link
Owner

可以考虑把所有获取到的链接临时缓存在一个配置文件中。每次调用时进行对比。这样就不会重复了。

现在的做法也是缓存在配置文件all_img_dict.json中,但这个项目本身是针对单个文件进行图片替换的,还没有考虑到不同文件的图片管理。

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