Replies: 2 comments 3 replies
-
There is a conversation to be had about whether the alt text feature of Markdown should be used for this kind of purpose at all. I think it shouldn't, and the Markdown community should strive to find other ways to handle styling information. But since this is a functional feature already, and it produces well-styled HTML, I think it's sufficient for now just to document this better. |
Beta Was this translation helpful? Give feedback.
-
Agree. I currently hate to abuse alternative text for the image in the point of view of accessibility. But it's difficult to overturn the past decision with keeping backward compatibillity of exisiting many Marp documents. And there are few people to discuss about this problem in Marp community, because many users want the convenience of setting about slide appearance. 😓 Removing recognized keywords from the alternative text had mentioned at marp-team/marpit#316 and fixed by marp-team/marpit#318, but there was not docs update in this PR. We are anytime welcome to pull request for updating docs.
|
Beta Was this translation helpful? Give feedback.
-
The Image syntax section of the docs shows how an image can be resized or used as a background by adding keywords to the image alt text, e.g.
![width:200px](image.jpg)
.However, there are no examples of how to include more typical alt text (i.e. a description of the image) along with this syntax. It's not clear from the documentation if these keywords are removed from the alt text when rendering the Markdown, or if they would remain and therefore add noise for a screen reader user. I'd like to see more information provided on this front, to discourage users from misusing the alt text feature as only a formatting tool.
Personally, this almost put me off from using Marp altogether. I always include alt text when writing slides and thought this was just another case of developers overlooking accessibility (which is all too common).
Fortunately, I decided to experiment a bit first, and found that
![width:200px Description of image](image.jpg)
will be rendered into HTML as<img src="image.png" alt="Description of image" style="width:200px">
. This is a good feature - please make it clearer that it exists! :)Beta Was this translation helpful? Give feedback.
All reactions