mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 20:22:38 +00:00
Removing unnecessary javascript
This block of javascript currently seems to break MathJax rendering (at least on my site, rendered and viewed under Chrome browser). Just remove? https://stackoverflow.com/questions/56648378/rendering-latex-on-hugo-websites-with-mathjax
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
96a86531a8
commit
d667eefc61
@@ -171,22 +171,8 @@ MathJax.Hub.Config({
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/x-mathjax-config">
|
||||
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';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{< /code >}}
|
||||
|
||||
|
||||
|
||||
As before, this content should be included in the HTML source of each page that will be using MathJax. The next code snippet contains the CSS that is used to have verbatim MathJax blocks render with the same font style as the body of the page.
|
||||
|
||||
{{< code file="mathjax-style.css" >}}
|
||||
|
||||
Reference in New Issue
Block a user