Doing it in markdown isn’t a great solution, that’s more for hover text then anything. Having a bunch of text in markdown Alt-text clogs the hell out of the post body and makes it harder to copy the raw markdown if you’re not trying to grab a fuck load of additional text.
Here’s an extreme case example why markdown isn’t great for this purpose. Also, not every client renders the markdown the same, Lemmy has no standardized markdown syntax/implementation. For example, my client won’t render your example the way you think it will; it renders the link at the end in text and has a [ before the image, and my client hates new lines in markdown alt-text. If you use \ in the alt-text, it render the image twice, and if you use a blank newline it will not render at all.
HTML is a pretty damn nailed down standard and can already properly handle Alt-text.
deleted by creator
Doing it in markdown isn’t a great solution, that’s more for hover text then anything. Having a bunch of text in markdown Alt-text clogs the hell out of the post body and makes it harder to copy the raw markdown if you’re not trying to grab a fuck load of additional text.
See HTML Accessibility.
Here’s an extreme case example why markdown isn’t great for this purpose. Also, not every client renders the markdown the same, Lemmy has no standardized markdown syntax/implementation. For example, my client won’t render your example the way you think it will; it renders the link at the end in text and has a
[
before the image, and my client hates new lines in markdown alt-text. If you use\
in the alt-text, it render the image twice, and if you use a blank newline it will not render at all.HTML is a pretty damn nailed down standard and can already properly handle Alt-text.