Skip to content

Commit

Permalink
ui: add mathjax to record details page
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Nov 16, 2023
1 parent c95e832 commit b941833
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions invenio_app_rdm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ def _(x):

THEME_JAVASCRIPT_TEMPLATE = "invenio_app_rdm/javascript.html"

THEME_MATHJAX_CDN = (
"//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"
"?config=TeX-AMS-MML_HTMLorMML"
)

# Invenio-Files-REST
# ==================
# See https://invenio-files-rest.readthedocs.io/en/latest/configuration.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ <h4>{{ _("Request access") }}</h4>
{%- endblock page_body %}

{%- block javascript %}
<script type="text/javascript" src="{{ config.THEME_MATHJAX_CDN }}"></script>
{% if use_theme_basic_template|default(true) %}
{{ super() }}
{% else %}
Expand Down

0 comments on commit b941833

Please sign in to comment.