Fix syntax highlighting
Don't break highlighting on multi-line spans (multi-line comments for example)
This commit is contained in:
parent
bf855d19cb
commit
4134b38a84
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue