Nbconvert latex markdown images

This is a regex filter approach for issue #4191.