Skip to content

Conversation

@dpvc
Copy link
Member

@dpvc dpvc commented Dec 31, 2025

In Windows, importing a file from an absolute path requires the path to include the file:// protocol (that is not needed in unix and MacOS). This PR modifies the context.path() function that adjusts the Windows \ to / to also add the needed file:// protocol for absolute references. It also adds tests to get full coverage of the changes. Finally, it adjusts the asyncLoad/system.ts file to include file:// (though the system.ts file is a legacy one that isn't really used any longer since node handles ESM loading natively).

Resolves issue mathjax/MathJax#3481.

@dpvc dpvc requested a review from zorkow December 31, 2025 18:12
@dpvc dpvc added this to the v4.1.1 milestone Dec 31, 2025
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

Successfully merging this pull request may close these issues.

2 participants