mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/14470
This commit is contained in:
parent
b6562b1346
commit
e8ce39c778
4 changed files with 7 additions and 6 deletions
|
|
@ -76,6 +76,7 @@ func extensionCopy(c *gin.Context) {
|
|||
uploaded := map[string]string{}
|
||||
for originalName, file := range form.File {
|
||||
oName, err := url.PathUnescape(originalName)
|
||||
unescaped := oName
|
||||
|
||||
if clippingSym && strings.Contains(oName, "img-loading.svg") {
|
||||
continue
|
||||
|
|
@ -145,7 +146,7 @@ func extensionCopy(c *gin.Context) {
|
|||
break
|
||||
}
|
||||
|
||||
uploaded[oName] = "assets/" + fName
|
||||
uploaded[unescaped] = "assets/" + fName
|
||||
}
|
||||
|
||||
luteEngine := util.NewLute()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue