Permalink
Browse files

Added pdc.path to change path to pandoc runner

  • Loading branch information...
1 parent 349f7d7 commit d6ffcce66e758f51aa415d90dab1ca13898017d6 @alekseykulikov alekseykulikov committed Feb 5, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 pandoc.js
View
@@ -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';

0 comments on commit d6ffcce

Please sign in to comment.