Skip to content

Commit

Permalink
Merge pull request #358 from pratikb64/page-routing-fix-4
Browse files Browse the repository at this point in the history
fix: syntax highlighting on page navigation
  • Loading branch information
pratikb64 authored Feb 21, 2025
2 parents 8b6f925 + 51f03a1 commit 9d54358
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wiki/public/js/wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ function loadWikiPage(url, pageElement, replaceState = false) {
add_link_to_headings();
add_click_to_copy();
set_toc();
hljs.configure({
languages: ["python", "html", "css", "javascript", "shell", "bash"],
});
hljs.highlightAll();
}
$(".main-column, .page-toc").toggleClass("pulse");
},
Expand Down
1 change: 1 addition & 0 deletions wiki/wiki/doctype/wiki_page/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
{%- endblock %}
<!-- csrf_token -->
{%- block body_include %}{{ body_include or "" }}{% endblock -%}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
</body>

</html>

0 comments on commit 9d54358

Please sign in to comment.