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
No edit summary
No edit summary
Line 48: Line 48:
config.flowchart.useMaxWidth = false
config.flowchart.useMaxWidth = false
}}
}}
{{#mermaid:graph LR;




Line 54: Line 53:
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:
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;
{{#mermaid:graph LR;
A-->
A-->B
|config.a.b = true
|config.a.b = true
}}
}}
Without the pull request being applied, the second graph will not render.
Without the pull request being applied, the third graph will not render.

Revision as of 17:12, 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:


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 third graph will not render.