Skip to content

Instantly share code, notes, and snippets.

@j2doll
Forked from bzerangue/html2md-with-pandoc.sh
Created June 25, 2018 13:07
Show Gist options
  • Save j2doll/3819bfd2b94ea505a546115badb6a799 to your computer and use it in GitHub Desktop.
Save j2doll/3819bfd2b94ea505a546115badb6a799 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