Lemmy needs to add real alt-text functionality, putting in the body works, sure; but it’s not going to work out for posts that have both post text and images in the body. Such as someone posting text along with additional screenshots.
Alt-text should be hidden visually, but readable by screen readers.
Huh. Would that be a good solution, like a hover popup you mean? I’m not into CSS. Will screen readers get that? Shouldn’t be crazy difficult to make a bot otherwise, screen reader scans images for text on request by poster or automatically. We have bots here right?
No. Basically just hidden/invisible text that only a screen reader would see.
You’d just upload an image and type alt-text in a box, hit enter and the alt-text would be added to the HTML of the page but not rendered and the image would be added to the markdown as usual, when the screen reader gets to the image, instead of just skipping over it, it’d pull the hidden text from the HTML and read that.
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.
Lemmy needs to add real alt-text functionality, putting in the body works, sure; but it’s not going to work out for posts that have both post text and images in the body. Such as someone posting text along with additional screenshots.
Alt-text should be hidden visually, but readable by screen readers.
Huh. Would that be a good solution, like a hover popup you mean? I’m not into CSS. Will screen readers get that? Shouldn’t be crazy difficult to make a bot otherwise, screen reader scans images for text on request by poster or automatically. We have bots here right?
No. Basically just hidden/invisible text that only a screen reader would see.
You’d just upload an image and type alt-text in a box, hit enter and the alt-text would be added to the HTML of the page but not rendered and the image would be added to the markdown as usual, when the screen reader gets to the image, instead of just skipping over it, it’d pull the hidden text from the HTML and read that.
See HTML Accessibility.
Not sure what you mean. Just type the alt in markdown
[![alt_text_here](image.jpg)](https://example.com/some/page)
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.