From 84ab3c30f477a34cf9015be728048e86b26c1d69 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 16 Oct 2017 12:58:58 +0200 Subject: MathJax integration --- public/index.html | 1 + public/js/script.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/public/index.html b/public/index.html index 6f41c1f..8667fba 100644 --- a/public/index.html +++ b/public/index.html @@ -7,6 +7,7 @@ + diff --git a/public/js/script.js b/public/js/script.js index 4c9769a..cbc4221 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -7,13 +7,16 @@ $(document).ready(function() { e.stopPropagation(); $.get(this.href, function(data) { $('#md').html(data); + MathJax.Hub.Queue(["Typeset", MathJax.Hub]); }); }); + $('.directory').find('ul').hide(); $('.directory').click(function(e) { e.stopPropagation(); $(this).children('ul').slideToggle(); + MathJax.Hub.Queue(["Typeset", MathJax.Hub]); }); }); }); -- cgit v1.2.3