#! /bin/sh
-for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html; done
+for f in $(find -name '*.mdwn' -type f); do
+ python -m markdown $f > ${f%mdwn}html
+ sed -i 's|<p><title>|<title>|g;s|</title></p>|</title>|g' ${f%mdwn}html
+done