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 committed 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>

1 comment on commit 6e8f083

@xinbenlv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanna congrat this goes it. Awesome! @Pandapip1 thank you for doing this. We are going to see some fancy Math in future EIPs!

Please sign in to comment.