Skip to content

Commit

Permalink
Prepare v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ksw2000 committed Jan 25, 2024
1 parent 0ae1836 commit 3b3e93d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -32,7 +32,7 @@ Options:
-o, --output <files...> the path of output file (ignored if the flag -d is set) (default: "")
-l, --layout <html_file> 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
```
Expand Down
2 changes: 1 addition & 1 deletion lib/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commander.program
.addOption(new commander.Option('-o, --output <files...>', 'the path of output file (ignored if the flag -d is set)').default('', '""'))
.addOption(new commander.Option('-l, --layout <html_file>', '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()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 3b3e93d

Please sign in to comment.