1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00

Rerun MathJax when previewing a translation

This commit is contained in:
Philipp Fischbeck 2017-11-28 11:43:29 +01:00
parent 913d9ec0b7
commit 3bfc2a7406

View File

@ -18,3 +18,4 @@ $(document).on "turbolinks:load", loadCodeMirror
$(document).on "click", '#translationNav a[href="#preview"]', -> $(document).on "click", '#translationNav a[href="#preview"]', ->
$('#preview .problem-content').html(cm.getValue()) $('#preview .problem-content').html(cm.getValue())
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);