Skip to content

Instantly share code, notes, and snippets.

@meng-hui
Created April 10, 2014 01:36
Show Gist options
  • Save meng-hui/10335928 to your computer and use it in GitHub Desktop.
Save meng-hui/10335928 to your computer and use it in GitHub Desktop.
Convert doc file to markdown
brew install haskell-platform
# add cabal to PATH
export PATH=$HOME/.cabal/bin:$PATH
# or check if you already have it
echo $PATH
# install pandoc
cabal update
cabal install pandoc
# convert doc to html then to markdown
textutil -convert html file.doc -stdout | pandoc -f html -t markdown -o file.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment