This commit is contained in:
McShelby 2024-03-17 00:45:50 +00:00
parent 4829b6e633
commit b4abf6e3bb
265 changed files with 6788 additions and 6788 deletions

View file

@ -218,10 +218,10 @@ function initMermaid( update, attrs ) {
var graph = serializeGraph( parse );
var new_element = document.createElement( 'div' );
for( var attr of element.attributes ){
Array.from( element.attributes ).forEach( function( attr ){
new_element.setAttribute( attr.name, attr.value );
element.removeAttribute( attr.name );
}
});
new_element.classList.add( 'mermaid-container' );
new_element.classList.remove( 'mermaid' );
element.classList.add( 'mermaid' );