mermaid: formatting #601 #603

This commit is contained in:
Sören Weber 2023-08-05 14:06:57 +02:00
parent c41edc86e1
commit a718c05324
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -231,10 +231,10 @@ function initMermaid( update, attrs ) {
var code = e.querySelector( '.mermaid-code' ); var code = e.querySelector( '.mermaid-code' );
var parse = parseGraph( decodeHTML( code.innerHTML ) ); var parse = parseGraph( decodeHTML( code.innerHTML ) );
if( parse.dir.relearn_user_theme || parse.yaml.relearn_user_theme ){ if( parse.yaml.relearn_user_theme || parse.dir.relearn_user_theme ){
return; return;
} }
if( parse.dir.theme == theme || parse.yaml.theme == theme ){ if( parse.yaml.theme == theme || parse.dir.theme == theme ){
return; return;
} }
is_initialized = true; is_initialized = true;