mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
Updated to support mathjax without cdn
This commit is contained in:
parent
ef1436c7d6
commit
218761d6a1
3 changed files with 12 additions and 9 deletions
|
@ -44,6 +44,7 @@
|
||||||
"markdown-it-ins": "^2.0.0",
|
"markdown-it-ins": "^2.0.0",
|
||||||
"markdown-it-sub": "^1.0.0",
|
"markdown-it-sub": "^1.0.0",
|
||||||
"markdown-it-sup": "^1.0.0",
|
"markdown-it-sup": "^1.0.0",
|
||||||
"mermaid": "^0.5.8"
|
"mermaid": "^0.5.8",
|
||||||
|
"MathJax": "^2.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
<script type="text/x-mathjax-config">
|
||||||
|
MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }});
|
||||||
|
</script>
|
||||||
<% if(useCDN) { %>
|
<% if(useCDN) { %>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js" defer></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js" defer></script>
|
||||||
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||||
|
@ -7,6 +10,7 @@
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/jquery.gsap.min.js" defer></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/jquery.gsap.min.js" defer></script>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.7/socket.io.min.js" defer></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.7/socket.io.min.js" defer></script>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script>
|
||||||
|
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<script src="<%- url %>/vendor/spin.js/spin.min.js" defer></script>
|
<script src="<%- url %>/vendor/spin.js/spin.min.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script>
|
<script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script>
|
||||||
|
@ -16,6 +20,7 @@
|
||||||
<script src="<%- url %>/vendor/gsap/src/minified/jquery.gsap.min.js" defer></script>
|
<script src="<%- url %>/vendor/gsap/src/minified/jquery.gsap.min.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/socket.io-client/socket.io.js" defer></script>
|
<script src="<%- url %>/vendor/socket.io-client/socket.io.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/js-yaml/dist/js-yaml.min.js" defer></script>
|
<script src="<%- url %>/vendor/js-yaml/dist/js-yaml.min.js" defer></script>
|
||||||
|
<script type="text/javascript" src="<%- url %>/vendor/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<script src="<%- url %>/vendor/jquery-ui/jquery-ui.min.js" defer></script>
|
<script src="<%- url %>/vendor/jquery-ui/jquery-ui.min.js" defer></script>
|
||||||
<!--codemirror-->
|
<!--codemirror-->
|
||||||
|
@ -66,10 +71,6 @@
|
||||||
<script src="https://www.google.com/jsapi" defer></script>
|
<script src="https://www.google.com/jsapi" defer></script>
|
||||||
<script src="<%- url %>/js/google-drive-upload.js" defer></script>
|
<script src="<%- url %>/js/google-drive-upload.js" defer></script>
|
||||||
<script src="<%- url %>/js/google-drive-picker.js" defer></script>
|
<script src="<%- url %>/js/google-drive-picker.js" defer></script>
|
||||||
<script type="text/x-mathjax-config">
|
|
||||||
MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }});
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
|
|
||||||
<script src="<%- url %>/js/common.js" defer></script>
|
<script src="<%- url %>/js/common.js" defer></script>
|
||||||
<script src="<%- url %>/js/extra.js" defer></script>
|
<script src="<%- url %>/js/extra.js" defer></script>
|
||||||
<script src="<%- url %>/js/render.js" defer></script>
|
<script src="<%- url %>/js/render.js" defer></script>
|
||||||
|
|
|
@ -67,14 +67,19 @@
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
<script type="text/x-mathjax-config">
|
||||||
|
MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }});
|
||||||
|
</script>
|
||||||
<% if(useCDN) { %>
|
<% if(useCDN) { %>
|
||||||
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script>
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script>
|
||||||
|
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script>
|
<script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script>
|
||||||
<script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script>
|
<script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/js-yaml/dist/js-yaml.min.js" defer></script>
|
<script src="<%- url %>/vendor/js-yaml/dist/js-yaml.min.js" defer></script>
|
||||||
|
<script type="text/javascript" src="<%- url %>/vendor/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<script src="<%- url %>/vendor/lz-string/libs/lz-string.min.js" defer></script>
|
<script src="<%- url %>/vendor/lz-string/libs/lz-string.min.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/xss/dist/xss.min.js" defer></script>
|
<script src="<%- url %>/vendor/xss/dist/xss.min.js" defer></script>
|
||||||
|
@ -101,10 +106,6 @@
|
||||||
<script src="<%- url %>/vendor/viz.js/viz.js" defer></script>
|
<script src="<%- url %>/vendor/viz.js/viz.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
|
<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/md-toc.js" defer></script>
|
<script src="<%- url %>/vendor/md-toc.js" defer></script>
|
||||||
<script type="text/x-mathjax-config">
|
|
||||||
MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }});
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
|
|
||||||
<script src="<%- url %>/js/common.js" defer></script>
|
<script src="<%- url %>/js/common.js" defer></script>
|
||||||
<script src="<%- url %>/js/extra.js" defer></script>
|
<script src="<%- url %>/js/extra.js" defer></script>
|
||||||
<script src="<%- url %>/js/render.js" defer></script>
|
<script src="<%- url %>/js/render.js" defer></script>
|
||||||
|
|
Loading…
Reference in a new issue