MathJax
This commit is contained in:
parent
d5f12b0f66
commit
4a67529132
|
@ -7,6 +7,38 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript" async
|
||||
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||||
MathJax.Hub.Config({
|
||||
displayAlign: "left",
|
||||
tex2jax: {
|
||||
inlineMath: [['$','$'], ['\\(','\\)']],
|
||||
displayMath: [['$$','$$']],
|
||||
processEscapes: true,
|
||||
processEnvironments: true,
|
||||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
||||
TeX: { equationNumbers: { autoNumber: "AMS" },
|
||||
extensions: ["AMSmath.js", "AMSsymbols.js"] }
|
||||
}
|
||||
});
|
||||
MathJax.Hub.Queue(function() {
|
||||
// Fix <code> tags after MathJax finishes running. This is a
|
||||
// hack to overcome a shortcoming of Markdown. Discussion at
|
||||
// https://github.com/mojombo/jekyll/issues/199
|
||||
var all = MathJax.Hub.getAllJax(), i;
|
||||
for(i = 0; i < all.length; i += 1) {
|
||||
all[i].SourceElement().parentNode.className += ' has-jax';
|
||||
}
|
||||
});
|
||||
|
||||
MathJax.Hub.Config({
|
||||
// Autonumbering by mathjax
|
||||
TeX: { equationNumbers: { autoNumber: "AMS" } }
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
{{ if .Site.Params.highlightjs }}
|
||||
<script src="{{ .Site.BaseURL }}js/highlight.min.js" defer></script>
|
||||
{{ range .Site.Params.highlightjslanguages }}
|
||||
|
@ -60,13 +92,13 @@
|
|||
importFAB.onerror = function() {
|
||||
// If the script does not load (blocked, integrity error, ...)
|
||||
// Then a detection is triggered
|
||||
adBlockDetected();
|
||||
adBlockDetected();
|
||||
};
|
||||
importFAB.integrity = 'sha256-xjwKUY/NgkPjZZBOtOxRYtK20GaqTwUCf7WYCJ1z69w=';
|
||||
importFAB.crossOrigin = 'anonymous';
|
||||
importFAB.src = 'https://cdnjs.cloudflare.com/ajax/libs/fuckadblock/3.2.1/fuckadblock.min.js';
|
||||
document.head.appendChild(importFAB);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
|
@ -102,4 +134,4 @@
|
|||
|
||||
ga('create', 'UA-60089-16', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user