Skip to content

Commit

Permalink
🐛 SVG images cannot be displayed on some systems siyuan-note#9413
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 12, 2023
1 parent fb1f80c commit ffcdb5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel/util/working.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ func initMime() {
mime.AddExtensionType(".json", "application/json")
mime.AddExtensionType(".html", "text/html")

// 某些系统上下载资源文件后打开是 zip
// https://github.com/siyuan-note/siyuan/issues/6347
// 某些系统上下载资源文件后打开是 zip https://github.com/siyuan-note/siyuan/issues/6347
mime.AddExtensionType(".doc", "application/msword")
mime.AddExtensionType(".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document")
mime.AddExtensionType(".xls", "application/vnd.ms-excel")
Expand All @@ -391,6 +390,9 @@ func initMime() {
mime.AddExtensionType(".dwf", "drawing/x-dwf")
mime.AddExtensionType(".pdf", "application/pdf")

// 某些系统上无法显示 SVG 图片 SVG images cannot be displayed on some systems https://github.com/siyuan-note/siyuan/issues/9413
mime.AddExtensionType(".svg", "image/svg+xml")

// 文档数据文件
mime.AddExtensionType(".sy", "application/json")
}
Expand Down

0 comments on commit ffcdb5d

Please sign in to comment.