From a4e13d615df60378148b3431c0c434576a4121ad Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Wed, 5 Feb 2014 14:45:38 +0600 Subject: [PATCH] Added Readme about pandoc.path option --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 8d78e60..23c5788 100644 --- a/README.md +++ b/README.md @@ -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`. + +```js +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