Commit 728bdfc5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6843 from evanlucas/bug/6546

Fix syntax highlighting
parents 1feaa336 4134b38a
...@@ -59,7 +59,7 @@ class Dispatcher ...@@ -59,7 +59,7 @@ class Dispatcher
initHighlight: -> initHighlight: ->
$('.highlight pre code').each (i, e) -> $('.highlight pre code').each (i, e) ->
hljs.highlightBlock(e)
$(e).html($.map($(e).html().split("\n"), (line, i) -> $(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")) ).join("\n"))
hljs.highlightBlock(e)
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