mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-23 10:14:18 +00:00
deploy: bd94fe6b81
This commit is contained in:
parent
4829b6e633
commit
b4abf6e3bb
265 changed files with 6788 additions and 6788 deletions
js
|
@ -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' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue