Skip to content

Commit

Permalink
Revert "[docs] Force usage of block language (#18069)"
Browse files Browse the repository at this point in the history
This reverts commit 751ea52.
  • Loading branch information
oliviertassinari committed Oct 30, 2019
1 parent afd5ba1 commit 31cb1c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ const markedOptions = {
}

if (!prismLanguage) {
if (process.env.NODE_ENV === 'production') {
console.error(`unsupported language: "${language}", "${code}"`);
} else {
if (language) {
throw new Error(`unsupported language: "${language}", "${code}"`);
} else {
prismLanguage = prism.languages.jsx;
}
}

Expand Down

0 comments on commit 31cb1c6

Please sign in to comment.