docs: added section about cli extra options

This commit is contained in:
Antonio 2022-04-09 13:39:50 +03:00
parent f3d73f5b54
commit c4eef0b8c1

View File

@ -150,4 +150,22 @@ showdown makehtml [options]
```sh
showdown makehtml -e ~/twitter.js -e ~/youtube.js
```
```
## Extra options
You can specify any of the [supported options](available-options.md), and they will be passed to the converter.
For example, you can enable strikethrough support via the following command:
```
showdown makehtml -i foo.md -o bar.html --strikethrough
```
this command is equivalent of doing:
```js
var conv = new showdown.Converter({strikethrough: true});
```
!!! warning ""
In the CLI tool, all the extra options are **disabled** by default. This is the opposite of what is defined for node and browser, where some options, like `ghCodeBlocks` are enabled (for backward compatibility and historical reasons).