Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 20, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

darshanr0107 and others added 21 commits December 29, 2025 17:08
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
I had to slightly modify how `createLabel()` is called in
`rectWithTitle.ts` since TypeScript is not smart enough
to know that only arrays have `textRows.join`.

I didn't set a default value for `style`, since currently it fails if
`htmlLabels: false` is set.
Allow passing `width: Number.POSITIVE_INFINITY` to disable wrapping when
calling `createText`. This also disables centreing for HTML labels, for
backwards compatibility with Mermaid v10 behaviour.
Change `createLabel` to just call `createText`, except with
`markdown: false` set.

This aligns how nodes and edges look when rendering using markdown and
not using markdown.

This adds support for KaTeX and embedding FontAwesome icons from
iconpacks in some of these older labels.

One unfortunate side-effect is that we need to reset the `.width` and
`.height` of the first child of the created element, if-and-only-if
it's a HTML label and not an SVG label, but luckily, everywhere except
`edges.js` already does that for us.
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
…m whitespace in nonMarkdownToLines; simplify title assignment in rectWithTitle

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
…-markdown

Standardize label rendering via createText (KaTeX + iconpack support)
@pull pull bot locked and limited conversation to collaborators Jan 20, 2026
@pull pull bot added the ⤵️ pull label Jan 20, 2026
@pull pull bot merged commit 4261d3e into code:develop Jan 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants