writeas / go-writeas

Go client for the Write.as API
MIT License
22 stars 11 forks source link

Markdown Alt text on images not recognized on some cases #24

Closed hellpe closed 3 years ago

hellpe commented 3 years ago

(not sure if this is the right place to post this, I've copied my post from https://discuss.write.as/t/markdown-alt-text-on-images-not-recognized-on-some-cases/2818)

I’ve noticed that on some of the images on my blog, the alt text (i.e. the part between ![ and ](https://my-image-url.png) is missing from the generated HTML code.

To be more precise, consider the following Markdown: ![Capture d'écran de Our House de GameGrumps (url)](https://système.pointecouteau.com/writeas/superliminal.png)

When I save my post with this code, it is correctly converted: <img src="https://syst%C3%A8me.pointecouteau.com/writeas/superliminal.png" alt="Capture d'écran de Our House de GameGrumps (url)">

Howewer, for those two Markdown sentences, the generated HTML omits the “alt” tag entirely for some reason:

Why is that? Do I need to insert some sort of escape character before quotation marks or slashes?

thebaer commented 3 years ago

Sorry for the delay on this! The forum will be the best place to discuss this, so I'll respond over there.