Fix syntax highlighting

Don't break highlighting on multi-line spans (multi-line comments for
example)
This commit is contained in:
Evan Lucas 2014-04-22 17:06:16 -05:00
parent bf855d19cb
commit 4134b38a84
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class Dispatcher
initHighlight: ->
$('.highlight pre code').each (i, e) ->
hljs.highlightBlock(e)
$(e).html($.map($(e).html().split("\n"), (line, i) ->
"<div class='line' id='LC" + (i + 1) + "'>" + line + "</div>"
"<span class='line' id='LC" + (i + 1) + "'>" + line + "</span>"
).join("\n"))
hljs.highlightBlock(e)