Closed Curtisjk closed 2 years ago
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 docker-asciidoctor
container - which I believe is the ruby version?
That's a bug we are getting and removing the title from attrs
:
And then, we are resolving the alt
value:
But attrs['title']
is gone 😓
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 :)