blob: 98345436868486a061e98873c39d75e38c466fce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
for dir in $(ls .md)
do
for file in $(find .md/$dir)
do
if [[ "$file" == *.md ]]
then
newfile=$(sed "s/\.md\///; s/md/html/" <<< $file)
echo "Saved "$file" to "$newfile
pandoc --ascii -f markdown-smart $file -t html -o $newfile
fi
done
done
|