Skip to content

Instantly share code, notes, and snippets.

@dylan-k
Forked from bzerangue/html2md-with-pandoc.sh
Created February 12, 2014 04:20
Show Gist options
  • Save dylan-k/8950008 to your computer and use it in GitHub Desktop.
Save dylan-k/8950008 to your computer and use it in GitHub Desktop.
RECURSIVELY Bash convert all your html to markdown files (with Pandoc)
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done
# a simpler method
# e.g. convert all text files in the current directory into a single .html file
pandoc *.txt > _book2.html
#My 'palabra' project contains similar examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment