SemanticMediaWiki / Mermaid

Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language
https://www.mediawiki.org/wiki/Extension:Mermaid
Other
36 stars 23 forks source link

Truncated text when using style on a subgraph title #98

Open Jacques-Olivier-Farcy opened 1 year ago

Jacques-Olivier-Farcy commented 1 year ago

Setup and configuration

Issue

Produces a stack trace and outputs:

When applying a style to a subtitle, when text size is increased, it is truncated :

{{#mermaid:graph LR;
 subgraph styleTitle [Support tickets]
  BLOC1[[Test]] --> BLOC2(Test bloc 2)
end
%% Style of title
    classDef Title fill:#FF99FF00, stroke-width:0, color:grey, font-weight:bold, font-size: 15px;
%% style
    class styleTitle Title;
}}

All is workgin good: image

But when i change the size of the text:

{{#mermaid:graph LR;
 subgraph styleTitle [Support tickets]
  BLOC1[[Test]] --> BLOC2(Test bloc 2)
end
%% Style of title
    classDef Title fill:#FF99FF00, stroke-width:0, color:grey, font-weight:bold, font-size: 25px;
%% style
    class styleTitle Title;
}}

image