diff --git a/README.md b/README.md index f9036f3..49b5a50 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Not only is this a CLI tool, but it is also an importable package for converting + Example of input markdown: [./example/index.md](https://raw.githubusercontent.com/ksw2000/hackmd-to-html-cli/main/example/index.md) + Example of output html: [https://ksw2000.github.io/hackmd-to-html-cli/](https://ksw2000.github.io/hackmd-to-html-cli/) -+ Example of output html in dark mode: https://ksw2000.github.io/hackmd-to-cli/index.dark.html ++ Example of output html in dark mode: [https://ksw2000.github.io/hackmd-to-html-cli/index.dark.html](https://ksw2000.github.io/hackmd-to-html-cli/index.dark.html) ## Install @@ -32,7 +32,7 @@ Options: -o, --output the path of output file (ignored if the flag -d is set) (default: "") -l, --layout specify the layout file (default: "") -b, --hardBreak use hard break instead of soft break - -k, --dark use the dark mode layout (only activate it when the -l option is not set) + -k, --dark use the dark mode layout (activate only if the -l option is not set) -h, --help display help for command ``` diff --git a/lib/cli.ts b/lib/cli.ts index 956422f..5afd04f 100644 --- a/lib/cli.ts +++ b/lib/cli.ts @@ -17,7 +17,7 @@ commander.program .addOption(new commander.Option('-o, --output ', 'the path of output file (ignored if the flag -d is set)').default('', '""')) .addOption(new commander.Option('-l, --layout ', 'specify the layout file').default('', '""')) .addOption(new commander.Option('-b, --hardBreak', 'use hard break instead of soft break')) - .addOption(new commander.Option('-k, --dark', 'use the dark mode layout (only activate it when the -l option is not set)')) + .addOption(new commander.Option('-k, --dark', 'use the dark mode layout (activate only if the -l option is not set)')) .parse(process.argv) const options = commander.program.opts() diff --git a/package.json b/package.json index c84163a..9f37827 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hackmd-to-html-cli", - "version": "1.0.0", + "version": "1.1.0", "description": "A node.js CLI tool for converting HackMD markdown to HTML.", "keywords": [ "hackmd",