Merge pull request #278 from KoharaKazuya/master

Fix incorrect name for pandoc path option
This commit is contained in:
Glavin Wiechert 2015-04-19 20:49:31 -03:00
commit 65c1d1fa0b
1 changed files with 5 additions and 5 deletions

View File

@ -7,15 +7,15 @@ allowUnsafeNewFunction = null
getCmd = (inputPath, outputPath, options, cb) ->
optionsStr = " --read markdown --write markdown --output \"" + outputPath + "\" \"" + inputPath + "\""
pandocPath = options.markdown_beautifier_path # jshint ignore: line
pandocPath = options.pandoc_path # jshint ignore: line
yamlFrontMatter = options.yaml_front_matter # jshint ignore: line
cmd = ""
if pandocPath?
# Use absolute path
cmd = pandocPath + optionsStr
else
if not pandocPath
# Use command available in $PATH
cmd = "pandoc" + optionsStr
else
# Use absolute path
cmd = pandocPath + optionsStr
if yamlFrontMatter?
# console.log("YAML Front Matter!")