Created
April 10, 2014 01:36
-
-
Save meng-hui/10335928 to your computer and use it in GitHub Desktop.
Convert doc file to markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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