- Install LibreOffice.
- Make sure Ruby 2.4+ is installed (
ruby -v
). If not do the following (on Mac OS X): 2.1. Download ruby:\curl -sSL https://get.rvm.io | bash -s stable
2.2. See the list of ruby versions and note the latest one (must be 2.4+):rvm list known
2.3. To install the latest version:rvm install ruby-2.4.1
2.4. Check ruby version is the latest one:ruby -v
2.4. To set this as the default version, run:rvm use ruby-2.4.1 --default
- Install Word-to-Markdown:
gem install word-to-markdown
- Drop the directory
scripts
along with the file.gitignore
and the shortcut filewatchdog.sh
into your working directory. - Make sure
python
is installed on your system.
- Open a Terminal window,
cd
to your working directory and run./watchdog.sh
. - Now everytime you modify and save a docx file, a corresponding md file will be generated.
- Press
Ctrl+C
to terminatewatchdog.sh
when you're done changing the docx file.
Note: This works on docx files placed only right inside your working directory. It won't detect changes in files that are residing under subdirectories inside your working directory.
- Word to Markdown Converter by benbalter
- when-changed by joh