Content of release:
- Updated configuration handling
- Any characters within quotes in link texts and node scriptions as described in issue #162
- Option for whether or not to closeCssStyles as described in issue #157
- Autoscaling for gantt diagrams and sequence diagrams as described in issue #150
- Support for nested subgraphs as described in issue #161
*Split between the web integration and core diagram rendering and exposure of a render method as discussed in issue #146
*Updated bundling with smaller deliverables
*Fix for accessDenied issue during cssRule cloning as described in issue #155 - Modified the number of week for which the x-axis stays in week mode
- Adjustment of init method for more fine grained integrations
Info regarding the change of the init method
Configuration are picked up from the mermaid object and is not passed as arguments. Same handling for all diagram types, sequenceDiagrams were handled in a different way before this commit.
When init is called with:
- 0 arguments - all mermaid divs are processed
- 1 argument - this is interpreted as a definition of what nodes to process
- 2 arguments - for (some) backwards compatability the second argument is interpreted as the definition of nodes to process. The first argument (prrobably a sequence config is ignored)
A definition of nodes to process can be
- a css selector for what elements to be processed
- a list of nodes as in the result of a command like the one below
document.querySelectorAll('.tbProcessed');