Mermaid (#1012)
### Prerequisites
Put an `x` into the box(es) that apply:
- [x] This pull request fixes a bug.
- [x] This pull request adds a feature.
- [ ] This pull request introduces breaking change.
### Description
This pull request updates Mermaid and fixes a bug:
1. Update Mermaid to version 11.17.12. This adds support for xychart
with multiple, labelled lines. See
https://mermaid.ai/open-source/syntax/xyChart.html#legend-v11-17-0
(though by 11.17.12 it's no longer necessary to use -beta).
2. Prevent Mermaid charts from being minified. Minifying interferes with
setting custom colors via `plotColorPalette`. See
https://mermaid.ai/open-source/syntax/xyChart.html#setting-colors-for-lines-and-bars.
### Issues Resolved
Mermaid custom `plotColorPalette` has no effect.
### Checklist
Put an `x` into the box(es) that apply:
#### General
- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [ ] Reference issue with `#<ISSUE_NO>` if applicable
#### Resources
- [ ] If you have changed any SCSS code, run `make release` to
regenerate all CSS files
#### Contributors
- [x] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
---------
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
| | |
| | | - [Ábel Nagy](https://github.com/abel-nagy) |
| | | - [William Floyd](https://w-floyd.com) |
| | | - [Tiago Carrondo](https://carrondo.pt) |
| | | [Luke Wassink](https://github.com/lukewassink) |
| | |
| | | <div class="mermaid"> |
| | | {{- .Inner | safeHTML }} |
| | | </div> |
| | | <pre style="white-space: pre;"> |
| | | <div class="mermaid"> |
| | | {{- .Inner | safeHTML }} |
| | | </div> |
| | | </pre> |
| | |
| | | </main> |
| | | |
| | | {{ if .HasShortcode "mermaid" }} |
| | | <script src="https://cdn.jsdelivr.net/npm/mermaid@11.13.0/dist/mermaid.min.js" |
| | | integrity="sha256-PiACvzM5B/rnwdaGC7x49dpBe8cLZPPSJoWBuguouWo=" crossorigin="anonymous"></script> |
| | | <script src="https://cdn.jsdelivr.net/npm/mermaid@11.17.2/dist/mermaid.min.js" |
| | | integrity="sha256-WB7X10vZBI0OOpE2OSfXLvIpQtdyJUayf3zCnjU5Drg=" |
| | | crossorigin="anonymous"></script> |
| | | <script> |
| | | mermaid.initialize({startOnLoad: true}); |
| | | </script> |