Skip to content

Commit 5a02d84

Browse files
committed
Install MathJax
This is to render Math statements like LaTeX in clarifications
1 parent b532163 commit 5a02d84

File tree

4 files changed

+54
-1
lines changed

4 files changed

+54
-1
lines changed

webapp/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"jms/serializer-bundle": "^5.2",
7272
"knplabs/knp-paginator-bundle": "^6.6",
7373
"league/commonmark": "^2.3",
74+
"mathjax/mathjax": "^4.0",
7475
"mbostock/d3": "^3.5",
7576
"nelmio/api-doc-bundle": "^5.0",
7677
"nelmio/cors-bundle": "^2.4",

webapp/composer.lock

Lines changed: 51 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp/public/mathjax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../vendor/mathjax/mathjax

webapp/templates/base.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<script src="{{ asset("js/jquery.min.js") }}"></script>
1414
<script src="{{ asset("js/jquery.debounce.min.js") }}"></script>
1515
<script src="{{ asset("js/bootstrap.bundle.min.js") }}"></script>
16+
<script src="{{ asset("mathjax/MathJax.js") }}"></script>
1617

1718
<script src="{{ asset("js/domjudge.js") }}"></script>
1819
{% for file in customAssetFiles('js') %}

0 commit comments

Comments
 (0)