mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
Added quotes around language class attribute on github style codeblock
This commit is contained in:
parent
9a0492a7ac
commit
6515742ea9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user