Flickr requires a link back to any image that is included in a web page. The easiest way to do this is to make the image a link to the flickr page.
To see the image in the web page, the static url has to be extracted. This has to be wrapped in a link to the Flickr page.
Pandoc allows to create figures when putting image tags onto a line separated by empty lines. This allows to add a caption in the link part of the image.
Unfortunately, creating the backlink breaks this as an empty line will not work anymore. The workaround is to do the wrapping and then to add a caption in the next line. This works for html, not sure about LaTeX.
So the whole thing will look like:
[{ width=100% }](https://www.flickr.com/photos/andrew_maier/50544078727)
Figure: Male lion in the Safarizoo of Thoiry(78) in France
This is quite ugly and using reference links can clean this up considerably:
[![lionstatic]][lion]
[lion]: https://www.flickr.com/photos/andrew_maier/50544078727
[lionstatic]: <https://live.staticflickr.com/65535/50544078727_58f7bf453a_h.jpg> {width=100%}
So the final result is: