Skip to content

Commit

Permalink
add the drawCallback to the template to render mathjax properly
Browse files Browse the repository at this point in the history
  • Loading branch information
max-andr committed Mar 9, 2021
1 parent 734cf4b commit 8829f86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions robustbench/leaderboard/leaderboard.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
$(document).ready(function () {
$("#leaderboard_{{ threat_model }}").DataTable({
lengthMenu: [15, 25, 50, 75, 100],
"drawCallback": function( settings ) {
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
}
});
});
</script>

0 comments on commit 8829f86

Please sign in to comment.