mirror of https://github.com/luizdepra/hugo-coder.git

Luke Wassink
yesterday 16325b3cd3f13bcbd29f252100b789dc1ac43213
refs
author Luke Wassink <lwassink@gmail.com>
Sunday, November 15, 2026 02:03 +0100
committer GitHub <noreply@github.com>
Sunday, November 15, 2026 02:03 +0100
commit16325b3cd3f13bcbd29f252100b789dc1ac43213
tree 22125047ad59128782863b9e05fa8b5782dc5819 tree | zip | gz
parent f5534bfb9ca8c8c22a4124c6a3629d54513c307e view | diff
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>
3 files modified
14 ■■■■■ changed files
CONTRIBUTORS.md 1 ●●●●● diff | view | raw | blame | history
layouts/_shortcodes/mermaid.html 8 ●●●●● diff | view | raw | blame | history
layouts/baseof.html 5 ●●●●● diff | view | raw | blame | history