-
Notifications
You must be signed in to change notification settings - Fork 149
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
Path separator on Windows is using backslashes #211
Comments
There might be an easy fix for this: replace this line: Line 22 in d0d9e82
with an import to I don't have a windows VM available, so a fix from my end might take a while, but I'm happy to review PRs. |
-| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
-| :------------------ | ---------- | -------------- | ----------------------- | :---------------- | --------------------- | ------------------- | ------------------------------------------------------------------ |
-| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add.json\*](operators/arithmetic/add.json "open original schema") |
+| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In
|
+| :------------------ | ---------- | -------------- | ----------------------- | :---------------- | --------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add.json\*](../C:\eplatform\git-repos\json-logic-js/C:\eplatform\git-repos\json-logic-js\schemas\operators\arithmetic\add.json "open original schema") | |
A working solution would be to replace the os specific separator ( const target = npath.relative(
mddir,
npath.resolve(schemadir, npath.relative(srcdir, origin)),
).split(npath.sep).join(npath.posix.sep); Not sure though if this covers all use cases. |
Generating markdown on Windows uses the OS path seperator, backslash, not a valid URL path seperator fix adobe#211
Generating markdown on Windows uses the OS path seperator, backslash, not a valid URL path seperator fix adobe#211
## [4.0.12](v4.0.11...v4.0.12) (2020-01-30) ### Bug Fixes * dont use backslash for URLs on windows ([5149522](5149522)), closes [#211](#211)
🎉 This issue has been resolved in version 4.0.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What did you do
Generate schemas on Windows (previously on Unix/Linux)
What did you expect to happen
No changes in URL slashes (preserve regular forward slashes)
What happened
Forward slashes were replaced by backslashes
What's your environment
Do you have example files:
For this schema
I'm getting following Markdown (git diff)
The text was updated successfully, but these errors were encountered: