diff --git a/src/index.html b/src/index.html index 5a2324c1d7d449aa55ec7ce3dada7485ed3784c2..ff5eb86174728f955ec9284173da2ebd7e94249a 100644 --- a/src/index.html +++ b/src/index.html @@ -14,8 +14,19 @@ <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ffffff"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="manifest" href="manifest.webmanifest"> - <meta name="theme-color" content="#1976d2"> + <link rel="manifest" href="manifest.webmanifest"> + <meta name="theme-color" content="#1976d2"> + + <!-- fix error message "When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports" --> + <!-- cf. nghyd#602 --> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" + integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous"> + <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js" + integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4" + crossorigin="anonymous"></script> + <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js" + integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous" + onload="renderMathInElement(document.body);"></script> </head> <body> @@ -163,4 +174,4 @@ <noscript>Please enable JavaScript to continue using this application.</noscript> </body> -</html> \ No newline at end of file +</html>