Skip to content

Commit

Permalink
Website: Add MathJax (ethereum#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 and nachomazzara committed Jan 13, 2023
1 parent 1f99296 commit 7dc5a47
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 7dc5a47

Please sign in to comment.