Skip to content

Commit

Permalink
Make Prettier happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Jan 7, 2020
1 parent 2532f61 commit 07d31b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/docusaurus-1.x/lib/core/renderMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class MarkdownRenderer {
// Currently people using prismjs on Node have to individually require()
// every single language (https://github.com/PrismJS/prism/issues/593)
loadLanguages([language]);
return prismjs.highlight(str, prismjs.languages[language], language);
return prismjs.highlight(
str,
prismjs.languages[language],
language
);
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
const unsupportedLanguageError = chalk.yellow(
Expand Down

0 comments on commit 07d31b6

Please sign in to comment.