static/pg-doc.js in pg-doc-0.0.1 vs static/pg-doc.js in pg-doc-0.0.2
- old
+ new
@@ -1,9 +1,14 @@
-$(document).ready(() =>
+$(document).ready(() => {
// Toggles submenues in navigation
$(document).on("click", ".js-submenu", (event) => {
$(event.currentTarget).find("I.caret").transition('toggle')
$(event.currentTarget).next("DIV.menu").transition('toggle')
})
-);
+ // Handles code highlighting
+ $('PRE').each((i, block) => {
+ hljs.highlightBlock(block)
+ })
+
+});