Added quotes around language class attribute on github style codeblock

This commit is contained in:
Titus 2012-06-14 00:03:28 -06:00
parent 9a0492a7ac
commit 6515742ea9

View File

@ -915,7 +915,7 @@ var _DoGithubCodeBlocks = function(text) {
codeblock = codeblock.replace(/^\n+/g,""); // trim leading newlines
codeblock = codeblock.replace(/\n+$/g,""); // trim trailing whitespace
codeblock = "<pre><code" + (language ? " class=" + language : "") + ">" + codeblock + "\n</code></pre>";
codeblock = "<pre><code" + (language ? " class=\"" + language : "\"") + ">" + codeblock + "\n</code></pre>";
return hashBlock(codeblock);
}