Skip to content

Instantly share code, notes, and snippets.

@jsonzilla
Forked from bzerangue/html2md-with-pandoc.sh
Created August 27, 2019 15:01
Show Gist options
  • Save jsonzilla/4860d0224678b938706469b72c3990aa to your computer and use it in GitHub Desktop.
Save jsonzilla/4860d0224678b938706469b72c3990aa 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment