mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
[web] Explicitly name angular parameters GitOrigin-RevId: 91beae68989d6c8122132b531a4338b116d87424
16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
/* global MathJax */
|
|
|
|
import App from '../base'
|
|
|
|
export default App.directive('mathjax', function () {
|
|
return {
|
|
link(scope, element, attrs) {
|
|
if (!(MathJax && MathJax.Hub)) return
|
|
|
|
setTimeout(() => {
|
|
MathJax.Hub.Queue(['Typeset', MathJax.Hub, element.get(0)])
|
|
}, 0)
|
|
},
|
|
}
|
|
})
|