Skip to content

Commit

Permalink
config: add MathJax support
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and kpsherva committed Sep 12, 2024
1 parent c945671 commit 81367f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ APP_DEFAULT_SECURE_HEADERS = {
'data:', # for fonts
"'unsafe-inline'", # for inline scripts and styles
"blob:", # for pdf preview
"cdnjs.cloudflare.com",
# Add your own policies here (e.g. analytics)
],
},
Expand Down Expand Up @@ -364,6 +365,11 @@ RDM_CUSTOM_FIELDS = [
),
]

THEME_MATHJAX_CDN = (
"//cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js"
"?config=TeX-AMS-MML_HTMLorMML"
)

RDM_CUSTOM_FIELDS_UI = [
{
"section": "CERN",
Expand Down

0 comments on commit 81367f2

Please sign in to comment.