blob: 8df8a3f4cacbad3aceb9a85f9643fddf05203ecd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
for md in $(ls ./microposts/*.md); do
base=$(basename $md)
fname="${base%%.*}"
# pandoc -s -f markdown -t org -o ./microposts/${fname}.org ./microposts/${md}
echo "pandoc -s -f markdown -t org --filter ./filter.hs --metadata filename=${fname} -o ./microposts/${fname}.org ${md}"
pandoc -s -f markdown -t org --filter ./filter.hs --metadata filename=${fname} -o ./microposts/${fname}.org ${md}
done
rm ./microposts/microblog.org -f
cat ./microposts/*.org > ./microposts/microblog.org
|