-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
--syntax-definition doesn't work with absolute paths in Windows #6374
Comments
See #4836, which I thought could be fixed by turning this into a |
Thanks for the quick reply. I switched my scripts to use relative paths under Windows, to make them work. |
Fixing in HXT would be best, if the maintainer is responsive (I never got any reply to my bug report). I'm not sure how to fix in pandoc, but maybe there's something I haven't thought of. |
Tested with Pandoc 2.14.2, file protocol is prepended by pandoc, but error is still thrown: jgm/skylighting@16e3001 doesn't seem to have resolved the issue. |
Since all of this, we've switched from HXT to xml-conduit in skylighting. |
This was a fix for a problem in skylighting, but this problem doesn't exist now that we've moved from HXT to xml-conduit. Cf. #6374.
Done in 5a1bd52 |
This may be me being obtuse, but I'm assuming you're referring to master branch. Tried cloning and building it but I'm not having any luck ( Relative paths work for me. |
Try a (precompiled) nightly, you don't need to build it yourself. |
Ah, missed that, thanks. That build does appear to resolve the issue. I was able to process a markdown document to html with an absolutely pathed syntax definition. 👍 |
I can confirm that this fixes the issue. |
System info
If I use the absolute path for
--syntax-definition
it will fail with the following message.Relative paths work fine.
To recreate this problem
test.md
pandoc --syntax-definition C:\path\to\cpp.xml test.md
The text was updated successfully, but these errors were encountered: