Image filter should only transform text if it is preceded by a newline or whitespace. (Won't transform images already wrapped in an <img> tag.)
Fixed markdown test.