-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Images with "international" filenames are not extracted on Markdown import #2334
Comments
I'm not sure this is actually a bug because the URL should be url-encoded and I don't think it is in your example. If you write it as @BartBucknill, what do you think about it? |
Reading the CommonMark specification (if that is what Joplin is adhering to), it says images have the same syntax as links, and for links it says:
Personally I don't find it completely clarifies the situation, but it doesn't explicitly require url encoding at least. 🙃 |
@laurent22 @henrikje Made a fix #2346 |
Oh dear, looks like the fix works on mac but not linux, so the pipeline isn't passing https://travis-ci.org/laurent22/joplin/jobs/640608501?utm_medium=notification&utm_source=github_status Won't be able to look into this right now, it'll have to wait a bit longer. |
@laurent22 Based on reading a few Q/A on stackoveflow (such as this one), I think it's possible that the test I added when making a fix for this issue is failing in the linux pipeline because of an encoding applied to the filename when it was saved on my macOS machine. In other words, had the file been saved on linux, it might be fine - although I haven't had time to validate this on a linux machine. |
Yes that's reasonable, it's often hard to get filenames to work well cross-platform, so we could disable the test for Linux for instance. What I'm more concerned about is that |
I just tried the new import-images-in-markdown feature (#2262) and it mostly worked as I hoped! (Thanks!) However, while some images were imported and their targets were replaced, other image tags were left unprocessed. Those were links with (in my case) Swedish characters such as
å
,ä
andö
.Example of a link that was successfully imported:
Example of a link that was NOT imported:
Environment
Joplin version: 1.0.178
Platform: macOS
OS specifcs: 10.14.6
The text was updated successfully, but these errors were encountered: