node-pandoc icon indicating copy to clipboard operation
node-pandoc copied to clipboard

Cannot pass in an array of src files

Open Burnett2k opened this issue 8 years ago • 3 comments

Hi,

I'm currently running pandoc manually through command line to create a pdf from a multitude of .md files. To automate the process, I was hoping I could use this tool. Unfortunately, it appears that only single files are allowed??? This is odd because pandoc handles it seamlessly.

If I am missing something and there is a way to pass in many markdown files as source please let me know.

Thanks!

Burnett2k avatar Apr 13 '17 22:04 Burnett2k

Awesome. Thank you for the comment/issue. It should be able to. I'll test it out and see what's happening. Can you give an example?

eshinn avatar Apr 18 '17 14:04 eshinn

@Burnett2k - Think I found the issue. Gives the error that the source needs to be a String and if you use spaces it takes it as a literal and makes a PDF of your source file names. I'm going to keep this issue open so that I can fix it.

In the meantime, if you're not opposed to using GruntJS then you could use this: https://www.npmjs.com/package/grunt-node-pandoc#custom-options

eshinn avatar Apr 18 '17 15:04 eshinn

Hey, thanks for looking into this. To replicate, you simply pass in a space delimited string of markdown files. FOr instanct 'test1.md test2.md'. In pandoc you can give it multiple input files easily like that. Actually, I've since quite using node pandoc and started using another npm package that allows me to just run command line commands the way I want. If you get this fixed, I can switch back. Thanks for the response!

Burnett2k avatar Apr 18 '17 16:04 Burnett2k