How to change "~" to "$" for LaTeX Math notation?
ducdatdau opened this issue · 2 comments
ducdatdau commented
Ninjaclasher commented
You will need to change https://github.com/DMOJ/online-judge/blob/master/judge/jinja2/markdown/math.py#L11-L12 so that $
is used for rendering math, https://github.com/DMOJ/online-judge/blob/master/resources/mathjax_config.js#L4 for when Mathjax is used, and https://github.com/DMOJ/martor/blob/master/martor/static/martor/js/martor.js#L391-L404 to update the admin editor so the inline math button adds $
and not ~
.
Ninjaclasher commented
Closing due to inactivity, feel free to open another PR if you have other questions.