mwilliamson / mammoth.js

Convert Word documents (.docx files) to HTML
BSD 2-Clause "Simplified" License
5k stars 545 forks source link

CLI options #194

Open clemlatz opened 5 years ago

clemlatz commented 5 years ago

Hi,

Is there a way to pass options to the CLI other than style-map and output-format (eg. with arguments or a config file)? I need to set the ignoreEmptyParagraphs to false.

I tried mammoth --ignoreEmptyParagraphs false file1 file2 but got "mammoth: error: Unrecognized arguments: --ignoreEmptyParagraphs".

Currently my solution is to wrap the mammoth API in my own CLI, but I'd rather use the original CLI.

Thanks

mwilliamson commented 5 years ago

Not at the moment, no.