#!/bin/sh put_image_container() { sed 's!

\(.*\)

!
\2
!g' } markdown | \ put_image_container