Skip to content

Commit 1f87aab

Browse files
committed
Fix brace in wrong place
1 parent 8f1f0dd commit 1f87aab

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/index.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)