You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified mermaid.init() so that it can be applied more than once. This is needed in my case to load content dynamically on the page. You may consider adding this minor change upstream.
var init = function () {
var arr = document.querySelectorAll('.mermaid');
var cnt = 0;
for (i = 0; i < arr.length; i++) {
var element = arr[i];
// added code
if(!element.getAttribute("data-processed")) {
element.setAttribute("data-processed", true);
} else continue;
...
Thanks, v
The text was updated successfully, but these errors were encountered:
Hi,
I modified mermaid.init() so that it can be applied more than once. This is needed in my case to load content dynamically on the page. You may consider adding this minor change upstream.
Thanks, v
The text was updated successfully, but these errors were encountered: