Add this line to your application's Gemfile:
gem 'markdown_to_scrapbox'
And then execute:
$ bundle
Or install it yourself as:
$ gem install markdown_to_scrapbox
$ bundle exec bin/markdown_to_scrapbox -i TARGET_MARKDOWN_FILE.md -o OUTPUT_FILE.txt
Indicate the target markdown file.
Indicate the output file name.
Indicate indent type from space
and tab
.
Default indent type is space
.
$ bundle exec bin/markdown_to_scrapbox -i TARGET_MARKDOWN_FILE.md -o OUTPUT_FILE.txt -t tab
Indicate the number of indent from 2
and 4
.
Default indent count is 2
.
$ bundle exec bin/markdown_to_scrapbox -i TARGET_MARKDOWN_FILE.md -o OUTPUT_FILE.txt -c 2
If you would like to improve this CLI app, please contact me on Twitter @a_ta_tama
The gem is available as open source under the terms of the MIT License.