Browse files

Added Readme about pandoc.path option

  • Loading branch information...
1 parent d6ffcce commit a4e13d615df60378148b3431c0c434576a4121ad @alekseykulikov alekseykulikov committed Feb 5, 2014
Showing with 11 additions and 0 deletions.
  1. +11 −0
@@ -48,6 +48,17 @@ pandoc(src, from, to[, options], callback);
arguments `(err, result)`, where `err` is an error or `null` and `result` is
a string containing the converted text.
+By default, it uses pandoc command installed to your system.
+To use custom runner change `pandoc.path`.
+var join = require('path').join;
+var pandoc = require('pdc');
+pandoc.path = join(process.env.HOME, '.cabal/bin/pandoc');
+pandoc('# Heading', 'markdown', 'html');
## Bugs and Issues
If you encounter any bugs or issues, feel free to open an issue at

0 comments on commit a4e13d6

Please sign in to comment.