this post was submitted on 25 Jun 2023
37 points (95.1% liked)

Lemmy

12575 readers
1 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

Photo of a snail

An underrated accessibility feature on Lemmy is the ability to add alternative text to images in Markdown. The image above will be read as "photo of a snail" by screen-readers. The Markdown for that one is:

![Photo of a snail](https://lemmy.world/pictrs/image/f9281257-b8bc-4c77-9aad-be5038e0758f.jpeg)

As you can see, the alternative text simply needs to be inserted between the two brackets, which are empty by default when you insert an image.

you are viewing a single comment's thread
view the rest of the comments
[–] T156@lemmy.world 4 points 1 year ago (2 children)

It is a shame that Lemmy doesn't actually make it clear that the square brackets are for alt text.

I would have thought that it was for a caption, or something along those lines.

[–] BrikoX@vlemmy.net 5 points 1 year ago* (last edited 1 year ago) (1 children)

Markdown is such popular markup language that I think it's almost assumed that people know what it means.

[–] T156@lemmy.world 5 points 1 year ago (1 children)

I'd disagree there. Some people might know the basics, but expecting them to know the complete ins and outs is a bit silly.

Especially since not everyone joining Lemmy would be that tech-inclined, and most of their prior experience with markdown might be the implementation that Reddit uses.

[–] BrikoX@vlemmy.net 2 points 1 year ago

I don't disagree, I just think that for devs that is obvious, so unless regular people give feedback in places where dev see it's unlikely to improve.

[–] ulu_mulu@lemmy.world 3 points 1 year ago* (last edited 1 year ago) (1 children)

Markdown is not Lemmy tho, it's a markup language independent of the platform, like HTML, reddit uses it as well, also github and mediawiki (wikipedia) and many others.

While each platform can provide formatting help, it's not the entire language, have a look here: https://www.markdownguide.org/

[–] AlmightySnoo@lemmy.world 2 points 1 year ago* (last edited 1 year ago) (1 children)

How the markdown language is implemented is highly platform-dependent though. For instance, in Reddit you cannot insert an image in Markdown-mode (and you don't even have alt-text even when using their "fancy pants" mode).

[–] ulu_mulu@lemmy.world 1 points 1 year ago

True, but the language is independent from that.

I mean, the language itself has a set of "features", not all of them are implemented on all platforms as you rightfully said, but it's not that the language changes because there are differences in the implementations.