Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image sizing directives should be removed from alt text #316

Closed
mattwigway opened this issue Nov 5, 2021 · 0 comments · Fixed by #318
Closed

Image sizing directives should be removed from alt text #316

mattwigway opened this issue Nov 5, 2021 · 0 comments · Fixed by #318

Comments

@mattwigway
Copy link

Image sizing directives (e.g. width:100px) are specified within the alt text of the markdown image reference. I need my slides to be accessible to visually impaired users, so I need to specify alternative text for all images. Right now, if I do something like ![Graph showing increased carbon emissions height:600px](image.png) the alt text for the image in the HTML slideshow is "Graph showing increased carbon emissions height:600px." It would be nice to strip out the marpit image size directives from the alt text during rendering.

@yhatt yhatt moved this to Todo in Marp Roadmap Nov 6, 2021
Repository owner moved this from Todo to Done ✅ in Marp Roadmap Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant