Skip to content

Commit

Permalink
Website: Add MathJax (#5596)
Browse files Browse the repository at this point in the history
* Configuration: Add MathJax Support

* Add integrity and crossorigin attrs
  • Loading branch information
Pandapip1 authored Oct 5, 2022
1 parent 753c292 commit 6e8f083
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _layouts/eip.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ <h2>Citation</h2>
"copyrightYear": "{{ page.created | date: "%Y" }}"
}
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha512-bzXk9PaBIjgXcM+0Z7wbOE4AAMnmMoecyB8zX3irP4IRUDNGMmWXoLiRvEDeeq0RfhLA0eOFvB3wPFzBvWcVdw==" crossorigin="anonymous">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [["$", "$"], ["\\(", "\\)"]],
processEscapes: true
}
});
</script>

0 comments on commit 6e8f083

Please sign in to comment.