hexo-theme-amane/layout/plugin/mathjax.ejs

12 lines
381 B
Plaintext
Raw Normal View History

2018-10-16 05:28:42 +00:00
<% if (!head && plugin !== false) { %>
<%- _js(cdn('mathjax', '2.7.5', 'unpacked/MathJax.js?config=TeX-MML-AM_CHTML'), true) %>
2018-10-16 05:28:42 +00:00
<script>
document.addEventListener('DOMContentLoaded', function () {
2018-10-16 05:28:42 +00:00
MathJax.Hub.Config({
'HTML-CSS': {matchFontHeight: false},
2018-10-16 05:28:42 +00:00
SVG: {matchFontHeight: false},
CommonHTML: {matchFontHeight: false}
});
});
2018-10-16 05:28:42 +00:00
</script>
<% } %>