This site is no longer actively maintained. It exists for historical purposes as an example of Phabricator integration and Lua scripting.

Difference between revisions of "User:Ccicalese/Wide Mermaid Graph"

From cpt
(Created page with "When initially rendered, this graph will fit the width of the window, scaling down if necessary: {{#mermaid:graph LR; A["This is a very wide box"] B["This is a very wide box"]...")
 
No edit summary
Line 48: Line 48:
config.flowchart.useMaxWidth = false
config.flowchart.useMaxWidth = false
}}
}}
{{#mermaid:graph LR;


The pull request also makes it so that graphs with unrecognized parameters will ignore those parameters and render, rather than resulting in a blank graph:
{{#mermaid:graph LR;
A-->
|config.a.b = true
}}
Without the pull request being applied, the second graph will not render.
Without the pull request being applied, the second graph will not render.

Revision as of 17:11, 8 November 2019

When initially rendered, this graph will fit the width of the window, scaling down if necessary:


When pull request 41 is applied, this graph will render at the default size regardless of whether it is wider than the window, and it will scroll horizontally necessary:

{{#mermaid:graph LR;


The pull request also makes it so that graphs with unrecognized parameters will ignore those parameters and render, rather than resulting in a blank graph:

Without the pull request being applied, the second graph will not render.