-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: load title/desc text from Mermaid SVG
Loads the title and/or description text from the Mermaid SVG for accessibility purposes. In come countries, it is illegal to use images on a website without the appropriate alt text. Additionally, some markdown renderers use the alt text as a caption (e.g. Pandoc). For example, the following mermaid code: ```mermaid stateDiagram accTitle: State diagram title here accDescr: State diagram description here state Choose <<fork>> Choose --> Still ``` Will get converted to the following markdown image: ```markdown ![State diagram description here](./link-to-image.png "State diagram title here") ``` [] in the alt text and " in the title text are automatically escaped.
- Loading branch information
1 parent
f99ec51
commit 504d525
Showing
4 changed files
with
143 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters