Add Safe-Extension option to Latex (MathJax) - #343540
What does this MR do and why?
Add Safe-Extension option to Latex (MathJax)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- create a new project.
- create an ipynb file with mathjax math formula.
- put a log at
app/assets/javascripts/notebook/cells/output/latex.vue
Line 35.
console.log(window.MathJax);
- open that ipynb file on Gitlab.
- open
dev tool -> console
and findwindow.MathJax
. - find
Object.config.loader.load
, and it should beui/safe
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by nobody