Clever solution. But this breaks if we're ever including an image by an absolute URL. Maybe we should simply document that git-relative images should be linked via "../plain/" and leave it to the markdown author? Or come up with some other clever hack?