Skip to content

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

:art: Improve font loading https://github.com/siyuan-note/siyuan/issues/13672

Daniel163058a5a776
diff --git a/kernel/util/working.go b/kernel/util/working.go
index a8a0fbf2c8..d13af5e5c5 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -419,6 +419,7 @@ func initMime() {
mime.AddExtensionType(".mjs", "text/javascript")
mime.AddExtensionType(".html", "text/html")
mime.AddExtensionType(".json", "application/json")
+ mime.AddExtensionType(".woff2", "font/woff2")
// 某些系统上下载资源文件后打开是 zip https://github.com/siyuan-note/siyuan/issues/6347
mime.AddExtensionType(".doc", "application/msword")