#!/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
