Skip to content

v2.1.0

Compare
Choose a tag to compare
@aloisklink aloisklink released this 10 May 18:36
40eed00

Added

  • Add TypeScript types to remark-mermaid-dataurl

  • Use Mermaid titles/descriptions for the output markdown image's title/alt-text, e.g. like:

    ![Mermaid diagram description](data:image/svg+xml;charset=UTF-8,%3Csvg%20id%3D%22mermaid-1654... "Mermaid diagram title")

    See https://mermaid.js.org/config/accessibility.html for how to add titles and descriptions to your Mermaid diagrams.

Dependencies

  • Add @types/mdast and vfile as dependencies. We only use these for their types.
  • Updated @mermaid-js/mermaid-cli from ^10.0.0 to ^10.0.2 to use the types added by that release.

Full Changelog: v2.0.7...v2.1.0