fix: set theme during rendering

Sankey diagram isn't using yaml/directive currently
This commit is contained in:
Marcel Beck 2023-08-04 15:13:42 +02:00
parent 6960d63ee0
commit eec16d3abe

View file

@ -277,7 +277,7 @@ function initMermaid( update, attrs ) {
}
var is_initialized = ( update ? update_func( attrs ) : init_func( attrs ) );
if( is_initialized ){
mermaid.init();
mermaid.init({theme: attrs.theme});
// zoom for Mermaid
// https://github.com/mermaid-js/mermaid/issues/1860#issuecomment-1345440607
var svgs = d3.selectAll( '.mermaid.zoom svg' );