woozle.org/mdwntohtml

16 lines
344 B
Plaintext
Raw Normal View History

2010-11-10 20:54:22 -07:00
#! /bin/sh -e
while IFS=: read field value; do
case "$field" in
"")
break
;;
Title)
# echo strips leading and trailing whitespace
title=$(echo $value)
;;
esac
done
2010-12-15 22:34:45 -07:00
m4 -DIMAGE='<a href="$1.jpg"><img src="$1-sm.jpg"></a>' | markdown | m4 -DTITLE="$title" $1 -