File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -295,23 +295,23 @@ function createPlugin() {
295295 `</code>` ,
296296 `</pre>`
297297 ] . join ( '' ) ;
298-
299- const themeNames = Object . keys ( stylesheets ) ;
300- if ( themeNames . length ) {
301- markdownAST . children . push ( {
302- type : 'html' ,
303- value : [
304- '<style class="vscode-highlight-styles">' ,
305- injectStyles ? styles : '' ,
306- themeNames . map ( theme => stylesheets [ theme ] ) . join ( '\n' ) ,
307- '</style>'
308- ] . join ( '' )
309- } ) ;
310- }
311298 } finally {
312299 unlockRegistry ( ) ;
313300 }
314301 }
302+
303+ const themeNames = Object . keys ( stylesheets ) ;
304+ if ( themeNames . length ) {
305+ markdownAST . children . push ( {
306+ type : 'html' ,
307+ value : [
308+ '<style class="vscode-highlight-styles">' ,
309+ injectStyles ? styles : '' ,
310+ themeNames . map ( theme => stylesheets [ theme ] ) . join ( '\n' ) ,
311+ '</style>'
312+ ] . join ( '' )
313+ } ) ;
314+ }
315315 }
316316 return textmateHighlight ;
317317}
You can’t perform that action at this time.
0 commit comments