mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
only process code highlighting under the new content (to avoid redoing the dom)
This commit is contained in:
parent
26e80bfc49
commit
e808b8f994
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user