<% if (page.mathjax) { %> <linkhref="//cdn.jsdelivr.net/npm/katex@0.9.0/dist/katex.min.css"rel="stylesheet"> <% } %>
修改为
1 2 3 4 5 6 7 8 9 10
<% if (page.katex) { %> <linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css"integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC"crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering --> <scriptdefersrc="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js"integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja"crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: --> <scriptdefersrc="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js"integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR"crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> <% } %>