Created
February 14, 2018 04:13
-
-
Save yjzhang/7c509d3d4dc0978061156f1635f79347 to your computer and use it in GitHub Desktop.
uses pandoc to convert a bunch of files to html
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
#!/bin/bash | |
for var in "$@"; do | |
filename=${var%.*} | |
#echo $filename | |
#echo $@ | |
echo "writing to $filename.html" | |
pandoc $var --self-contained --toc -c /home/yjzhang/Dropbox/Notes/buttondown.css -s --mathml -o $filename.html | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment