only process code highlighting under the new content (to avoid redoing the dom)

This commit is contained in:
Carson Gross 2022-11-28 07:07:04 -07:00
parent 26e80bfc49
commit e808b8f994

View File

@ -13,8 +13,8 @@
<script src="/js/preload.js"></script>
<script src="/js/_hyperscript.js"></script>
<script>
htmx.onLoad(function(){
Prism.highlightAll();
htmx.onLoad(function(content){
Prism.highlightAllUnder(content);
})
</script>