Merge pull request #278 from KoharaKazuya/master
Fix incorrect name for pandoc path option
This commit is contained in:
commit
65c1d1fa0b
|
@ -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!")
|
||||
|
|
Loading…
Reference in New Issue