Closed qigtang closed 3 years ago
should be fixed in 0.11.2
Great job! I tested with the case above, and confirm it is fixed.
Noticed one minor issue/difference:
In preference, I already set "copy to local", but in typora, when I copy image, the new version will give me 3 options to choose.
Which means either move mouse to pick one option, or "down" key, press "enter". which will grab some attention from user, and have a minor impact on workflow.
Suggestion:
[x] Searched existing issues to avoid creating duplicates.
[x] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
[ ] Searched http://support.typora.io/
Describe the bug In the preference setting, if I select "copy image to ./${filename}.assets", select online image and then copy most of time will work, but find some scenarios it cannot work. Please see reproduce step.
To Reproduce Steps to reproduce the behavior:
https://mmbiz.qpic.cn/mmbiz_png/xBVu2dcQn9xfI3GrojZdk5II3mQTnq87GHyQ7ejYkvZhSkibDEWVsGShMIUOKYiafcZsahWn2bM72FY3YebS6Gaw/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1
Expected behavior Should be able to copy it.
Screenshots / Screencasts![image](https://user-images.githubusercontent.com/7813095/126369581-79bca0b8-8f64-4580-aa7f-617233e74f5e.png)
Sample Markdown File not applicable.
Desktop (please complete the following information): windows 10 64bit
Typora Version e.g: 0.11.0
Additional context Another suggestion regarding image naming. sorry I forgot the website that causing the trouble. If in a website, several images have the same basename, but different path, typora will copy it using the same basename, that means new copied image will overwrite old images, even if they are different images in original website. Suggestion: when copying images from website, maybe it is better to use sha1 hash of the contents of images as local file name, instead of original file name.