[go: up one dir, main page]

[![](https://lemy.lol/api/v3/image_proxy?url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F4%2F44%2FNarrow-banded_dartwhite_%2528Catasticta_flisa_postaurea%2529_underside_on_Mimosa_pudica.jpg)](https://github.com/Xyphyn/photon/)

Above is an image inside a link. The image is broken.

I poked at the source code and found that MdImage gets passed href of the parent link and not the image url itself. So the image component tries to display https://github.com/Xyphyn/photon/ instead of what its supposed to. It’s probably caused by value meant for parent being sent to children via those ...rest params in MdTree, but I couldn’t follow that enough to find out how exactly.

Bonus: This bug lets me embed a video straight into the post

[![](https://lemy.lol/api/v3/image_proxy?url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F4%2F44%2FNarrow-banded_dartwhite_%2528Catasticta_flisa_postaurea%2529_underside_on_Mimosa_pudica.jpg)](https://www.youtube.com/watch?v=dQw4w9WgXcQ)