mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 11:50:15 +01:00
🐛 File names ending with . will be considered as missing assets
🎨 Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/13355
This commit is contained in:
parent
821a58d895
commit
22190b532d
8 changed files with 36 additions and 25 deletions
|
|
@ -737,7 +737,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
|||
var ext string
|
||||
title := d.Name()
|
||||
if !d.IsDir() {
|
||||
ext = path.Ext(d.Name())
|
||||
ext = util.Ext(d.Name())
|
||||
title = strings.TrimSuffix(d.Name(), ext)
|
||||
}
|
||||
id := ast.NewNodeID()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue