Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added pdc.path to change path to pandoc runner

  • Loading branch information...
commit d6ffcce66e758f51aa415d90dab1ca13898017d6 1 parent 349f7d7
@alekseykulikov authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 pandoc.js
View
5 pandoc.js
@@ -12,7 +12,7 @@ function pdc(src, from, to, opt, cb) {
if (typeof opt == 'object')
args = args.concat(opt);
- var pandoc = spawn('pandoc', args);
+ var pandoc = spawn(pdc.path, args);
var result = '';
var error = '';
@@ -39,3 +39,6 @@ function pdc(src, from, to, opt, cb) {
pandoc.stdin.end(src, 'utf8');
}
+
+// Path to pandoc runner in your system
+pdc.path = 'pandoc';
Please sign in to comment.
Something went wrong with that request. Please try again.