You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
662 B
Bash

#!/bin/bash
for file in $(find md/ -name '*.md')
do
#I should really get some way to create individual page titles
echo ./"${file//'md'/'html'}"
#Explanation of next line
#pandoc renders
# -s #gives a standalone html file
# --metadata pagetitle="EconStuff" #
# -f markdown
# -t html5 --mathjax
# $file
# -o ./"${file//'md'/'html'}"
pandoc $file -s --metadata pagetitle="kgjk.icu" -f markdown -t html5 --katex -o ./"${file//'md'/'html'}"
# pandoc -s --metadata pagetitle="EconStuff" -f markdown -t html5 $file -o ./"${file//'md'/'html'}" --mathjax="/node_modules/mathjax/es5/tex-chtml.js?config=TeX-AMS-MML_HTMLorMML"
done