Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions oioioi/base/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,7 @@
<script>const oioioi_base_url = "{{ base_url | escapejs }}";</script>
<script src="{% url 'javascript_catalog' %}"></script>
<script src="{% static 'index.bundle.js' %}"></script>
<script>
window.MathJax = {
tex: {
inlineMath: [ ['$','$'], ['\\(','\\)'] ],
displayMath: [ ['$$','$$'], ['\\[','\\]'] ],
processEscapes: true
},
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
}
};
</script>
<script type="text/javascript" id="MathJax-script" src="{% static 'mathjax/tex-chtml.js' %}"></script>
{% endblock %}
<script async src="{{ mathjax_location }}MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{% endblock %}
</body>
</html>
5 changes: 3 additions & 2 deletions oioioi/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,9 @@
# for new messages to notify about
MAILNOTIFYD_INTERVAL = 60

# Serve MathJax library from local static files
MATHJAX_LOCATION = '/static/mathjax/tex-chtml.js'
# If your contest has no access to the internet and you need MathJax typesetting,
# either whitelist this link or download your own copy of MathJax and link it here.
MATHJAX_LOCATION = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/"

# Django message framework CSS classes
# https://docs.djangoproject.com/en/1.9/ref/contrib/messages/#message-tags
Expand Down
Loading