- 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 stable2.2. See the list of ruby versions and note the latest one (must be 2.4+):rvm list known2.3. To install the latest version:rvm install ruby-2.4.12.4. Check ruby version is the latest one:ruby -v2.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
scriptsalong with the file.gitignoreand the shortcut filewatchdog.shinto your working directory. - Make sure
pythonis installed on your system.
- Open a Terminal window,
cdto 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+Cto terminatewatchdog.shwhen 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