Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a library-level variable for assigning ids
The current behavior is unexpected when re-running `init()`, as every run through will start with the first `.mermaid` it finds, and start re-indexing at 0, irrespective if the original `id=mermaidChart0` is still around. This change ensures that successive runs will not clobber old ones.
- Loading branch information