put a11y into mermaidAPI render; add render spec (mock diagram renderers etc)

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github)
2022-11-17 12:27:17 -08:00
parent f62c5d9698
commit 29efc116f3
4 changed files with 118 additions and 17 deletions

View File

@@ -214,7 +214,9 @@ The functions for setting title and description are provided by a common module.
clear as commonClear,
} from '../../commonDb';
For rendering the accessibility tags you have again an existing function you can use.
Starting with Mermaid version, the accessibility tags are inserted into the SVG element in the `render` function in mermaidAPI.
In version \_\_\_ and before, you need to insert the accessibility tags in your renderer:
**In the renderer:**