in src/directives/highlight.js [9:20]
bind: function(el, binding) {
// on first bind, highlight all targets
let targets = el.querySelectorAll("code");
targets.forEach(target => {
// if a value is directly assigned to the directive, use this
// instead of the element content.
if (binding.value) {
target.textContent = binding.value;
}
hljs.highlightBlock(target);
});
},