mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Express local for MathJax path
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user