Commit 621d3581 authored by Dan Allen's avatar Dan Allen
Browse files

only highlight code tags that have the hljs class

parent 650b6a7e
......@@ -33,5 +33,7 @@
hljs.registerLanguage('swift', require('highlight.js/lib/languages/swift'))
hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'))
hljs.registerLanguage('yaml', require('highlight.js/lib/languages/yaml'))
hljs.initHighlighting()
;[].slice.call(document.querySelectorAll('pre code.hljs')).forEach(function (node) {
hljs.highlightBlock(node)
})
})()
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