Skip to content

Commit

Permalink
Added Readme about pandoc.path option
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseykulikov committed Feb 5, 2014
1 parent d6ffcce commit a4e13d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit a4e13d6

Please sign in to comment.