summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-highlight
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-highlight')
-rw-r--r--packages/gitbook-plugin-highlight/src/CodeBlock.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-highlight/src/CodeBlock.js b/packages/gitbook-plugin-highlight/src/CodeBlock.js
index 89f6793..a556d36 100644
--- a/packages/gitbook-plugin-highlight/src/CodeBlock.js
+++ b/packages/gitbook-plugin-highlight/src/CodeBlock.js
@@ -29,7 +29,7 @@ const CodeBlock = React.createClass({
render() {
const { children, className } = this.props;
const content = getChildrenToText(children);
- const lang = getLanguage(className);
+ const lang = getLanguage(className || '');
const includeCSS = <GitBook.ImportCSS href="gitbook/highlight/white.css" />;