Repository navigation
zuzu v0.7.5
zuzu v0.7.5 draws the math of KaTeX in the labels of Mermaid, records the answers of the maintainers of 2026-11-20 (D35, D36 and D37), and does the easy items of the backlog. The output of some charts and diagrams changes, as the sections below say.
Math in the labels of Mermaid (D36)
- A text between two
$$in a label draws as math. The math layout of okage lays it out in STIX Two Math. - The new Parse option
zuzu.WithMathgives the font. The packagegithub.com/xo/zuzu/text/mathholds STIX Two Math under the OFL. Callzuzu.WithMath(math.Font()). - A formula draws as a path with the role
math, in the color of its label. The SVG names its TeX inaria-label. - If the parse has no font of math, or okage cannot lay out a formula, the label draws its source. The report names the label and the command at fault.
Look and themes (D35, D37)
- A sequential ramp takes its form from the lightness of its background.
- A kind of Mermaid whose section has the theme
redux-colorby default draws in mermaid-redux-color when its source sets no theme. - The
bgcolorof a graph of DOT fills the page and is the background of the theme. The mode follows its lightness.WithBackgroundwins over it. colorScheme: rotateof a use case diagram gives each actor, use case and boundary a categorical color in turn.- A diverging scheme name of Vega takes the diverging ramp.
rainbowandsinebowtake a wheel of the categorical colors.
Fixes from the backlog
- Guides: an encode of a part of an axis applies as in vega.js, a legend wraps at the width of the plot, and a closed line gets no end label.
- Mermaid: the bit numbers of a packet draw at size 10, and a theme in the section of a kind applies. C4 accepts
c4ShapeInRowandc4BoundaryInRow.\nstarts a line in a label. - DOT: a record keeps its empty fields,
label=""draws no text, andweight=0does not pull its ends. A loop draws above its node in LR and RL. - Vega: a fill that is an object with no gradient is no gradient. The open and closed curves of basis, cardinal and catmull-rom draw.
Dependencies
- github.com/xo/okage v0.19.0
- zuzu reads its fonts with the copy of go-text in okage, so it no longer requires github.com/go-text/typesetting.
Full changes: v0.7.4...v0.7.5