mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
eb03fbb11c
commit
896d4c595b
1 changed files with 10 additions and 0 deletions
|
|
@ -471,6 +471,16 @@ func initMime() {
|
|||
|
||||
mime.AddExtensionType(".md", "text/markdown")
|
||||
mime.AddExtensionType(".markdown", "text/markdown")
|
||||
|
||||
// 添加常用的图片格式
|
||||
mime.AddExtensionType(".png", "image/png")
|
||||
mime.AddExtensionType(".jpg", "image/jpeg")
|
||||
mime.AddExtensionType(".jpeg", "image/jpeg")
|
||||
mime.AddExtensionType(".gif", "image/gif")
|
||||
mime.AddExtensionType(".bmp", "image/bmp")
|
||||
mime.AddExtensionType(".tiff", "image/tiff")
|
||||
mime.AddExtensionType(".webp", "image/webp")
|
||||
mime.AddExtensionType(".ico", "image/x-icon")
|
||||
}
|
||||
|
||||
func GetDataAssetsAbsPath() (ret string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue