homepage/mdwntohtml

16 lines
279 B
Plaintext
Raw Normal View History

#! /bin/sh
while IFS=: read field value; do
case "$field" in
"")
break
;;
Title)
# echo strips leading and trailing whitespace
2012-09-11 23:23:44 -06:00
title=${value# }
;;
esac
done
2011-10-03 16:51:00 -06:00
markdown | m4 -DTITLE="$title" $1 -