diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 6943a79cb2..d2e7415067 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -167,6 +167,11 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)-> path = Path.join("/img/", imgFile) return Url.resolve(staticFilesBase, path) + res.locals.mathJaxPath = res.locals.buildJsPath( + 'libs/mathjax/MathJax.js', + {cdn:false, qs:{config:'TeX-AMS_HTML'}} + ) + next()