snippet fix when maxLineLength is not specified
@@ -7,7 +7,7 @@ class Snippet extends React.Component {
render() {
const {snippet, lang, maxLineLength} = this.props
- const divClassName = "snippet " + (maxLineLength < 100 ? "content-block" : "wide-screen")
+ const divClassName = "snippet " + (maxLineLength && maxLineLength > 100 ? "wide-screen" : "content-block")
const preClassName = "hljs" + ((lang && lang.length) ? " " + lang : "")
return (<div className={divClassName}>
