Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Preload KaTeX styles in new windows https://github.com/siyuan-note/siyuan/issues/18879

Daniel3f5f7aa910d1
diff --git a/app/src/assets/template/app/window.tpl b/app/src/assets/template/app/window.tpl
index 86a63336f1..cc7ebe6203 100644
--- a/app/src/assets/template/app/window.tpl
+++ b/app/src/assets/template/app/window.tpl
@@ -8,6 +8,7 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="../../icon.png">
+ <link id="protyleKatexStyle" rel="stylesheet" href="../../protyle/js/katex/katex.min.css?v=0.16.9">
<script src="../../protyle/js/pdf/pdf.min.mjs?v=4.8.69" type="module"></script>
</head>
<body class="fn__flex-column body--window">