File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 5252 }
5353}
5454
55- html [data-theme-mode = " dark" ] img [src ^= " assets/drawio-" ] {
55+ html [data-theme-mode = " dark" ] img [src ^= " assets/" ][ src *= " / drawio-" ] {
5656 filter : invert (0.8 ) brightness (1.2 );
5757}
5858
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export default class DrawioPlugin extends Plugin {
7070 const imageElement = blockElement . querySelector ( "img" ) as HTMLImageElement ;
7171 if ( imageElement ) {
7272 const imageURL = imageElement . getAttribute ( "data-src" ) ;
73- const imageURLRegex = / ^ a s s e t s \/ d r a w i o - .+ \. (?: s v g | p n g ) $ / ;
73+ const imageURLRegex = / ^ a s s e t s \/ (?: . + \/ ) ? d r a w i o - .+ \. (?: s v g | p n g ) $ / ;
7474 if ( ! imageURLRegex . test ( imageURL ) ) return ;
7575 this . getDrawioImageInfo ( imageURL , false ) . then ( ( imageInfo ) => {
7676 if ( imageInfo ) {
You can’t perform that action at this time.
0 commit comments