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

Fix fallback of File#absoluteFileScheme for old Node #136

Merged
merged 3 commits into from
Aug 20, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 20, 2019

I'm trying to resolve #133.

url.pathToFileURL cannot use in Node < v10.12.0 so file scheme URI would be resolved manually. A problem is that its logic is using path.posix.resolve(). It would be returned incorrect path in Windows.

We've fixed it by using file-url module. Marp for VS Code's built-in Node is v10.11.0 so it may resolve an edge case like reported in marp-team/marp-vscode#64.

@yhatt yhatt added the bug Something isn't working label Aug 20, 2019
@yhatt yhatt merged commit 81ba8c0 into master Aug 20, 2019
@yhatt yhatt deleted the fix-absolute-path-fallback branch August 20, 2019 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--allow-local-files may not be accepted local files depending on the environment
1 participant