lib/asciidoctor/syntax_highlighter/highlightjs.rb in asciidoctor-2.0.17 vs lib/asciidoctor/syntax_highlighter/highlightjs.rb in asciidoctor-2.0.18

- old
+ new

@@ -23,10 +23,10 @@ else # :footer %(<script src="#{base_url}/highlight.min.js"></script> #{(doc.attr? 'highlightjs-languages') ? ((doc.attr 'highlightjs-languages').split ',').map {|lang| %[<script src="#{base_url}/languages/#{lang.lstrip}.min.js"></script>\n] }.join : ''}<script> if (!hljs.initHighlighting.called) { hljs.initHighlighting.called = true - ;[].slice.call(document.querySelectorAll('pre.highlight > code')).forEach(function (el) { hljs.highlightBlock(el) }) + ;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) }) } </script>) end end end