Open dominic-simplan opened 2 years ago
There was a breaking change in version 2 that we forgot to document.
To pass extra options the command should be:
showdown makehtml -i foo.md -o bar.html -c strikethrough
to pass multiple options:
showdown makehtml -i foo.md -o bar.html -c strikethrough -c emoji
I've updated the wiki to reflect this.
Sorry about the mess up
released version 2.1.0 which documents the breaking change.
It seems that I cannot pass extra options when using showdown 2.0.3 as a CLI tool:
Installed showdown globally:
npm install showdown -g
Run example command from wiki (https://github.com/showdownjs/showdown/wiki/CLI-tool#extra-options):
showdown makehtml -i foo.md -o bar.html --strikethrough
Result:
error: unknown option '--strikethrough'
Seems to work correctly with 1.9.1.