mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 16:33:58 +00:00
7 lines
226 B
JavaScript
7 lines
226 B
JavaScript
|
hljs.initHighlightingOnLoad();
|
||
|
|
||
|
document.addEventListener('postprocess_liveupdate', function () {
|
||
|
var blocks = document.querySelectorAll('pre code:not(.hljs)');
|
||
|
Array.prototype.forEach.call(blocks, hljs.highlightBlock);
|
||
|
});
|