touch repository
All checks were successful
Deploy / trigger (push) Successful in 21s

This commit is contained in:
2026-05-26 12:51:29 +02:00
parent 5c837d81cf
commit 9568774e35
2 changed files with 14 additions and 7 deletions

View File

@@ -8,14 +8,17 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
},
options: {
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre']
}
};
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body>

View File

@@ -15,8 +15,12 @@ async function showfile(filename, target) {
container.innerHTML = marked.parse(markdownRaw);
if (window.MathJax) {
MathJax.typesetPromise([container]);
if (window.MathJax && typeof MathJax.typesetPromise === 'function') {
MathJax.typesetPromise([container]).catch(function (err) {
console.error("Errore nel rendering di MathJax: ", err);
});
} else if (window.MathJax && window.MathJax.typeset) {
MathJax.typeset([container]);
}
} catch (error) {