Skip to content

All: Fixes #12362: Fixes resources linked with Windows path not being imported #12386

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

Merged

Conversation

pedr
Copy link
Collaborator

@pedr pedr commented Jun 4, 2025

Fixes #12362

Summary

When testing the chinese evernote (yinxiang) we discovered that some images were not being imported. The problem is that these particular images are using a Windows path link Note name\path_to_image.png which is not something the MD/HTML importer seems to handle at the moment.

I created a new function in utils to converter the Windows path to POSIX and created some tests for it and for the scenario that surfaced this bug.

@pedr pedr added bug It's a bug import Related to importing files such as ENEX, JEX, etc. labels Jun 4, 2025
@@ -73,4 +73,5 @@ describe('path', () => {
])('should correctly detect UNC paths', (path, os, expected) => {
expect(isUncPath(path, os)).toBe(expected);
});

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove white space change

@laurent22 laurent22 merged commit 5b42f4f into laurent22:dev Jun 7, 2025
12 checks passed
@pedr pedr deleted the fix-import-not-understanding-windows-path branch June 9, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug import Related to importing files such as ENEX, JEX, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some images not being imported during the HTML import
3 participants