blurry-dev/blurry

Markdown image processing is missing alt-text

KajKandler opened this issue · 2 comments

A Markdown like

![Alt Text](./media/foo.img "A Photo of foo")

is supposed to be translated into

<img src="./media/foo.img" alt="Alt Text" title="A Phtoto of foo" />

But the alt attribute is not filled and leads to an HTML syntax violation, as it is required on an <img> tag.

Example

A photo of the Foo Fighters (rock band) against a white background

I wonder if the title handling is the issue here. Alt text is working nicely in my blog, for instance:

image

My point is that the title is not supported.

I'd also see a title more like a caption. Because an alt text is supposed to explain the image content to a blind person, which is usually too verbose for a caption of an image.