Commit 17718414 authored by Björn Bartels's avatar Björn Bartels

fix node 5 'unexpected token'

parent 414aa477
Pipeline #55 passed with stage
......@@ -5,7 +5,7 @@ function highlightCode(code, language) {
if (typeof language === 'undefined') language = 'html';
var renderedCode = hljs.highlight(language, code).value;
var output = `<div class="code-example"><pre><code class="${language}">${renderedCode}</code></pre></div>`;
var output = '<div class="code-example"><pre><code class="'+language+'">'+renderedCode+'</code></pre></div>';
return output;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment