Viewing markdown snippet with invalid embed returns 500 error
Steps to reproduce
- Create a new snippet with any title and a file name with the extension of
.md
- Add the following contents to the markdown file:
Test markdown snippet
![JTjy2Of](/uploads/255aa749bb61c224b82d2cc0a21bd383/JTjy2Of.jpg)
You can see an example on Gitlab.com here https://gitlab.com/snippets/18991
I believe this may be caused by the embedded image not loading/being invalid.
Expected outcome
To still be able to view the contents of the markdown file. If the embedded file fails to load then it should just not appear or show a broken image. With this behavior the only way to fix it is by adding /edit
manually to the url and removing the image link.