-
Notifications
You must be signed in to change notification settings - Fork 42
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
patch needed to run under Windows #5
Comments
Hi, |
Did you manage to run it under windows @simonpa71 ? |
If it helps anyone, I have just forked to use docker (so that we can use it on windows as well) mediawiki-to-markdown |
Could not get docker working so I did the following quick hack for windows 10. In file \mediawiki-to-gfm\vendor\ryakad\pandoc-php\src\Pandoc\Pandoc.php I changed:
To
|
Nice job, took me a few tries to get it working under Windows 7.
The Pandoc PHP wrapper , Copyright (c) Ryan Kadwell ryan@riaka.ca, appears to be written with *nix in mind, and fails under Windows.
Specifically, is searches for the path to pandoc using "which" and "is_executable" that, in my case, failed gracefully, so I could discover where to comment out the code running the checks.
Also, the instructions say to run "php composer.phar install" that results in an error. The solution, as per stack-exchange question, is to run "composer install", if the PATH is set correctly and loaded.
Can I suggest a simple comment in the instructions to say "tested under (whatever), may need some googling and light hacking to work under Windows", while somebody comes up with a better fix for the wrapper.
The text was updated successfully, but these errors were encountered: