From 43d37ab1cfeea49516b966fe67206d6b9ff49d9c Mon Sep 17 00:00:00 2001 From: chris moran Date: Mon, 27 Jul 2020 08:54:45 -0400 Subject: [PATCH] Fixed a new config issue Diagrams now properly reset to siteConfig when there are multiple diagrams on a single page --- src/mermaidAPI.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index 77fd5b71c..c44baff77 100644 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -206,6 +206,7 @@ const render = function(id, _txt, cb, container) { configApi.reset(); const siteConfig = getSiteConfig(); updateRendererConfigs(siteConfig); + reinitialize(siteConfig); } const cnf = getConfig();