diff --git a/lib/langs/markdown-beautify.coffee b/lib/langs/markdown-beautify.coffee index 60c7675..14cd340 100644 --- a/lib/langs/markdown-beautify.coffee +++ b/lib/langs/markdown-beautify.coffee @@ -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!")