Skip to content

Commit

Permalink
landing page: support different MathJax delimeters
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Aug 28, 2024
1 parent e8746ef commit 7334543
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,8 @@ <h4>{{ _("Request access") }}</h4>
{%- endblock page_body %}

{%- block javascript %}
{% if config.THEME_MATHJAX_CDN %}
<script type="text/javascript" src="{{ config.THEME_MATHJAX_CDN }}"></script>
{% endif %}
{% if use_theme_basic_template|default(true) %}
{{ super() }}
{% if use_theme_basic_template|default(false) %}
{{ super.super() }}
{% else %}
{% include config.THEME_JAVASCRIPT_TEMPLATE %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
#}
{% if config.THEME_MATHJAX_CDN %}
<script type="text/javascript">
window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
processEscapes: true // Allows escaping $ signs if needed
}
};
</script>
<script type="text/javascript" src="{{ config.THEME_MATHJAX_CDN }}"></script>
{% endif %}

{{ webpack['theme.js']}}
{{ webpack['base-theme-rdm.js']}}
{{ webpack['i18n_app.js']}}
Expand Down

0 comments on commit 7334543

Please sign in to comment.