Closed dashed closed 10 years ago
What version of pandoc are you using? Operating system?
Alternatively, this could be a flaw in the way I'm using child_process
.
pandoc 1.12.3.1 and OSX (obviously :wink: ) 10.9.1.
I edited the following args function in pandoc-command.coffee:
args = (from) ->
_.flatten(["-f #{language from} -t html5", atom.config.get('pandoc.args')])
.join(' ').split(' ')
PR'd in #8
Whitespace in elements of args for child_process.spawn doesn't really play nicely.
Also forgot to mention that I'm using Atom v0.71.0.
I tried the following:
args = (from) ->
#_.flatten(["-f #{language from} -t html5", atom.config.get('pandoc.args')])
pandoc_args = "-f #{language from} -t html5" + ' ' + atom.config.get('pandoc.args')
pandoc_args = pandoc_args.split(' -')
_.each(pandoc_args, (elem, index, array)->
array[index] = '-' + elem if index > 0
)
console.log(pandoc_args)
return pandoc_args
But I get the following error:
Previewing Failed
pandoc: Unknown reader: markdown
As for the error pandoc: Unknown reader: markdown
, pandoc was interpreting the following as an invalid ' markdown'
reader, instead of 'markdown'
. (there is a whitespace in the beginning via -f markdown
).
I resolved this in latest PR update in #8.
I can confirm this problem on OS X 10.9.2 with atom 0.8.*
I'm receiving the following error: