Merge pull request #6843 from evanlucas/bug/6546

Fix syntax highlighting
This commit is contained in:
Dmitriy Zaporozhets 2014-04-24 09:38:44 +03:00
commit 728bdfc504
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)