Skip to Content
Md2Docx logo Md2Docx

normalizeSequenceDiagram()

Updated 22 Oct 2026

normalizeSequenceDiagram(code): string

Defined in: packages/mermaid-node/src/mermaid-node.ts:196

Auto-normalizes sequence diagrams with multi-word actor names (which beautiful-mermaid would otherwise skip because its parser regex expects non-whitespace actor IDs).

Parameters

code

string

Returns

string

On this page