You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
graph LR
accTitle: This is the accessible title
accDescr: This is an accessible description
A[Identify Big Decision] --> B{Make Big Decision}
B --> D[Be done]
Explanation
In Mermaid one can add accTitle and accDescr, which then can be used like this
<svgaria-labelledby="chart-title-mermaid-1668725057758"
aria-describedby="chart-desc-mermaid-1668725057758"
xmlns="http://www.w3.org/2000/svg"
width="100%"
id="mermaid-1668725057758"
><titleid="chart-title-mermaid-1668725057758">This is the accessible title</title><descid="chart-desc-mermaid-1668725057758">This is an accessible description</desc></svg>
For SVG it would just work, but for images (server side rendering) it would need to be exposed, for example, like this:
Motivating example
https://mermaid.js.org/config/accessibility.html
Explanation
In Mermaid one can add
accTitle
andaccDescr
, which then can be used like thisFor SVG it would just work, but for images (server side rendering) it would need to be exposed, for example, like this:
And as long as we are here it could also expose
width
andheight
for generated imageThe text was updated successfully, but these errors were encountered: