Created
December 10, 2019 19:32
-
-
Save z3by/345cec303e8dc8a041c945927c57d747 to your computer and use it in GitHub Desktop.
Linux And MacOS script for converting docx files to markdown.
This file contains hidden or 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
#!/bin/bash | |
for i in *.docx; | |
do | |
filename=$(echo "$i" | cut -f 1 -d '.') | |
pandoc -f docx -t markdown_mmd "$filename".docx --output="$filename".md --atx-headers --wrap=none --toc --extract-media="." | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment