This is an automated email from the ASF dual-hosted git repository.
spectrometerHBH pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-site.git
The following commit(s) were added to refs/heads/main by this push:
new 3337fadc573 Render blog math with MathJax 3 (SVG) via a no-query URL
so the build self-hosts it under the CSP (#64)
3337fadc573 is described below
commit 3337fadc573d748a0e3aa85e1b705b58041c5b22
Author: Bohan Hou <[email protected]>
AuthorDate: Sun Jun 21 21:06:00 2026 -0700
Render blog math with MathJax 3 (SVG) via a no-query URL so the build
self-hosts it under the CSP (#64)
---
_layouts/default.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/_layouts/default.html b/_layouts/default.html
index d401322f6d3..8d6d3780f15 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -12,7 +12,8 @@
<meta property="og:image" content="{{ page.preview_image }}">
{% endif %}
{% if page.mathjax %}
- <script>(function () { var s = document.createElement('script'); s.src =
'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML';
document.head.appendChild(s); })();</script>
+ <script>window.MathJax = { tex: { inlineMath: [['$', '$'], ['\\(',
'\\)']], displayMath: [['$$', '$$'], ['\\[', '\\]']] } };</script>
+ <script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
{% endif %}
</head>
<body>