-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Title attribute is not used as the alt value on the <img> tag (Ruby) #382
Comments
Hey, are you using the Ruby or JavaScript library? |
Using the browser extension, it produces: <div class="imageblock kroki">
<div class="content">
<img src="https://kroki.io/plantuml/svg/eNpzyk9S0LVTcMzJTE5VsFLISM3JyQcAPHcGKw==" alt="Title Alt Text">
</div>
<div class="title">Figure 1. Title Alt Text</div>
</div> |
We are using the version provided by the |
That's a bug we are getting and removing the title from And then, we are resolving the But Feel free to open a pull request to fix this issue. We should also add a test case: |
And we should probably add some documentation about this logic 😉 |
Thanks @Mogztter - I will work on the PR later this week. |
I am looking to set alt text for accessibility reasons on generated diagrams. We originally put a human-readable description in the target, but this gets put into the filename and nginx generally doesn't like spaces in URIs.
I can see in the code there is provision to set alt text using
attr.title
but I am not sure if this is supported fully? I attempted the following:But this still resulted in the following HTML:
Any guidance here would be greatly appreciated :)
The text was updated successfully, but these errors were encountered: