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

24 lines
574 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
},
SVG: {
matchFontHeight: false
},
CommonHTML: {
matchFontHeight: false
},
tex2jax: {
inlineMath: [
['$','$'],
['\\(','\\)']
]
}
2018-10-16 05:28:42 +00:00
});
});
2018-10-16 05:28:42 +00:00
</script>
<% } %>