🤦♀️
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
| # | |
| # use pandoc to compile all the md file in the current folder | |
| # need a pandoc.css file | |
| # | |
| for file in $(ls *.md) | |
| do | |
| prefix=$(echo $file|sed "s/\.md//g") | |
| if [[ ! -f $prefix.html ]]; then | |
| pandoc --wrap=auto --mathjax --mathml -c pandoc.css -s --toc --toc-depth=2 $prefix.md -o $prefix.html | |
| echo "first time compile $prefix" |