diff --git a/scipost_django/scipost/templates/scipost/bare_base.html b/scipost_django/scipost/templates/scipost/bare_base.html index 5e59a7b77dfb2a02d7a6a0780f7935fbaf9ee879..c949e0ab9c152a3befa8ae4740c4ee614d8ba94f 100644 --- a/scipost_django/scipost/templates/scipost/bare_base.html +++ b/scipost_django/scipost/templates/scipost/bare_base.html @@ -41,6 +41,12 @@ <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML,Safe"></script> {% block footer_script %} + <script nonce="{{ request.csp_nonce }}"> + document.body.addEventListener('htmx:afterSettle', function () { + console.log('session-acad-field-set event') + MathJax.Hub.Queue(["Typeset",MathJax.Hub]); + }) + </script> {% endblock footer_script %} </body>